This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c/32480] gcc 4.1.2 labels in removed dead code weirdness



------- Comment #1 from pinskia at gcc dot gnu dot org  2007-06-24 11:02 -------
No, the behavior of GCC is the documented behavior.

http://gcc.gnu.org/onlinedocs/gcc-4.1.2/gcc/Labels-as-Values.html
Basically if you don't use the labels as values for computed jumps the label
can be moved anywhere.
If a basic block is unreachable, we can remove it.  This is what is happening
and not removal of asm and then moving the basic block.

Since you cannot use labels as values for anything other than jumps, this is
invalid.


-- 

pinskia at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|                            |INVALID


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=32480


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]