OSDN Git Service

PR driver/35665
authordanglin <danglin@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 9 Apr 2008 00:11:58 +0000 (00:11 +0000)
committerdanglin <danglin@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 9 Apr 2008 00:11:58 +0000 (00:11 +0000)
* collect2.c (write_c_file): Don't wrap in "#ifdef __cplusplus".

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@134116 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/ChangeLog
gcc/collect2.c

index 4118e9d..e90b2db 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.
 2008-04-09  Richard Guenther  <rguenther@suse.de>
 
        * tree-cfg.c (verify_stmt): Print complete bogus stmt.
index bba108d..af8bc79 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)
 {
 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);
 #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
 }
 
 #ifdef COLLECT_EXPORT_LIST