diff options
author | Brian Dessent <brian@dessent.net> | 2008-08-05 19:20:58 +0000 |
---|---|---|
committer | Brian Dessent <brian@dessent.net> | 2008-08-05 19:20:58 +0000 |
commit | af15c95e707cfc911400d40d1a1109727dcabcf3 (patch) | |
tree | d53af47ceee897071663ca88065adcf90206973b /winsup/cygwin | |
parent | 53364a1fae1574b2429827a03c55c36024348c3e (diff) | |
download | cygnal-af15c95e707cfc911400d40d1a1109727dcabcf3.tar.gz cygnal-af15c95e707cfc911400d40d1a1109727dcabcf3.tar.bz2 cygnal-af15c95e707cfc911400d40d1a1109727dcabcf3.zip |
* config/i386/profile.h (mcount): Mark asms volatile.
Diffstat (limited to 'winsup/cygwin')
-rw-r--r-- | winsup/cygwin/ChangeLog | 4 | ||||
-rw-r--r-- | winsup/cygwin/config/i386/profile.h | 4 |
2 files changed, 6 insertions, 2 deletions
diff --git a/winsup/cygwin/ChangeLog b/winsup/cygwin/ChangeLog index 9e31b2a05..e72a51388 100644 --- a/winsup/cygwin/ChangeLog +++ b/winsup/cygwin/ChangeLog @@ -1,3 +1,7 @@ +2008-08-05 Brian Dessent <brian@dessent.net> + + * config/i386/profile.h (mcount): Mark asms volatile. + 2008-08-05 Christopher Faylor <me+cygwin@cgf.cx> * dll_init.cc (dll_global_dtors): Add an additional test to avoid diff --git a/winsup/cygwin/config/i386/profile.h b/winsup/cygwin/config/i386/profile.h index ad5f625d0..748b89aa0 100644 --- a/winsup/cygwin/config/i386/profile.h +++ b/winsup/cygwin/config/i386/profile.h @@ -48,11 +48,11 @@ mcount() \ * \ * selfpc = pc pushed by mcount call \ */ \ - __asm("movl 4(%%ebp),%0" : "=r" (selfpc)); \ + __asm __volatile ("movl 4(%%ebp),%0" : "=r" (selfpc)); \ /* \ * frompcindex = pc pushed by call into self. \ */ \ - __asm("movl (%%ebp),%0;movl 4(%0),%0" : "=r" (frompcindex)); \ + __asm __volatile ("movl (%%ebp),%0;movl 4(%0),%0" : "=r" (frompcindex));\ _mcount(frompcindex, selfpc); \ } |