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/29305] local label-as-value being placed before function prolog



------- Comment #2 from jeremy at goop dot org  2006-10-01 05:18 -------
What I'm trying to do is get the address of particular faulting instructions in
an asm:

faulted: asm volatile("ud2");

so that an exception handler can come back later and match a fault address with
an instruction.  The behaviour I'd like to see is that &&faulted always points
to the "ud2" instruction.

It seems a bit perverse that gcc will quietly generate a bad result unless I
actually goto the label in some way: it should either fail outright (which
would be defensiable, but annoying for me), or do the right thing.


-- 

jeremy at goop dot org changed:

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


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


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