[Bug target/14202] [arm] Thumb __builtin_setjmp not interworking safe

drow at gcc dot gnu dot org gcc-bugzilla@gcc.gnu.org
Thu Feb 19 17:51:00 GMT 2004


------- Additional Comments From drow at gcc dot gnu dot org  2004-02-19 17:51 -------
There are probably other affected bits of code.  As an alternate approach, I tried
emitting a +1 after all thumb-mode code labels output using arm_assemble_integer;
this results in working exceptions and working computed goto, and it even manages
not to mess up dwarf2 debug info (but only because dwarf2 bypasses
assemble_integer).
My assumption is that all such labels are being used to move into the PC
(in which case bx needs the bit and mov will ignore it); things in need of code
addresses
appear to go elsewhere.

I didn't test profiling, which may be broken by this approach.  I'd be amazed if
nothing
was.

-- 


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



More information about the Gcc-bugs mailing list