This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c/26653] Wrong assembly generated with -O2, -O OK for cinelerra source item
- From: "pinskia at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 12 Mar 2006 18:25:45 -0000
- Subject: [Bug c/26653] Wrong assembly generated with -O2, -O OK for cinelerra source item
- References: <bug-26653-1064@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- 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