mirror of
https://github.com/tobast/libunwind-eh_elf.git
synced 2025-01-08 18:33:42 +01:00
ARM: tests/Gtest-dyn1.c workaround for GCC bug.
Temporarily workaround for a GCC bug that prevents code from obtaining the thumb marker: https://bugs.launchpad.net/gcc-linaro/+bug/721531. Signed-off-by: Ken Werner <ken.werner@linaro.org>
This commit is contained in:
parent
3b917f2d16
commit
288f18f7ae
1 changed files with 6 additions and 2 deletions
|
@ -68,8 +68,12 @@ struct fdesc
|
|||
long code;
|
||||
long is_thumb;
|
||||
};
|
||||
# define get_fdesc(fdesc,func) ({(fdesc).code = (long) &(func) & ~0x1; \
|
||||
(fdesc).is_thumb = (long) &(func) & 0x1;})
|
||||
/* Workaround GCC bug: https://bugs.launchpad.net/gcc-linaro/+bug/721531 */
|
||||
# define get_fdesc(fdesc,func) ({long tmp = (long) &(func); \
|
||||
(fdesc).code = (long) &(func) & ~0x1; \
|
||||
(fdesc).is_thumb = tmp & 0x1;})
|
||||
/*# define get_fdesc(fdesc,func) ({(fdesc).code = (long) &(func) & ~0x1; \
|
||||
(fdesc).is_thumb = (long) &(func) & 0x1;})*/
|
||||
# define get_funcp(fdesc) ((template_t) ((fdesc).code | (fdesc).is_thumb))
|
||||
# define get_gp(fdesc) (0)
|
||||
#else
|
||||
|
|
Loading…
Reference in a new issue