[PATCH] Remove MIPS GCC 4.8 patch
Sebastian Huber
sebastian.huber at embedded-brains.de
Thu Apr 18 07:29:47 UTC 2013
This patch is superfluous. The include order is
1. mips/elf.h
2. mips/rtems.h
as defined by gcc/config.gcc (mips*-*-rtems*).
Example pre-processor output:
# 1 "/home/sh/archive/gcc-git/gcc/config/mips/elf.h" 1
# 22 "/home/sh/archive/gcc-git/gcc/config/mips/elf.h"
#undef SET_ASM_OP
#define ASM_OUTPUT_DEF(FILE,LABEL1,LABEL2) do { fputc ('\t', FILE);
assemble_name (FILE, LABEL1); fputs (" = ", FILE); assemble_name (FILE,
LABEL2); fputc ('\n', FILE); } while (0)
# 34 "/home/sh/archive/gcc-git/gcc/config/mips/elf.h"
#undef ASM_DECLARE_OBJECT_NAME
#define ASM_DECLARE_OBJECT_NAME mips_declare_object_name
#undef ASM_FINISH_DECLARE_OBJECT
#define ASM_FINISH_DECLARE_OBJECT mips_finish_declare_object
#undef LIB_SPEC
#define LIB_SPEC ""
#undef STARTFILE_SPEC
#define STARTFILE_SPEC "crti%O%s crtbegin%O%s"
#undef ENDFILE_SPEC
#define ENDFILE_SPEC "crtend%O%s crtn%O%s"
#define NO_IMPLICIT_EXTERN_C 1
# 21 "./tm.h" 2
# 1 "/home/sh/archive/gcc-git/gcc/config/mips/rtems.h" 1
# 23 "/home/sh/archive/gcc-git/gcc/config/mips/rtems.h"
#define TARGET_OS_CPP_BUILTINS() do { builtin_define ("__rtems__");
builtin_define ("__USE_INIT_FINI__"); builtin_assert ("system=rtems"); }
while (0)
# 33 "/home/sh/archive/gcc-git/gcc/config/mips/rtems.h"
#undef MIPS_DEFAULT_GVALUE
#define MIPS_DEFAULT_GVALUE 0
# 22 "./tm.h" 2
# 1 "/home/sh/archive/gcc-git/gcc/config/rtems.h" 1
# 21 "/home/sh/archive/gcc-git/gcc/config/rtems.h"
#undef NO_IMPLICIT_EXTERN_C
#define NO_IMPLICIT_EXTERN_C
See also
http://www.rtems.com/ml/rtems-users/2008/april/msg00254.html
---
patches/gcc-4.8.0-rtems4.11-20130326.diff | 14 --------------
1 files changed, 0 insertions(+), 14 deletions(-)
diff --git a/patches/gcc-4.8.0-rtems4.11-20130326.diff b/patches/gcc-4.8.0-rtems4.11-20130326.diff
index 7054534..72b1534 100644
--- a/patches/gcc-4.8.0-rtems4.11-20130326.diff
+++ b/patches/gcc-4.8.0-rtems4.11-20130326.diff
@@ -39,11 +39,6 @@ diff -Naur gcc-4.8.0.orig/gcc/ChangeLog.rtems gcc-4.8.0/gcc/ChangeLog.rtems
+ config/sparc/rtemself.h: Undef WCHAR_TYPE_SIZE, WCHAR_TYPE.
+ (Resets WCHAR_TYPE's to defaults. Prevents broken GCC tm_files
+ to interfere and cause wchar_t/wint_t incompatibilities).
-+
-+ Ralf Corsépius <ralf.corsepius at rtems.org>
-+
-+ * config/mips/elf.h: Remove NO_IMPLICIT_EXTERN_C.
-+
diff -Naur gcc-4.8.0.orig/gcc/config/h8300/h8300.h gcc-4.8.0/gcc/config/h8300/h8300.h
--- gcc-4.8.0.orig/gcc/config/h8300/h8300.h 2013-01-10 21:38:27.000000000 +0100
+++ gcc-4.8.0/gcc/config/h8300/h8300.h 2013-03-26 16:25:34.772043578 +0100
@@ -81,15 +76,6 @@ diff -Naur gcc-4.8.0.orig/gcc/config/m68k/rtemself.h gcc-4.8.0/gcc/config/m68k/r
+#undef WCHAR_TYPE
+
+#undef WCHAR_TYPE_SIZE
-diff -Naur gcc-4.8.0.orig/gcc/config/mips/elf.h gcc-4.8.0/gcc/config/mips/elf.h
---- gcc-4.8.0.orig/gcc/config/mips/elf.h 2013-01-10 21:38:27.000000000 +0100
-+++ gcc-4.8.0/gcc/config/mips/elf.h 2013-03-26 16:25:34.773043599 +0100
-@@ -46,5 +46,3 @@
-
- #undef ENDFILE_SPEC
- #define ENDFILE_SPEC "crtend%O%s crtn%O%s"
--
--#define NO_IMPLICIT_EXTERN_C 1
diff -Naur gcc-4.8.0.orig/gcc/config/rs6000/rtems.h gcc-4.8.0/gcc/config/rs6000/rtems.h
--- gcc-4.8.0.orig/gcc/config/rs6000/rtems.h 2013-01-10 21:38:27.000000000 +0100
+++ gcc-4.8.0/gcc/config/rs6000/rtems.h 2013-03-26 16:25:34.773043599 +0100
--
1.7.7
More information about the devel
mailing list