From e0941605286abce8ffc86d9bd3406cb3f80d9500 Mon Sep 17 00:00:00 2001 From: John David Anglin Date: Wed, 9 Apr 2008 00:11:58 +0000 Subject: 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/collect2.c | 2 -- 1 file changed, 2 deletions(-) (limited to 'gcc/collect2.c') diff --git a/gcc/collect2.c b/gcc/collect2.c index bba108d..af8bc79 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 -- cgit v1.1