[Bug c++/79425] Inline assembly getting clobbered in some case

mini at cs dot technion.ac.il gcc-bugzilla@gcc.gnu.org
Wed Feb 8 15:21:00 GMT 2017


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79425

--- Comment #3 from Marina Minkin <mini at cs dot technion.ac.il> ---
What do you mean by "You need to set the section to verify correct in top level
inline-asm and then"?

This is a stripped code just to reproduce this behavior.
What I initially tried to do, was to make a function (not main) not to clobber
the registers.
Basically I needed what the attribute no_caller_saved_registers does. But this
attribute is not supported in my gcc version.

This trick of pushing and popping registers worked well, until I removed the
function that was defined before this one. At this point my code began
crashing. Definitely an unexpected behavior.


More information about the Gcc-bugs mailing list