diff options
author | Richard Stallman <rms@gnu.org> | 1993-05-03 10:50:06 +0000 |
---|---|---|
committer | Richard Stallman <rms@gnu.org> | 1993-05-03 10:50:06 +0000 |
commit | 22cc53bcef662b3f15055efae4df9ef96a956da5 (patch) | |
tree | c4cd8d8f2be289457ad8b7a73632ca32d78f1404 /gcc | |
parent | a34f8b66bad6158347948c6f84308b8720699c0f (diff) | |
download | gcc-22cc53bcef662b3f15055efae4df9ef96a956da5.zip gcc-22cc53bcef662b3f15055efae4df9ef96a956da5.tar.gz gcc-22cc53bcef662b3f15055efae4df9ef96a956da5.tar.bz2 |
(FUNCTION_PROFILER, ASM_OUTPUT_ADDR_DIFF_ELT):
Remove PIC stuff. We wait for the ELF support in gas and binutils.
(LINK_SPEC): Defined for -v.
From-SVN: r4308
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/config/i386/linux.h | 42 |
1 files changed, 6 insertions, 36 deletions
diff --git a/gcc/config/i386/linux.h b/gcc/config/i386/linux.h index 5e635d0..359a9f3 100644 --- a/gcc/config/i386/linux.h +++ b/gcc/config/i386/linux.h @@ -90,25 +90,6 @@ #endif -/* The following macros are copied from i386bsd.h. */ - -/* Redefine this to use %eax instead of %edx. */ -#undef FUNCTION_PROFILER -#define FUNCTION_PROFILER(FILE, LABELNO) \ -{ \ - if (flag_pic) \ - { \ - fprintf (FILE, "\tleal %sP%d@GOTOFF(%%ebx),%%eax\n", \ - LPREFIX, (LABELNO)); \ - fprintf (FILE, "\tcall *_mcount@GOT(%%ebx)\n"); \ - } \ - else \ - { \ - fprintf (FILE, "\tmovl $%sP%d,%%eax\n", LPREFIX, (LABELNO)); \ - fprintf (FILE, "\tcall _mcount\n"); \ - } \ -} - /* There are conflicting reports about whether this system uses a different assembler syntax. wilson@cygnus.com says # is right. */ #undef COMMENT_BEGIN @@ -120,23 +101,12 @@ #undef ASM_APP_OFF #define ASM_APP_OFF "#NO_APP\n" -/* The following macros are copied from i386v4.h. */ - -/* These have to be defined to get PIC code correct */ - -/* 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 - i386.md for an explanation of the expression this outputs. */ - -#undef ASM_OUTPUT_ADDR_DIFF_ELT -#define ASM_OUTPUT_ADDR_DIFF_ELT(FILE, VALUE, REL) \ - fprintf (FILE, "\t.long _GLOBAL_OFFSET_TABLE_+[.-%s%d]\n", LPREFIX, VALUE) - -/* Indicate that jump tables go in the text section. This is - necessary when compiling PIC code. */ - -#define JUMP_TABLES_IN_TEXT_SECTION +#undef LINK_SPEC /* Don't default to pcc-struct-return, because gcc is the only compiler, and - we want to retain compatibility with older gcc versions. */ +#if TARGET_CPU_DEFAULT == 2 +#define LINK_SPEC "%{v:-dll-verbose} %{!m386:-m486}" +#else +#define LINK_SPEC "%{v:-dll-verbose} %{m486:-m486}" +#endif #define DEFAULT_PCC_STRUCT_RETURN 0 |