[llvm-commits] [gcc-plugin] r76400 - /gcc-plugin/trunk/gcc-patches/extern-c.diff
Duncan Sands
baldrick at free.fr
Sun Jul 19 23:29:33 PDT 2009
Author: baldrick
Date: Mon Jul 20 01:29:33 2009
New Revision: 76400
URL: http://llvm.org/viewvc/llvm-project?rev=76400&view=rev
Log:
Yet more 'extern "C"' wrappers.
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=76400&r1=76399&r2=76400&view=diff
==============================================================================
--- gcc-plugin/trunk/gcc-patches/extern-c.diff (original)
+++ gcc-plugin/trunk/gcc-patches/extern-c.diff Mon Jul 20 01:29:33 2009
@@ -1,7 +1,7 @@
Index: gcc.fsf.master/gcc/flags.h
===================================================================
---- gcc.fsf.master.orig/gcc/flags.h 2009-07-16 06:29:31.411594330 +0200
-+++ gcc.fsf.master/gcc/flags.h 2009-07-16 14:18:26.386942015 +0200
+--- gcc.fsf.master.orig/gcc/flags.h 2009-07-20 07:06:07.888082273 +0200
++++ gcc.fsf.master/gcc/flags.h 2009-07-20 07:06:41.568127963 +0200
@@ -26,6 +26,10 @@
#include "options.h"
#include "real.h"
@@ -13,7 +13,7 @@
enum debug_info_type
{
NO_DEBUG, /* Write no debug info. */
-@@ -398,4 +402,8 @@
+@@ -401,4 +405,8 @@
/* Whether to emit an overflow warning whose code is C. */
#define issue_strict_overflow_warning(c) (warn_strict_overflow >= (int) (c))
@@ -24,8 +24,8 @@
#endif /* ! GCC_FLAGS_H */
Index: gcc.fsf.master/gcc/opth-gen.awk
===================================================================
---- gcc.fsf.master.orig/gcc/opth-gen.awk 2009-07-16 06:29:31.375638464 +0200
-+++ gcc.fsf.master/gcc/opth-gen.awk 2009-07-16 14:18:26.411868822 +0200
+--- gcc.fsf.master.orig/gcc/opth-gen.awk 2009-07-20 07:03:59.825100430 +0200
++++ gcc.fsf.master/gcc/opth-gen.awk 2009-07-20 07:06:41.572076368 +0200
@@ -66,6 +66,10 @@
print "#ifndef OPTIONS_H"
print "#define OPTIONS_H"
@@ -49,8 +49,8 @@
}
Index: gcc.fsf.master/gcc/tree.h
===================================================================
---- gcc.fsf.master.orig/gcc/tree.h 2009-07-16 06:41:02.916597755 +0200
-+++ gcc.fsf.master/gcc/tree.h 2009-07-16 14:18:26.454840309 +0200
+--- gcc.fsf.master.orig/gcc/tree.h 2009-07-20 07:06:07.960172997 +0200
++++ gcc.fsf.master/gcc/tree.h 2009-07-20 07:06:41.576076736 +0200
@@ -31,6 +31,10 @@
#include "alias.h"
#include "options.h"
@@ -62,7 +62,7 @@
/* Codes of tree nodes */
#define DEFTREECODE(SYM, STRING, TYPE, NARGS) SYM,
-@@ -5293,4 +5297,8 @@
+@@ -5344,4 +5348,8 @@
for ((arg) = first_const_call_expr_arg ((call), &(iter)); (arg); \
(arg) = next_const_call_expr_arg (&(iter)))
@@ -73,8 +73,8 @@
#endif /* GCC_TREE_H */
Index: gcc.fsf.master/gcc/tree-flow.h
===================================================================
---- gcc.fsf.master.orig/gcc/tree-flow.h 2009-07-16 06:41:02.956597999 +0200
-+++ gcc.fsf.master/gcc/tree-flow.h 2009-07-16 14:18:26.470942184 +0200
+--- gcc.fsf.master.orig/gcc/tree-flow.h 2009-07-20 07:04:00.009074849 +0200
++++ gcc.fsf.master/gcc/tree-flow.h 2009-07-20 07:06:41.576076736 +0200
@@ -32,6 +32,10 @@
#include "ipa-reference.h"
#include "tree-ssa-alias.h"
@@ -97,8 +97,8 @@
#endif /* _TREE_FLOW_H */
Index: gcc.fsf.master/gcc/gimple.h
===================================================================
---- gcc.fsf.master.orig/gcc/gimple.h 2009-07-16 06:29:31.471600868 +0200
-+++ gcc.fsf.master/gcc/gimple.h 2009-07-16 14:18:26.490842575 +0200
+--- gcc.fsf.master.orig/gcc/gimple.h 2009-07-20 07:06:08.300077288 +0200
++++ gcc.fsf.master/gcc/gimple.h 2009-07-20 07:06:41.580076966 +0200
@@ -30,6 +30,10 @@
#include "basic-block.h"
#include "tree-ssa-operands.h"
@@ -110,7 +110,7 @@
DEF_VEC_P(gimple);
DEF_VEC_ALLOC_P(gimple,heap);
DEF_VEC_ALLOC_P(gimple,gc);
-@@ -4486,4 +4490,8 @@
+@@ -4485,4 +4489,8 @@
extern void dump_gimple_statistics (void);
@@ -121,8 +121,8 @@
#endif /* GCC_GIMPLE_H */
Index: gcc.fsf.master/gcc/configure
===================================================================
---- gcc.fsf.master.orig/gcc/configure 2009-07-16 06:41:02.920597417 +0200
-+++ gcc.fsf.master/gcc/configure 2009-07-16 14:18:26.538840612 +0200
+--- gcc.fsf.master.orig/gcc/configure 2009-07-20 07:04:00.253070167 +0200
++++ gcc.fsf.master/gcc/configure 2009-07-20 07:06:41.592072275 +0200
@@ -13982,6 +13982,10 @@
cat > plugin-version.h <<EOF
#include "configargs.h"
@@ -147,8 +147,8 @@
# Internationalization
Index: gcc.fsf.master/gcc/configure.ac
===================================================================
---- gcc.fsf.master.orig/gcc/configure.ac 2009-07-16 06:41:02.932597797 +0200
-+++ gcc.fsf.master/gcc/configure.ac 2009-07-16 14:18:26.558871048 +0200
+--- gcc.fsf.master.orig/gcc/configure.ac 2009-07-20 07:03:59.781102378 +0200
++++ gcc.fsf.master/gcc/configure.ac 2009-07-20 07:06:41.592072275 +0200
@@ -1521,6 +1521,10 @@
cat > plugin-version.h <<EOF
#include "configargs.h"
@@ -173,8 +173,8 @@
Index: gcc.fsf.master/gcc/coretypes.h
===================================================================
---- gcc.fsf.master.orig/gcc/coretypes.h 2009-07-16 06:29:31.599598745 +0200
-+++ gcc.fsf.master/gcc/coretypes.h 2009-07-16 14:18:26.575873119 +0200
+--- gcc.fsf.master.orig/gcc/coretypes.h 2009-07-20 07:04:00.261070835 +0200
++++ gcc.fsf.master/gcc/coretypes.h 2009-07-20 07:06:41.592072275 +0200
@@ -37,6 +37,10 @@
#ifndef GCC_CORETYPES_H
#define GCC_CORETYPES_H
@@ -198,8 +198,8 @@
+#endif /* coretypes.h */
Index: gcc.fsf.master/gcc/gcc-plugin.h
===================================================================
---- gcc.fsf.master.orig/gcc/gcc-plugin.h 2009-07-16 06:29:31.403599057 +0200
-+++ gcc.fsf.master/gcc/gcc-plugin.h 2009-07-16 14:18:26.575873119 +0200
+--- gcc.fsf.master.orig/gcc/gcc-plugin.h 2009-07-20 07:03:59.909072554 +0200
++++ gcc.fsf.master/gcc/gcc-plugin.h 2009-07-20 07:06:41.592072275 +0200
@@ -27,6 +27,10 @@
#include "config.h"
#include "system.h"
@@ -222,8 +222,8 @@
#endif /* GCC_PLUGIN_H */
Index: gcc.fsf.master/gcc/target.h
===================================================================
---- gcc.fsf.master.orig/gcc/target.h 2009-07-16 06:29:31.519597011 +0200
-+++ gcc.fsf.master/gcc/target.h 2009-07-16 14:18:26.578869635 +0200
+--- gcc.fsf.master.orig/gcc/target.h 2009-07-20 07:04:00.097102020 +0200
++++ gcc.fsf.master/gcc/target.h 2009-07-20 07:06:41.592072275 +0200
@@ -52,6 +52,10 @@
#include "tm.h"
#include "insn-modes.h"
@@ -246,8 +246,8 @@
#endif /* GCC_TARGET_H */
Index: gcc.fsf.master/gcc/toplev.h
===================================================================
---- gcc.fsf.master.orig/gcc/toplev.h 2009-07-16 06:29:31.507594293 +0200
-+++ gcc.fsf.master/gcc/toplev.h 2009-07-16 14:18:26.578869635 +0200
+--- gcc.fsf.master.orig/gcc/toplev.h 2009-07-20 07:04:00.021070366 +0200
++++ gcc.fsf.master/gcc/toplev.h 2009-07-20 07:06:41.592072275 +0200
@@ -23,6 +23,10 @@
#include "input.h"
#include "bversion.h"
@@ -270,8 +270,8 @@
#endif /* ! GCC_TOPLEV_H */
Index: gcc.fsf.master/gcc/tree-pass.h
===================================================================
---- gcc.fsf.master.orig/gcc/tree-pass.h 2009-07-16 06:29:31.515618117 +0200
-+++ gcc.fsf.master/gcc/tree-pass.h 2009-07-16 14:18:26.578869635 +0200
+--- gcc.fsf.master.orig/gcc/tree-pass.h 2009-07-20 07:06:07.980077199 +0200
++++ gcc.fsf.master/gcc/tree-pass.h 2009-07-20 07:06:41.592072275 +0200
@@ -25,6 +25,10 @@
#include "timevar.h"
@@ -283,7 +283,7 @@
/* Different tree dump places. When you add new tree dump places,
extend the DUMP_FILES array in tree-dump.c. */
enum tree_dump_index
-@@ -551,4 +555,8 @@
+@@ -549,4 +553,8 @@
directly in jump threading, and avoid peeling them next time. */
extern bool first_pass_instance;
@@ -294,8 +294,8 @@
#endif /* GCC_TREE_PASS_H */
Index: gcc.fsf.master/gcc/rtl.h
===================================================================
---- gcc.fsf.master.orig/gcc/rtl.h 2009-07-16 06:29:31.559601369 +0200
-+++ gcc.fsf.master/gcc/rtl.h 2009-07-16 14:18:26.590870925 +0200
+--- gcc.fsf.master.orig/gcc/rtl.h 2009-07-20 07:04:00.113072835 +0200
++++ gcc.fsf.master/gcc/rtl.h 2009-07-20 07:06:41.592072275 +0200
@@ -30,6 +30,10 @@
#include "fixed-value.h"
#include "alias.h"
@@ -318,8 +318,8 @@
#endif /* ! GCC_RTL_H */
Index: gcc.fsf.master/gcc/genflags.c
===================================================================
---- gcc.fsf.master.orig/gcc/genflags.c 2009-07-17 17:24:57.634771163 +0200
-+++ gcc.fsf.master/gcc/genflags.c 2009-07-17 17:30:14.634798605 +0200
+--- gcc.fsf.master.orig/gcc/genflags.c 2009-07-20 07:04:00.025070804 +0200
++++ gcc.fsf.master/gcc/genflags.c 2009-07-20 07:06:41.596071945 +0200
@@ -268,6 +268,9 @@
puts (" from the machine description file `md'. */\n");
puts ("#ifndef GCC_INSN_FLAGS_H");
@@ -344,8 +344,8 @@
return FATAL_EXIT_CODE;
Index: gcc.fsf.master/gcc/genpreds.c
===================================================================
---- gcc.fsf.master.orig/gcc/genpreds.c 2009-07-18 22:14:45.143289242 +0200
-+++ gcc.fsf.master/gcc/genpreds.c 2009-07-18 22:17:05.675291312 +0200
+--- gcc.fsf.master.orig/gcc/genpreds.c 2009-07-20 07:03:59.809073113 +0200
++++ gcc.fsf.master/gcc/genpreds.c 2009-07-20 07:06:41.596071945 +0200
@@ -1257,6 +1257,8 @@
\n\
#ifdef HAVE_MACHINE_MODES");
@@ -366,8 +366,8 @@
Index: gcc.fsf.master/gcc/input.h
===================================================================
---- gcc.fsf.master.orig/gcc/input.h 2009-07-18 21:56:29.891292342 +0200
-+++ gcc.fsf.master/gcc/input.h 2009-07-18 21:57:20.579395883 +0200
+--- gcc.fsf.master.orig/gcc/input.h 2009-07-20 07:04:00.013091770 +0200
++++ gcc.fsf.master/gcc/input.h 2009-07-20 07:06:41.596071945 +0200
@@ -24,6 +24,10 @@
#include "line-map.h"
@@ -390,8 +390,8 @@
#endif
Index: gcc.fsf.master/gcc/output.h
===================================================================
---- gcc.fsf.master.orig/gcc/output.h 2009-07-18 22:12:12.819292531 +0200
-+++ gcc.fsf.master/gcc/output.h 2009-07-18 22:12:50.059322782 +0200
+--- gcc.fsf.master.orig/gcc/output.h 2009-07-20 07:03:59.873072659 +0200
++++ gcc.fsf.master/gcc/output.h 2009-07-20 07:06:41.596071945 +0200
@@ -22,6 +22,10 @@
#ifndef GCC_OUTPUT_H
#define GCC_OUTPUT_H
@@ -414,8 +414,8 @@
#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
+--- gcc.fsf.master.orig/gcc/machmode.h 2009-07-20 07:04:00.065101936 +0200
++++ gcc.fsf.master/gcc/machmode.h 2009-07-20 07:06:41.596071945 +0200
@@ -23,6 +23,12 @@
/* Make an enum class that gives all the machine modes. */
@@ -440,9 +440,9 @@
#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 @@
+--- gcc.fsf.master.orig/gcc/real.h 2009-07-20 07:06:07.996076507 +0200
++++ gcc.fsf.master/gcc/real.h 2009-07-20 07:06:41.596071945 +0200
+@@ -33,6 +33,10 @@
#endif
#include "machmode.h"
@@ -453,7 +453,7 @@
/* An expanded form of the represented number. */
/* Enumerate the special cases of numbers that we encounter. */
-@@ -486,4 +490,9 @@
+@@ -489,4 +493,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);
@@ -465,8 +465,8 @@
#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
+--- gcc.fsf.master.orig/gcc/vec.h 2009-07-20 07:03:59.861072460 +0200
++++ gcc.fsf.master/gcc/vec.h 2009-07-20 07:06:41.596071945 +0200
@@ -21,6 +21,10 @@
#ifndef GCC_VEC_H
#define GCC_VEC_H
@@ -487,3 +487,50 @@
+#endif /* __cplusplus */
+
#endif /* GCC_VEC_H */
+Index: gcc.fsf.master/gcc/diagnostic.h
+===================================================================
+--- gcc.fsf.master.orig/gcc/diagnostic.h 2009-07-20 07:03:59.841073131 +0200
++++ gcc.fsf.master/gcc/diagnostic.h 2009-07-20 07:06:41.596071945 +0200
+@@ -25,6 +25,10 @@
+ #include "pretty-print.h"
+ #include "options.h"
+
++#ifdef __cplusplus
++extern "C" {
++#endif /* __cplusplus */
++
+ /* Constants used to discriminate diagnostics. */
+ typedef enum
+ {
+@@ -239,4 +243,8 @@
+ extern void print_gimple_expr (FILE *, gimple, int, int);
+ extern void dump_gimple_stmt (pretty_printer *, gimple, int, int);
+
++#ifdef __cplusplus
++}
++#endif /* __cplusplus */
++
+ #endif /* ! GCC_DIAGNOSTIC_H */
+Index: gcc.fsf.master/gcc/except.h
+===================================================================
+--- gcc.fsf.master.orig/gcc/except.h 2009-07-20 07:03:59.793103415 +0200
++++ gcc.fsf.master/gcc/except.h 2009-07-20 07:06:41.596071945 +0200
+@@ -22,6 +22,10 @@
+ #include "sbitmap.h"
+ #include "vecprim.h"
+
++#ifdef __cplusplus
++extern "C" {
++#endif /* __cplusplus */
++
+ struct function;
+
+ /* The type of an exception region. */
+@@ -277,3 +281,7 @@
+ extern bitmap must_not_throw_labels (void);
+ extern struct eh_region_d *redirect_eh_edge_to_label (struct edge_def *, tree, bool, bool, int);
+ extern int get_next_region_sharing_label (int);
++
++#ifdef __cplusplus
++}
++#endif /* __cplusplus */
More information about the llvm-commits
mailing list