ession
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: ramiro dot polla at gmail dot com
GCC target triplet: i686-mingw32
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40905
--- Comment #2 from ramiro dot polla at gmail dot com 2009-07-30 03:43
---
I might be guessing wildly since I don't know that much about PE, but this is
what more I've found:
It crashes loading the dll in __pei386_runtime_relocator at address 65ec12a8
Summary: Stack trashed by call inside inline asm
Product: gcc
Version: 4.4.3
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: ramiro dot
--- Comment #2 from ramiro dot polla at gmail dot com 2010-07-18 05:14
---
Thanks. Is there anything that can be done in the code to say that is not a
leaf function, or at least to tell gcc that a call is being made inside the
inline asm?
--
http://gcc.gnu.org/bugzilla
--- Comment #4 from ramiro dot polla at gmail dot com 2010-07-18 22:08
---
That won't work in this case. If I subtract anything from rsp inside the inline
asm, the local variable relative to f will no longer be valid. Notice where gcc
put it:
21: ff 54 24 f8
--- Comment #2 from ramiro dot polla at gmail dot com 2010-07-02 14:33
---
Still reproducible with 4.5.0. For example:
../gcc-4.5.0/configure --target=i686-pc-mingw32 --enable-languages=c
--program-prefix=i686-pc-mingw32- --program-suffix=-4.5.0
--enable-version-specific-runtime-libs