Initial stuff for sparc (sparc still not added to ONLY_FOR_ARCH's)
This commit is contained in:
parent
83fdd1a3c9
commit
8f770164d7
51
lang/egcs-snapshot/files/config/gcc/config/sparc/openbsd.h
Normal file
51
lang/egcs-snapshot/files/config/gcc/config/sparc/openbsd.h
Normal file
@ -0,0 +1,51 @@
|
||||
#include <sparc/sparc.h>
|
||||
|
||||
/* Get generic OpenBSD definitions. */
|
||||
|
||||
#include <openbsd.h>
|
||||
|
||||
/* Names to predefine in the preprocessor for this target machine. */
|
||||
|
||||
#undef CPP_PREDEFINES
|
||||
#define CPP_PREDEFINES "-Dunix -Dsparc -D__OpenBSD__ -Asystem(unix) -Asystem(OpenBSD) -Acpu(sparc) -Amachine(sparc)"
|
||||
|
||||
/* Make gcc agree with <machine/ansi.h> */
|
||||
|
||||
#undef SIZE_TYPE
|
||||
#define SIZE_TYPE "unsigned int"
|
||||
|
||||
#undef PTRDIFF_TYPE
|
||||
#define PTRDIFF_TYPE "int"
|
||||
|
||||
#undef WCHAR_TYPE
|
||||
#define WCHAR_TYPE "int"
|
||||
|
||||
#undef WCHAR_UNSIGNED
|
||||
#define WCHAR_UNSIGNED 0
|
||||
|
||||
#undef WCHAR_TYPE_SIZE
|
||||
#define WCHAR_TYPE_SIZE 32
|
||||
|
||||
/* This is BSD, so it wants DBX format. */
|
||||
|
||||
#define DBX_DEBUGGING_INFO
|
||||
|
||||
/* This is the char to use for continuation (in case we need to turn
|
||||
continuation back on). */
|
||||
|
||||
#define DBX_CONTIN_CHAR '?'
|
||||
|
||||
/* Don't use the `xsfoo;' construct in DBX output; this system
|
||||
doesn't support it. */
|
||||
|
||||
#define DBX_NO_XREFS
|
||||
|
||||
/* Don't default to pcc-struct-return, because gcc is the only compiler, and
|
||||
we want to retain compatibility with older gcc versions. */
|
||||
#undef DEFAULT_PCC_STRUCT_RETURN
|
||||
#define DEFAULT_PCC_STRUCT_RETURN 0
|
||||
|
||||
/* Until they use ELF or something that handles dwarf2 unwinds
|
||||
and initialization stuff better. */
|
||||
#define DWARF2_UNWIND_INFO 0
|
||||
|
@ -1,6 +1,6 @@
|
||||
--- gcc/configure.in.orig Thu Oct 1 00:56:26 1998
|
||||
+++ gcc/configure.in Thu Oct 1 00:57:40 1998
|
||||
@@ -1003,15 +1003,21 @@
|
||||
--- gcc/configure.in.orig Mon Sep 21 17:49:58 1998
|
||||
+++ gcc/configure.in Thu Nov 12 21:16:09 1998
|
||||
@@ -1003,10 +1003,8 @@
|
||||
fixincludes=fixinc.wrap
|
||||
tmake_file=i386/t-freebsd
|
||||
;;
|
||||
@ -12,16 +12,31 @@
|
||||
changequote([,])dnl
|
||||
tm_file=i386/netbsd.h
|
||||
# On NetBSD, the headers are already okay, except for math.h.
|
||||
fixincludes=fixinc.wrap
|
||||
@@ -1014,6 +1012,14 @@
|
||||
tmake_file=t-netbsd
|
||||
+ ;;
|
||||
+changequote(,)dnl
|
||||
;;
|
||||
changequote(,)dnl
|
||||
+ i[34567]86-*-openbsd*)
|
||||
+changequote([,])dnl
|
||||
+ tm_file=i386/openbsd.h
|
||||
+ # On OpenBSD, the headers are already okay, except for math.h.
|
||||
+ fixincludes=fixinc.wrap
|
||||
+ tmake_file=t-openbsd
|
||||
;;
|
||||
changequote(,)dnl
|
||||
+ ;;
|
||||
+changequote(,)dnl
|
||||
i[34567]86-*-coff*)
|
||||
changequote([,])dnl
|
||||
tm_file=i386/i386-coff.h
|
||||
@@ -2820,6 +2826,12 @@
|
||||
# On NetBSD, the headers are already okay, except for math.h.
|
||||
fixincludes=fixinc.wrap
|
||||
tmake_file=t-netbsd
|
||||
+ ;;
|
||||
+ sparc-*-openbsd*)
|
||||
+ tm_file=sparc/netbsd.h
|
||||
+ # On OpenBSD, the headers are already okay, except for math.h.
|
||||
+ fixincludes=fixinc.wrap
|
||||
+ tmake_file=t-openbsd
|
||||
;;
|
||||
sparc-*-bsd*)
|
||||
tm_file=sparc/bsd.h
|
||||
|
51
lang/egcs/snapshot/files/config/gcc/config/sparc/openbsd.h
Normal file
51
lang/egcs/snapshot/files/config/gcc/config/sparc/openbsd.h
Normal file
@ -0,0 +1,51 @@
|
||||
#include <sparc/sparc.h>
|
||||
|
||||
/* Get generic OpenBSD definitions. */
|
||||
|
||||
#include <openbsd.h>
|
||||
|
||||
/* Names to predefine in the preprocessor for this target machine. */
|
||||
|
||||
#undef CPP_PREDEFINES
|
||||
#define CPP_PREDEFINES "-Dunix -Dsparc -D__OpenBSD__ -Asystem(unix) -Asystem(OpenBSD) -Acpu(sparc) -Amachine(sparc)"
|
||||
|
||||
/* Make gcc agree with <machine/ansi.h> */
|
||||
|
||||
#undef SIZE_TYPE
|
||||
#define SIZE_TYPE "unsigned int"
|
||||
|
||||
#undef PTRDIFF_TYPE
|
||||
#define PTRDIFF_TYPE "int"
|
||||
|
||||
#undef WCHAR_TYPE
|
||||
#define WCHAR_TYPE "int"
|
||||
|
||||
#undef WCHAR_UNSIGNED
|
||||
#define WCHAR_UNSIGNED 0
|
||||
|
||||
#undef WCHAR_TYPE_SIZE
|
||||
#define WCHAR_TYPE_SIZE 32
|
||||
|
||||
/* This is BSD, so it wants DBX format. */
|
||||
|
||||
#define DBX_DEBUGGING_INFO
|
||||
|
||||
/* This is the char to use for continuation (in case we need to turn
|
||||
continuation back on). */
|
||||
|
||||
#define DBX_CONTIN_CHAR '?'
|
||||
|
||||
/* Don't use the `xsfoo;' construct in DBX output; this system
|
||||
doesn't support it. */
|
||||
|
||||
#define DBX_NO_XREFS
|
||||
|
||||
/* Don't default to pcc-struct-return, because gcc is the only compiler, and
|
||||
we want to retain compatibility with older gcc versions. */
|
||||
#undef DEFAULT_PCC_STRUCT_RETURN
|
||||
#define DEFAULT_PCC_STRUCT_RETURN 0
|
||||
|
||||
/* Until they use ELF or something that handles dwarf2 unwinds
|
||||
and initialization stuff better. */
|
||||
#define DWARF2_UNWIND_INFO 0
|
||||
|
@ -1,6 +1,6 @@
|
||||
--- gcc/configure.in.orig Thu Oct 1 00:56:26 1998
|
||||
+++ gcc/configure.in Thu Oct 1 00:57:40 1998
|
||||
@@ -1003,15 +1003,21 @@
|
||||
--- gcc/configure.in.orig Mon Sep 21 17:49:58 1998
|
||||
+++ gcc/configure.in Thu Nov 12 21:16:09 1998
|
||||
@@ -1003,10 +1003,8 @@
|
||||
fixincludes=fixinc.wrap
|
||||
tmake_file=i386/t-freebsd
|
||||
;;
|
||||
@ -12,16 +12,31 @@
|
||||
changequote([,])dnl
|
||||
tm_file=i386/netbsd.h
|
||||
# On NetBSD, the headers are already okay, except for math.h.
|
||||
fixincludes=fixinc.wrap
|
||||
@@ -1014,6 +1012,14 @@
|
||||
tmake_file=t-netbsd
|
||||
+ ;;
|
||||
+changequote(,)dnl
|
||||
;;
|
||||
changequote(,)dnl
|
||||
+ i[34567]86-*-openbsd*)
|
||||
+changequote([,])dnl
|
||||
+ tm_file=i386/openbsd.h
|
||||
+ # On OpenBSD, the headers are already okay, except for math.h.
|
||||
+ fixincludes=fixinc.wrap
|
||||
+ tmake_file=t-openbsd
|
||||
;;
|
||||
changequote(,)dnl
|
||||
+ ;;
|
||||
+changequote(,)dnl
|
||||
i[34567]86-*-coff*)
|
||||
changequote([,])dnl
|
||||
tm_file=i386/i386-coff.h
|
||||
@@ -2820,6 +2826,12 @@
|
||||
# On NetBSD, the headers are already okay, except for math.h.
|
||||
fixincludes=fixinc.wrap
|
||||
tmake_file=t-netbsd
|
||||
+ ;;
|
||||
+ sparc-*-openbsd*)
|
||||
+ tm_file=sparc/netbsd.h
|
||||
+ # On OpenBSD, the headers are already okay, except for math.h.
|
||||
+ fixincludes=fixinc.wrap
|
||||
+ tmake_file=t-openbsd
|
||||
;;
|
||||
sparc-*-bsd*)
|
||||
tm_file=sparc/bsd.h
|
||||
|
Loading…
Reference in New Issue
Block a user