aboutsummaryrefslogtreecommitdiff
path: root/gcc/config.gcc
diff options
context:
space:
mode:
authorMark Kettenis <kettenis@openbsd.org>2012-09-02 14:13:21 +0000
committerGerald Pfeifer <gerald@gcc.gnu.org>2012-09-02 14:13:21 +0000
commit613061fdd04360cdc6575c1dc057d465b30dc6d3 (patch)
treee75b69f83399d75daa03596421f6de996d8c137b /gcc/config.gcc
parentee86a05fd0280deb393058ae2dec7b47b70b7987 (diff)
downloadgcc-613061fdd04360cdc6575c1dc057d465b30dc6d3.zip
gcc-613061fdd04360cdc6575c1dc057d465b30dc6d3.tar.gz
gcc-613061fdd04360cdc6575c1dc057d465b30dc6d3.tar.bz2
config.host (x86_64-*-openbsd*): New target.
libgcc/ * config.host (x86_64-*-openbsd*): New target. gcc/ * config.gcc (x86_64-*-openbsd*): New target. * config.host (*-*-openbsd*): New target. * config/openbsd.h (TARGET_C99_FUNCTIONS): Define. * config/i386/openbsdelf.h: Remove some superfluous defines and group things together in a more logical fashion. (DBX_REGISTER_NUMBER): Provide a definition that works on both 32-bit and 64-bit targets. (WCHAR_TYPE_SIZE): Hardcode as 32. (NO_DOLLAR_IN_LABEL): Remove undef. (TARGET_DEFAULT): Remove. (SET_ASM_OP): Remove. (DEFAULT_PCC_STRUCT_RETURN): Undef first to prevent warning. (ASM_OUTPUT_MAX_SKIP_ALIGN): Synch with x86-64.h (DWARF2_UNWIND_INFO): Remove define. (HAVE_ENABLE_EXECUTE_STACK): Define. * config/host-openbsd.c: New file. * config/t-openbsd (USER_H): Add EXTRA_HEADERS. * config/x-openbsd: New file. From-SVN: r190863
Diffstat (limited to 'gcc/config.gcc')
-rw-r--r--gcc/config.gcc7
1 files changed, 7 insertions, 0 deletions
diff --git a/gcc/config.gcc b/gcc/config.gcc
index 9ec8a41..514f672 100644
--- a/gcc/config.gcc
+++ b/gcc/config.gcc
@@ -1183,6 +1183,13 @@ i[34567]86-*-openbsd*)
gas=yes
gnu_ld=yes
;;
+x86_64-*-openbsd*)
+ tm_file="${tm_file} i386/unix.h i386/att.h dbxelf.h elfos.h"
+ tm_file="${tm_file} openbsd.h openbsd-stdint.h openbsd-libpthread.h i386/x86-64.h i386/openbsdelf.h"
+ extra_options="${extra_options} openbsd.opt"
+ gas=yes
+ gnu_ld=yes
+ ;;
i[34567]86-*-linux* | i[34567]86-*-kfreebsd*-gnu | i[34567]86-*-knetbsd*-gnu | i[34567]86-*-gnu* | i[34567]86-*-kopensolaris*-gnu)
# Intel 80386's running GNU/*
# with ELF format using glibc 2