re PR driver/35665 (FAIL: gfortran.dg/include_2.f90 -O (test for excess error))
authorJohn David Anglin <dave.anglin@nrc-cnrc.gc.ca>
Wed, 9 Apr 2008 00:11:58 +0000 (00:11 +0000)
committerJohn David Anglin <danglin@gcc.gnu.org>
Wed, 9 Apr 2008 00:11:58 +0000 (00:11 +0000)
PR driver/35665
* collect2.c (write_c_file): Don't wrap in "#ifdef __cplusplus".

From-SVN: r134116

gcc/ChangeLog
gcc/collect2.c

index 4118e9da0aa2473a7583a07038771b68134ecf4a..e90b2db819e20df5c065160a9e44e4e656d68abe 100644 (file)
@@ -1,3 +1,8 @@
+2008-04-08  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
+
+       PR driver/35665
+       * collect2.c (write_c_file): Don't wrap in "#ifdef __cplusplus".
+
 2008-04-09  Richard Guenther  <rguenther@suse.de>
 
        * tree-cfg.c (verify_stmt): Print complete bogus stmt.
index bba108d27491d895e72f4a23b57e7e726806c789..af8bc799a38b7a6e5d94406d69384609da22b85d 100644 (file)
@@ -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