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] sh-linux: Get red of a compiler warning (commited)


Hi,

The appended patch is only to avoid a compiler warning for redefining
ASM_PREFERRED_EH_DATA_FORMAT for linux.  It'd better if we could use
the one in sh.h for SHmedia case but it causes a problem in the current
sh-linux ld at the moment. I've added the comment with ??? not to forget
it.
Successfully tested with bootstrap and the regression test with no new
regressions on sh4-unknown-linux-gnu and applied to HEAD.

Regards,
	kaz

--
2004-01-11  Kaz Kojima  <kkojima@gcc.gnu.org>

	* config/sh/linux.h (ASM_PREFERRED_EH_DATA_FORMAT): Undefine
	 before defining.

diff -u3prN ORIG/gcc/gcc/config/sh/linux.h LOCAL/gcc/gcc/config/sh/linux.h
--- ORIG/gcc/gcc/config/sh/linux.h	Fri Dec  5 09:26:01 2003
+++ LOCAL/gcc/gcc/config/sh/linux.h	Wed Jan  7 20:03:37 2004
@@ -1,5 +1,5 @@
 /* Definitions for SH running Linux-based GNU systems using ELF
-   Copyright (C) 1999, 2000, 2002, 2003 Free Software Foundation, Inc.
+   Copyright (C) 1999, 2000, 2002, 2003, 2004 Free Software Foundation, Inc.
    Contributed by Kazumoto Kojima <kkojima@rr.iij4u.or.jp>
 
 This file is part of GCC.
@@ -41,6 +41,8 @@ Boston, MA 02111-1307, USA.  */
 #undef DWARF2_UNWIND_INFO
 #define DWARF2_UNWIND_INFO 1
 
+/* ??? Current SH linux linker has a problem for DW_EH_PE_textrel.  */
+#undef ASM_PREFERRED_EH_DATA_FORMAT
 #define ASM_PREFERRED_EH_DATA_FORMAT(CODE, GLOBAL)                      \
   (flag_pic                                                             \
     ? ((GLOBAL) ? DW_EH_PE_indirect : 0) | DW_EH_PE_pcrel | DW_EH_PE_sdata4 \


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