[Bug c/26653] Wrong assembly generated with -O2, -O OK for cinelerra source item
pinskia at gcc dot gnu dot org
gcc-bugzilla@gcc.gnu.org
Sun Mar 12 18:25:00 GMT 2006
------- Comment #6 from pinskia at gcc dot gnu dot org 2006-03-12 18:25 -------
(In reply to comment #5)
> IMHO this is a bug after all, since behavior is inconsitent (-O and -O2 do
> nto work the same), and code is generated that breaks later stage.
no it is not a bug as X in asm says any register to choose. GCC chooses the
wrong one for the instruction but the source code says it could choose any so
it did. Now the bug is in the source code.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26653
More information about the Gcc-bugs
mailing list