diff options
author | espie <espie@138bc75d-0d04-0410-961f-82ee72b054a4> | 2005-01-15 10:56:48 +0000 |
---|---|---|
committer | espie <espie@138bc75d-0d04-0410-961f-82ee72b054a4> | 2005-01-15 10:56:48 +0000 |
commit | d3ad7bb15e5f64b33f80be1815f68831ef76ff29 (patch) | |
tree | 771c9e0201505de7675a4751702fbadb35ce5726 /gcc/config.gcc | |
parent | 0f7571bb747acae71dfaedff497a18e98fdc8585 (diff) | |
download | gcc-d3ad7bb15e5f64b33f80be1815f68831ef76ff29.tar.gz |
2005-01-11 Marc Espie <espie@openbsd.org>
* config.gcc (*-*-openbsd*): Set HAS_LIBC_R for OpenBSD <= 3.2.
(i[34567]86-*-openbsd*): Switch to ELF for OpenBSD >= 3.4.
* config/openbsd.h: Fix C++ includes for native configurations.
Add proper OS_CPP_BUILTINS. Fix libspec for recent OpenBSD.
Add trampoline support.
* config/i386/openbsdelf.h: New.
okay Richard Earnshaw, Zack Weinberg, further changes in a separate patch.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@93694 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/config.gcc')
-rw-r--r-- | gcc/config.gcc | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/gcc/config.gcc b/gcc/config.gcc index 397be8da821..a295059127a 100644 --- a/gcc/config.gcc +++ b/gcc/config.gcc @@ -493,6 +493,10 @@ case ${target} in tmake_file="${tmake_file} t-openbsd-thread" ;; esac + case ${target} in + *-*-openbsd2.*|*-*-openbsd3.[012]) + tm_defines="${tm_defines} HAS_LIBC_R=1" ;; + esac ;; *-*-rtems*) case ${enable_threads} in @@ -930,13 +934,20 @@ i[34567]86-*-netbsd*) x86_64-*-netbsd*) tm_file="${tm_file} i386/unix.h i386/att.h dbxelf.h elfos.h netbsd.h netbsd-elf.h i386/x86-64.h i386/netbsd64.h" ;; -i[34567]86-*-openbsd*) +i[34567]86-*-openbsd2.*|i[34567]86-*openbsd3.[0123]) tm_file="i386/i386.h i386/unix.h i386/bsd.h i386/gas.h i386/gstabs.h openbsd-oldgas.h openbsd.h i386/openbsd.h" # needed to unconfuse gdb tmake_file="t-libc-ok t-openbsd i386/t-openbsd" # we need collect2 until our bug is fixed... use_collect2=yes ;; +i[34567]86-*-openbsd*) + tm_file="${tm_file} i386/unix.h i386/att.h dbxelf.h elfos.h i386/i386elf.h" + tm_file="${tm_file} openbsd.h i386/openbsdelf.h" + gas=yes + gnu_ld=yes + stabs=yes + ;; i[34567]86-*-coff*) tm_file="${tm_file} i386/unix.h i386/bsd.h i386/gas.h dbxcoff.h i386/i386-coff.h" use_fixproto=yes |