From 1bd93e5319ec6d44f1ea285c2690750beebbb54a Mon Sep 17 00:00:00 2001 From: ljrittle Date: Tue, 29 Apr 2003 12:52:57 +0000 Subject: [PATCH 1/1] * config/i386/freebsd-aout.h (NO_PROFILE_COUNTERS): New macro. (SET_ASM_OP): New macro. (HANDLE_SYSV_PRAGMA): New macro. (ASM_WEAKEN_LABEL): New macro. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@66223 138bc75d-0d04-0410-961f-82ee72b054a4 --- gcc/ChangeLog | 4 ++++ gcc/config/i386/freebsd-aout.h | 10 ++++++++++ 2 files changed, 14 insertions(+) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 559de62d080..3b02732bb0f 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -7,6 +7,10 @@ * config/i386/freebsd64.h (LINK_SPEC): Mirror FreeBSD linker. * config/rs6000/freebsd.h (LINK_SHLIB_SPEC): New macro. (SIZE_TYPE): New macro. + * config/i386/freebsd-aout.h (NO_PROFILE_COUNTERS): New macro. + (SET_ASM_OP): New macro. + (HANDLE_SYSV_PRAGMA): New macro. + (ASM_WEAKEN_LABEL): New macro. 2003-04-28 Mark Mitchell diff --git a/gcc/config/i386/freebsd-aout.h b/gcc/config/i386/freebsd-aout.h index 78735f0d71b..48fea7fb64c 100644 --- a/gcc/config/i386/freebsd-aout.h +++ b/gcc/config/i386/freebsd-aout.h @@ -94,6 +94,9 @@ Boston, MA 02111-1307, USA. */ /* Profiling routines, partially copied from i386/osfrose.h. */ +/* Tell final.c that we don't need a label passed to mcount. */ +#define NO_PROFILE_COUNTERS 1 + #undef MCOUNT_NAME #define MCOUNT_NAME "mcount" #undef PROFILE_COUNT_REGISTER @@ -112,6 +115,7 @@ Boston, MA 02111-1307, USA. */ #define TYPE_ASM_OP "\t.type\t" #define SIZE_ASM_OP "\t.size\t" +#define SET_ASM_OP "\t.set\t" /* The following macro defines the format used to output the second operand of the .type assembler directive. Different svr4 assemblers @@ -121,6 +125,12 @@ Boston, MA 02111-1307, USA. */ #define TYPE_OPERAND_FMT "@%s" +#define HANDLE_SYSV_PRAGMA 1 + +#define ASM_WEAKEN_LABEL(FILE,NAME) \ + do { fputs ("\t.weak\t", FILE); assemble_name (FILE, NAME); \ + fputc ('\n', FILE); } while (0) + /* Write the extra assembler code needed to declare a function's result. Most svr4 assemblers don't require any special declaration of the result value, but there are exceptions. */ -- 2.11.0