[Bug c++/94485] [10.0.1, c++2a] g++ optimizes away necessary code, accepts arbitrary inline asm
dimitri.gorokhovik at free dot fr
gcc-bugzilla@gcc.gnu.org
Sun Apr 19 09:38:27 GMT 2020
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94485
--- Comment #5 from Dimitri Gorokhovik <dimitri.gorokhovik at free dot fr> ---
Build "g++ (GCC) 10.0.1 20200418 (experimental)" does not reproduce the issue
on the attached sample code anymore.
However:
-- adding an asm statement into the sample code gets the issue back. Tried asm
("nop") and asm ("") on line 426, other insns seem to be vetted and rejected.
-- issue is still reproduced on the original code where it is not related to
the asm, but rather to use of a pointer as opposed to a copy.
-- vetting of asm content doesn't seem to be performed in the original code.
More information about the Gcc-bugs
mailing list