From c79d14839713912e676d1bd3269886f2dc851404 Mon Sep 17 00:00:00 2001 From: David O'Brien Date: Tue, 2 Feb 1999 22:48:49 +0000 Subject: [PATCH] * i386/freebsd*.h now allows '$' in label names and does not use the PCC struct return method. From-SVN: r24992 --- gcc/ChangeLog | 5 +++++ gcc/config/i386/freebsd-elf.h | 7 ++++++- gcc/config/i386/freebsd.h | 8 ++++++-- 3 files changed, 17 insertions(+), 3 deletions(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index ff921cfd38d9..62f3fd0053f9 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +Tue Feb 2 23:38:35 1999 David O'Brien + + * i386/freebsd*.h now allows '$' in label names and does not use the PCC struct + return method. + Tue Feb 2 22:38:23 1999 Jim Wilson * Makefile.in: Change all uses of AR to AR_FOR_TARGET. Change all uses diff --git a/gcc/config/i386/freebsd-elf.h b/gcc/config/i386/freebsd-elf.h index 3c1934b4cda5..0a556fe01bdd 100644 --- a/gcc/config/i386/freebsd-elf.h +++ b/gcc/config/i386/freebsd-elf.h @@ -26,8 +26,13 @@ Boston, MA 02111-1307, USA. */ /* The svr4 ABI for the i386 says that records and unions are returned in memory. */ +/* On FreeBSD, we do not. */ #undef DEFAULT_PCC_STRUCT_RETURN -#define DEFAULT_PCC_STRUCT_RETURN 1 +#define DEFAULT_PCC_STRUCT_RETURN 0 + +/* This gets defined in tm.h->linux.h->svr4.h, and keeps us from using + libraries compiled with the native cc, so undef it. */ +#undef NO_DOLLAR_IN_LABEL /* This is how to output an element of a case-vector that is relative. This is only used for PIC code. See comments by the `casesi' insn in diff --git a/gcc/config/i386/freebsd.h b/gcc/config/i386/freebsd.h index df653ae3bd99..965e93c9f620 100644 --- a/gcc/config/i386/freebsd.h +++ b/gcc/config/i386/freebsd.h @@ -86,9 +86,13 @@ Boston, MA 02111-1307, USA. */ #define JUMP_TABLES_IN_TEXT_SECTION 1 -/* Don't default to pcc-struct-return, because gcc is the only compiler, and - we want to retain compatibility with older gcc versions. */ +/* Don't default to pcc-struct-return, because in FreeBSD we prefer the + superior nature of the older gcc way. */ #define DEFAULT_PCC_STRUCT_RETURN 0 + +/* Ensure we the configuration knows our system correctly so we can link with + libraries compiled with the native cc. */ +#undef NO_DOLLAR_IN_LABEL /* i386 freebsd still uses old binutils that don't insert nops by default when the .align directive demands to insert extra space in the text