This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]