[llvm-commits] [gcc-plugin] r76367 - /gcc-plugin/trunk/gcc-patches/extern-c.diff
Duncan Sands
baldrick at free.fr
Sun Jul 19 06:53:18 PDT 2009
Author: baldrick
Date: Sun Jul 19 08:53:09 2009
New Revision: 76367
URL: http://llvm.org/viewvc/llvm-project?rev=76367&view=rev
Log:
Yet more "extern "C"" wrappers in gcc header files.
Modified:
gcc-plugin/trunk/gcc-patches/extern-c.diff
Modified: gcc-plugin/trunk/gcc-patches/extern-c.diff
URL: http://llvm.org/viewvc/llvm-project/gcc-plugin/trunk/gcc-patches/extern-c.diff?rev=76367&r1=76366&r2=76367&view=diff
==============================================================================
--- gcc-plugin/trunk/gcc-patches/extern-c.diff (original)
+++ gcc-plugin/trunk/gcc-patches/extern-c.diff Sun Jul 19 08:53:09 2009
@@ -412,3 +412,78 @@
+#endif /* __cplusplus */
+
#endif /* ! GCC_OUTPUT_H */
+Index: gcc.fsf.master/gcc/machmode.h
+===================================================================
+--- gcc.fsf.master.orig/gcc/machmode.h 2009-07-19 15:45:25.840100421 +0200
++++ gcc.fsf.master/gcc/machmode.h 2009-07-19 15:48:15.725212677 +0200
+@@ -23,6 +23,12 @@
+
+ /* Make an enum class that gives all the machine modes. */
+ #include "insn-modes.h"
++/* Mode classes. */
++#include "mode-classes.def"
++
++#ifdef __cplusplus
++extern "C" {
++#endif /* __cplusplus */
+
+ /* Get the name of mode MODE as a string. */
+
+@@ -270,4 +276,8 @@
+ /* Target-dependent machine mode initialization - in insn-modes.c. */
+ extern void init_adjust_machine_modes (void);
+
++#ifdef __cplusplus
++}
++#endif /* __cplusplus */
++
+ #endif /* not HAVE_MACHINE_MODES */
+Index: gcc.fsf.master/gcc/real.h
+===================================================================
+--- gcc.fsf.master.orig/gcc/real.h 2009-07-19 15:50:28.324100636 +0200
++++ gcc.fsf.master/gcc/real.h 2009-07-19 15:50:49.948110307 +0200
+@@ -30,6 +30,10 @@
+ #endif
+ #include "machmode.h"
+
++#ifdef __cplusplus
++extern "C" {
++#endif /* __cplusplus */
++
+ /* An expanded form of the represented number. */
+
+ /* Enumerate the special cases of numbers that we encounter. */
+@@ -486,4 +490,9 @@
+ number, (1 - b**-p) * b**emax for a given FP format FMT as a hex
+ float string. BUF must be large enough to contain the result. */
+ extern void get_max_float (const struct real_format *, char *, size_t);
++
++#ifdef __cplusplus
++}
++#endif /* __cplusplus */
++
+ #endif /* ! GCC_REAL_H */
+Index: gcc.fsf.master/gcc/vec.h
+===================================================================
+--- gcc.fsf.master.orig/gcc/vec.h 2009-07-19 15:43:50.876075414 +0200
++++ gcc.fsf.master/gcc/vec.h 2009-07-19 15:44:24.408140290 +0200
+@@ -21,6 +21,10 @@
+ #ifndef GCC_VEC_H
+ #define GCC_VEC_H
+
++#ifdef __cplusplus
++extern "C" {
++#endif /* __cplusplus */
++
+ /* The macros here implement a set of templated vector types and
+ associated interfaces. These templates are implemented with
+ macros, as we're not in C++ land. The interface functions are
+@@ -1278,4 +1282,8 @@
+ return ((VEC(T,stack) *) vec_stack_p_reserve_exact_1 (alloc_, space); \
+ }
+
++#ifdef __cplusplus
++}
++#endif /* __cplusplus */
++
+ #endif /* GCC_VEC_H */
More information about the llvm-commits
mailing list