This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug target/14202] [arm] Thumb __builtin_setjmp not interworking safe
- From: "drow at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 19 Feb 2004 17:51:47 -0000
- Subject: [Bug target/14202] [arm] Thumb __builtin_setjmp not interworking safe
- References: <20040218230529.14202.drow@gcc.gnu.org>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- 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