From e0941605286abce8ffc86d9bd3406cb3f80d9500 Mon Sep 17 00:00:00 2001 From: John David Anglin Date: Wed, 9 Apr 2008 00:11:58 +0000 Subject: [PATCH] re PR driver/35665 (FAIL: gfortran.dg/include_2.f90 -O (test for excess error)) PR driver/35665 * collect2.c (write_c_file): Don't wrap in "#ifdef __cplusplus". From-SVN: r134116 --- gcc/ChangeLog | 5 +++++ gcc/collect2.c | 2 -- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 4118e9da0aa..e90b2db819e 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2008-04-08 John David Anglin + + PR driver/35665 + * collect2.c (write_c_file): Don't wrap in "#ifdef __cplusplus". + 2008-04-09 Richard Guenther * tree-cfg.c (verify_stmt): Print complete bogus stmt. diff --git a/gcc/collect2.c b/gcc/collect2.c index bba108d2749..af8bc799a38 100644 --- a/gcc/collect2.c +++ b/gcc/collect2.c @@ -2043,14 +2043,12 @@ write_c_file_glob (FILE *stream, const char *name ATTRIBUTE_UNUSED) static void write_c_file (FILE *stream, const char *name) { - fprintf (stream, "#ifdef __cplusplus\nextern \"C\" {\n#endif\n"); #ifndef LD_INIT_SWITCH if (! shared_obj) write_c_file_glob (stream, name); else #endif write_c_file_stat (stream, name); - fprintf (stream, "#ifdef __cplusplus\n}\n#endif\n"); } #ifdef COLLECT_EXPORT_LIST -- 2.30.2