From e4c4f8df439855c7f2571092cada7e8fd9e38c0f Mon Sep 17 00:00:00 2001 From: Jeffrey A Law Date: Tue, 13 Jan 1998 20:54:16 +0000 Subject: [PATCH] netbsd.h (DWARF2_UNWIND_INFO): Define as zero for now. * arm/netbsd.h (DWARF2_UNWIND_INFO): Define as zero for now. * i386/netbsd.h, m68k/netbsd.h, ns32k/netbsd.h: Likewise. * sparc/netbsd.h, vax/netbsd.h: Likewise. From-SVN: r17339 --- gcc/ChangeLog | 6 ++++++ gcc/config/arm/netbsd.h | 28 ++++++++++++++++++++++------ gcc/config/i386/netbsd.h | 5 +++++ gcc/config/m68k/netbsd.h | 5 +++++ gcc/config/ns32k/netbsd.h | 5 +++++ gcc/config/sparc/netbsd.h | 5 +++++ gcc/config/vax/netbsd.h | 5 +++++ 7 files changed, 53 insertions(+), 6 deletions(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index c319f726416..bc8afae96a8 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,9 @@ +Tue Jan 13 21:55:06 1998 Jeffrey A Law (law@cygnus.com) + + * arm/netbsd.h (DWARF2_UNWIND_INFO): Define as zero for now. + * i386/netbsd.h, m68k/netbsd.h, ns32k/netbsd.h: Likewise. + * sparc/netbsd.h, vax/netbsd.h: Likewise. + Tue Jan 13 21:37:07 1998 Shigeya Suzuki * i386/bsd386.h (DWARF2_UNWIND_INFO): Define as zero for now. diff --git a/gcc/config/arm/netbsd.h b/gcc/config/arm/netbsd.h index 2bcd165181a..01811101b19 100644 --- a/gcc/config/arm/netbsd.h +++ b/gcc/config/arm/netbsd.h @@ -1,6 +1,5 @@ -/* - NetBSD/arm (RiscBSD) version. - Copyright (C) 1993, 1994 Free Software Foundation, Inc. +/* NetBSD/arm (RiscBSD) version. + Copyright (C) 1993, 1994, 1997 Free Software Foundation, Inc. Contributed by Mark Brinicombe (amb@physig.ph.kcl.ac.uk) This file is part of GNU CC. @@ -50,7 +49,7 @@ the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */ arm32 is the NetBSD port name, so we always define arm32 and __arm32__. */ #undef CPP_PREDEFINES #define CPP_PREDEFINES "\ --Dunix -Driscbsd -Darm32 -D__arm32__ -D__NetBSD__ \ +-Dunix -Driscbsd -Darm32 -D__arm32__ -D__arm__ -D__NetBSD__ \ -Asystem(unix) -Asystem(NetBSD) -Acpu(arm) -Amachine(arm)" /* Define _POSIX_SOURCE if necessary. */ @@ -64,6 +63,13 @@ the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */ #undef CPP_APCS_PC_DEFAULT_SPEC #define CPP_APCS_PC_DEFAULT_SPEC "-D__APCS_32__" +/* Pass -X to the linker so that it will strip symbols starting with 'L' */ +#undef LINK_SPEC +#define LINK_SPEC "\ +-X %{!nostdlib:%{!r*:%{!e*:-e start}}} -dc -dp %{R*} \ +%{static:-Bstatic} %{assert*} \ +" + #undef SIZE_TYPE #define SIZE_TYPE "unsigned int" @@ -97,12 +103,17 @@ the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */ fprintf(STREAM, "\tbl\tmcount\n"); \ } +/* On the ARM `@' introduces a comment, so we must use something else + for .type directives. */ +#undef TYPE_OPERAND_FMT +#define TYPE_OPERAND_FMT "%%%s" + /* VERY BIG NOTE : Change of structure alignment for RiscBSD. There are consequences you should be aware of... Normally GCC/arm uses a structure alignment of 32 for compatibility with armcc. This means that structures are padded to a word - boundry. However this causes problems with bugged NetBSD kernel + boundary. However this causes problems with bugged NetBSD kernel code (possibly userland code as well - I have not checked every binary). The nature of this bugged code is to rely on sizeof() returning the correct size of various structures rounded to the @@ -118,7 +129,7 @@ the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */ structures containing shorts will be half word alinged. structures containing ints will be word aligned. - This means structures should be padded to a word boundry if + This means structures should be padded to a word boundary if alignment of 32 is required for byte structures etc. 2. A potential performance penalty may exist if strings are no longer @@ -130,3 +141,8 @@ the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */ requirements. */ #undef STRUCTURE_SIZE_BOUNDARY #define STRUCTURE_SIZE_BOUNDARY 8 + +/* Until they use ELF or something that handles dwarf2 unwinds + and initialization stuff better. */ +#define DWARF2_UNWIND_INFO 0 + diff --git a/gcc/config/i386/netbsd.h b/gcc/config/i386/netbsd.h index 8262fb04195..3442aeadb87 100644 --- a/gcc/config/i386/netbsd.h +++ b/gcc/config/i386/netbsd.h @@ -71,3 +71,8 @@ fprintf (FILE, "\tcall mcount\n"); \ } \ } + +/* Until they use ELF or something that handles dwarf2 unwinds + and initialization stuff better. */ +#define DWARF2_UNWIND_INFO 0 + diff --git a/gcc/config/m68k/netbsd.h b/gcc/config/m68k/netbsd.h index 0dbf380c76d..1e2f9a53046 100644 --- a/gcc/config/m68k/netbsd.h +++ b/gcc/config/m68k/netbsd.h @@ -56,3 +56,8 @@ /* Don't default to pcc-struct-return, because gcc is the only compiler, and we want to retain compatibility with older gcc versions. */ #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 + diff --git a/gcc/config/ns32k/netbsd.h b/gcc/config/ns32k/netbsd.h index 4c7202cff91..f2f4895b23a 100644 --- a/gcc/config/ns32k/netbsd.h +++ b/gcc/config/ns32k/netbsd.h @@ -105,3 +105,8 @@ Boston, MA 02111-1307, USA. #undef PCC_STATIC_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 + diff --git a/gcc/config/sparc/netbsd.h b/gcc/config/sparc/netbsd.h index 4bb9537b905..3fd6fe92020 100644 --- a/gcc/config/sparc/netbsd.h +++ b/gcc/config/sparc/netbsd.h @@ -38,3 +38,8 @@ /* Don't default to pcc-struct-return, because gcc is the only compiler, and we want to retain compatibility with older gcc versions. */ #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 + diff --git a/gcc/config/vax/netbsd.h b/gcc/config/vax/netbsd.h index 1bbda32b4e4..dba70237d47 100644 --- a/gcc/config/vax/netbsd.h +++ b/gcc/config/vax/netbsd.h @@ -17,3 +17,8 @@ #undef WCHAR_TYPE_SIZE #define WCHAR_TYPE_SIZE 32 + +/* Until they use ELF or something that handles dwarf2 unwinds + and initialization stuff better. */ +#define DWARF2_UNWIND_INFO 0 + -- 2.30.2