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

Reply via email to