summaryrefslogtreecommitdiff
path: root/gnu/gcc
diff options
context:
space:
mode:
authorMark Kettenis <kettenis@cvs.openbsd.org>2012-10-06 14:39:08 +0000
committerMark Kettenis <kettenis@cvs.openbsd.org>2012-10-06 14:39:08 +0000
commitb529fd26f933e18da058164ba7adada3eee9a55a (patch)
tree97cb4e7450362329b38de4c6478673a65938a521 /gnu/gcc
parent6995c894e9430aea10eb447043fd167cd7e14f85 (diff)
Our system headers are supposed to be C++-aware these days so stop GCC from
wrapping them with an implicit extern "C" since that breaks the webkit port. Help from matthew@ and landry@. ok landry@
Diffstat (limited to 'gnu/gcc')
-rw-r--r--gnu/gcc/gcc/config/openbsd.h4
-rw-r--r--gnu/gcc/gcc/config/sparc/openbsd64.h3
2 files changed, 4 insertions, 3 deletions
diff --git a/gnu/gcc/gcc/config/openbsd.h b/gnu/gcc/gcc/config/openbsd.h
index fba4ae42a46..658c5e44265 100644
--- a/gnu/gcc/gcc/config/openbsd.h
+++ b/gnu/gcc/gcc/config/openbsd.h
@@ -349,5 +349,9 @@ __enable_execute_stack (void *addr) \
*/
#define NO_UNSAFE_BUILTINS
+/* The system headers on OpenBSD are C++-aware. */
+#undef NO_IMPLICIT_EXTERN_C
+#define NO_IMPLICIT_EXTERN_C
+
#include <sys/types.h>
#include <sys/mman.h>
diff --git a/gnu/gcc/gcc/config/sparc/openbsd64.h b/gnu/gcc/gcc/config/sparc/openbsd64.h
index dc419b97f8b..a42463f9557 100644
--- a/gnu/gcc/gcc/config/sparc/openbsd64.h
+++ b/gnu/gcc/gcc/config/sparc/openbsd64.h
@@ -48,9 +48,6 @@ Boston, MA 02110-1301, USA. */
#undef MD_EXEC_PREFIX
#undef MD_STARTFILE_PREFIX
-/* Inherited from sp64-elf. */
-#undef NO_IMPLICIT_EXTERN_C
-
#undef ASM_SPEC
#ifdef PIE_DEFAULT
#define ASM_SPEC "\