Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/gnu/dist/toolchain/gcc/config/sh * Use <elfos.h>, not <svr4.h>.



details:   https://anonhg.NetBSD.org/src/rev/d500c9f0b240
branches:  trunk
changeset: 524911:d500c9f0b240
user:      thorpej <thorpej%NetBSD.org@localhost>
date:      Tue Apr 02 06:22:28 2002 +0000

description:
* Use <elfos.h>, not <svr4.h>.
* Use <dbxelf.h>.
* Undef CPP_PREDEFINES before defining it.
* Remove the undef of HANDLE_SYSV_PRAGMA; we need this in order for
  weak externs to work properly.

diffstat:

 gnu/dist/toolchain/gcc/config/sh/netbsd-elf.h |  10 ++++------
 1 files changed, 4 insertions(+), 6 deletions(-)

diffs (41 lines):

diff -r b006abae33a2 -r d500c9f0b240 gnu/dist/toolchain/gcc/config/sh/netbsd-elf.h
--- a/gnu/dist/toolchain/gcc/config/sh/netbsd-elf.h     Tue Apr 02 05:46:36 2002 +0000
+++ b/gnu/dist/toolchain/gcc/config/sh/netbsd-elf.h     Tue Apr 02 06:22:28 2002 +0000
@@ -25,7 +25,7 @@
 /* No SDB debugging info.  */
 #undef SDB_DEBUGGING_INFO
 
-/* Undefine some macros defined in both sh.h and svr4.h.  */
+/* Undefine some macros defined in both sh.h and elfos.h.  */
 #undef IDENT_ASM_OP
 #undef ASM_FILE_END
 #undef ASM_OUTPUT_SOURCE_LINE
@@ -40,7 +40,8 @@
 #undef MAX_OFILE_ALIGNMENT
 
 /* Be ELF-like.  */
-#include "svr4.h"
+#include <dbxelf.h>
+#include <elfos.h>
 
 /* Get generic NetBSD ELF definitions.  */
 #define NETBSD_ELF
@@ -75,6 +76,7 @@
 %{mhitachi:-D__HITACHI__}"
 
 /* Let code know that this is ELF.  */
+#undef CPP_PREDEFINES
 #define CPP_PREDEFINES \
 "-D__sh__ -D__NetBSD__ -D__ELF__ -D__NO_LEADING_UNDERSCORES__ \
 -D__KPRINTF_ATTRIBUTE__ \
@@ -131,10 +133,6 @@
   fprintf ((FILE), "\t.stabs \"\",%d,0,0,Letext\nLetext:\n", N_SO);    \
 } while (0)
 
-/* HANDLE_SYSV_PRAGMA (defined by svr4.h) takes precedence over HANDLE_PRAGMA.
-   We want to use the HANDLE_PRAGMA from sh.h.  */
-#undef HANDLE_SYSV_PRAGMA
-
 /* XXX shouldn't use "1f"-style labels */
 #undef FUNCTION_PROFILER
 #define FUNCTION_PROFILER(STREAM,LABELNO)              \



Home | Main Index | Thread Index | Old Index