This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[patch committed] SH: Disable assembler cfi directives on shmedia
- From: Kaz Kojima <kkojima at rr dot iij4u dot or dot jp>
- To: gcc-patches at gcc dot gnu dot org
- Date: Mon, 29 Sep 2008 08:00:14 +0900 (JST)
- Subject: [patch committed] SH: Disable assembler cfi directives on shmedia
Many EH tests started to fail on sh64 because of the lack of
working assembler cfi directives, though the assembler cfi
test in gcc/configure passes on that target by accident.
Although it's a gas problem and not a compiler one, I'd like to
apply the attached patch which simply disables flag_dwarf2_cfi_asm
for that target.
Tested on sh64-unknown-linux-gnu and sh4-unknown-linux-gnu.
Regards,
kaz
--
2008-09-28 Kaz Kojima <kkojima@gcc.gnu.org>
* config/sh/sh.h (OVERRIDE_OPTIONS): Unset flag_dwarf2_cfi_asm
for SHmedia.
--- ORIG/trunk/gcc/config/sh/sh.h Mon Sep 1 09:59:39 2008
+++ LOCAL/trunk/gcc/config/sh/sh.h Tue Sep 23 17:05:43 2008
@@ -624,6 +624,8 @@ do { \
sh_div_strategy = SH_DIV_INV; \
} \
TARGET_CBRANCHDI4 = 0; \
+ /* Assembler CFI isn't yet fully supported for SHmedia. */ \
+ flag_dwarf2_cfi_asm = 0; \
} \
} \
else \