* config/i386/profile.h (mcount): Mark asms volatile.
This commit is contained in:
parent
53364a1fae
commit
af15c95e70
|
@ -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>
|
2008-08-05 Christopher Faylor <me+cygwin@cgf.cx>
|
||||||
|
|
||||||
* dll_init.cc (dll_global_dtors): Add an additional test to avoid
|
* dll_init.cc (dll_global_dtors): Add an additional test to avoid
|
||||||
|
|
|
@ -48,11 +48,11 @@ mcount() \
|
||||||
* \
|
* \
|
||||||
* selfpc = pc pushed by mcount call \
|
* 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. \
|
* 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); \
|
_mcount(frompcindex, selfpc); \
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue