http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39618
kettenis at gnu dot org changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |kettenis at gnu dot org --- Comment #6 from kettenis at gnu dot org 2012-09-09 08:44:02 UTC --- This is fixed by the following commit. Turns out it is possible to use a carefully chosen address to get PCH working reliably, so I did go for that approach since it has a chance to work if GCC is compiled as a position independent executable as well. 2012-09-02 Mark Kettenis <kette...@openbsd.org> * 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.