summaryrefslogtreecommitdiff
path: root/gcc/config/i386/linux.h
diff options
context:
space:
mode:
authorjsm28 <jsm28@138bc75d-0d04-0410-961f-82ee72b054a4>2004-08-05 09:12:12 +0000
committerjsm28 <jsm28@138bc75d-0d04-0410-961f-82ee72b054a4>2004-08-05 09:12:12 +0000
commit15f72519213bb04d3bdb3eebe40bb1d328f2d9e9 (patch)
treef30553aaa3a9b73bc616afdd880e8b2bb92cd57e /gcc/config/i386/linux.h
parent4d28c5d1bd79990e131ac7994d9f3e8b4ea03b5d (diff)
downloadgcc-15f72519213bb04d3bdb3eebe40bb1d328f2d9e9.tar.gz
* config/linux.h, config/i386/linux.h, config/sparc/linux.h:
Remove definitions conditioned on USE_GNULIBC_1 or conditioned out, and associated obsolete comments. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@85600 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/config/i386/linux.h')
-rw-r--r--gcc/config/i386/linux.h36
1 files changed, 5 insertions, 31 deletions
diff --git a/gcc/config/i386/linux.h b/gcc/config/i386/linux.h
index 85e6cf2c98f..08b859ac310 100644
--- a/gcc/config/i386/linux.h
+++ b/gcc/config/i386/linux.h
@@ -83,11 +83,7 @@ Boston, MA 02111-1307, USA. */
while (0)
#undef CPP_SPEC
-#ifdef USE_GNULIBC_1
-#define CPP_SPEC "%{posix:-D_POSIX_SOURCE}"
-#else
#define CPP_SPEC "%{posix:-D_POSIX_SOURCE} %{pthread:-D_REENTRANT}"
-#endif
#undef CC1_SPEC
#define CC1_SPEC "%(cc1_cpu) %{profile:-p}"
@@ -109,11 +105,7 @@ Boston, MA 02111-1307, USA. */
/* If ELF is the default format, we should not use /lib/elf. */
#define LINK_EMULATION "elf_i386"
-#ifdef USE_GNULIBC_1
-# define DYNAMIC_LINKER "/lib/ld-linux.so.1"
-#else
-# define DYNAMIC_LINKER "/lib/ld-linux.so.2"
-#endif
+#define DYNAMIC_LINKER "/lib/ld-linux.so.2"
#undef SUBTARGET_EXTRA_SPECS
#define SUBTARGET_EXTRA_SPECS \
@@ -153,24 +145,6 @@ Boston, MA 02111-1307, USA. */
} while (0)
#endif
-#if defined(__PIC__) && defined (USE_GNULIBC_1)
-/* This is a kludge. The i386 GNU/Linux dynamic linker needs ___brk_addr,
- __environ and atexit. We have to make sure they are in the .dynsym
- section. We do this by forcing the assembler to create undefined
- references to these symbols in the object file. */
-#undef CRT_CALL_STATIC_FUNCTION
-#define CRT_CALL_STATIC_FUNCTION(SECTION_OP, FUNC) \
- asm (SECTION_OP "\n\t" \
- "call " USER_LABEL_PREFIX #FUNC "\n" \
- TEXT_SECTION_ASM_OP "\n\t" \
- ".extern ___brk_addr\n\t" \
- ".type ___brk_addr,@object\n\t" \
- ".extern __environ\n\t" \
- ".type __environ,@object\n\t" \
- ".extern atexit\n\t" \
- ".type atexit,@function");
-#endif
-
/* Handle special EH pointer encodings. Absolute, pc-relative, and
indirect are handled automatically. */
#define ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX(FILE, ENCODING, SIZE, ADDR, DONE) \
@@ -211,11 +185,11 @@ Boston, MA 02111-1307, USA. */
state data appropriately. See unwind-dw2.c for the structs. */
#ifdef IN_LIBGCC2
-/* There's no sys/ucontext.h for some (all?) libc1, so no
+/* There's no sys/ucontext.h for glibc 2.0, so no
signal-turned-exceptions for them. There's also no configure-run for
the target, so we can't check on (e.g.) HAVE_SYS_UCONTEXT_H. Using the
- target libc1 macro should be enough. */
-#if !(defined (USE_GNULIBC_1) || (__GLIBC__ == 2 && __GLIBC_MINOR__ == 0))
+ target libc version macro should be enough. */
+#if !(__GLIBC__ == 2 && __GLIBC_MINOR__ == 0)
#include <signal.h>
#include <sys/ucontext.h>
@@ -274,5 +248,5 @@ Boston, MA 02111-1307, USA. */
(FS)->retaddr_column = 8; \
goto SUCCESS; \
} while (0)
-#endif /* not USE_GNULIBC_1 */
+#endif /* not glibc 2.0 */
#endif /* IN_LIBGCC2 */