------- 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