aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorArnaud Charlet <charlet@gcc.gnu.org>2011-08-02 15:24:06 +0200
committerArnaud Charlet <charlet@gcc.gnu.org>2011-08-02 15:24:06 +0200
commit76e5271b9c5a2c3111a80c38784b26895c0fedd4 (patch)
tree212f0e2537fd9bfea52250fba6396252108c7c26 /gcc
parenta01b9df6570850b2202158e9914979878860c77d (diff)
downloadgcc-76e5271b9c5a2c3111a80c38784b26895c0fedd4.zip
gcc-76e5271b9c5a2c3111a80c38784b26895c0fedd4.tar.gz
gcc-76e5271b9c5a2c3111a80c38784b26895c0fedd4.tar.bz2
Fix bootstrap with g++
From-SVN: r177148
Diffstat (limited to 'gcc')
-rw-r--r--gcc/ada/gcc-interface/misc.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/gcc/ada/gcc-interface/misc.c b/gcc/ada/gcc-interface/misc.c
index a03bb0f..8531725 100644
--- a/gcc/ada/gcc-interface/misc.c
+++ b/gcc/ada/gcc-interface/misc.c
@@ -637,6 +637,10 @@ must_pass_by_ref (tree gnu_type)
&& TREE_CODE (TYPE_SIZE (gnu_type)) != INTEGER_CST));
}
+#ifdef __cplusplus
+extern "C" {
+#endif
+
/* This function is called by the front-end to enumerate all the supported
modes for the machine, as well as some predefined C types. F is a function
which is called back with the parameters as listed below, first a string,
@@ -755,6 +759,11 @@ enumerate_modes (void (*f) (const char *, int, int, int, int, int, int))
}
}
+#ifdef __cplusplus
+}
+#endif
+
+
/* Return the size of the FP mode with precision PREC. */
int