aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorJohn David Anglin <dave.anglin@nrc-cnrc.gc.ca>2008-04-09 00:11:58 +0000
committerJohn David Anglin <danglin@gcc.gnu.org>2008-04-09 00:11:58 +0000
commite0941605286abce8ffc86d9bd3406cb3f80d9500 (patch)
tree9b31114398f1e751f13e016917015bacf34c679a /gcc
parent2f9ea521e98580853eb89d4091e261834b4d666a (diff)
downloadgcc-e0941605286abce8ffc86d9bd3406cb3f80d9500.zip
gcc-e0941605286abce8ffc86d9bd3406cb3f80d9500.tar.gz
gcc-e0941605286abce8ffc86d9bd3406cb3f80d9500.tar.bz2
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
Diffstat (limited to 'gcc')
-rw-r--r--gcc/ChangeLog5
-rw-r--r--gcc/collect2.c2
2 files changed, 5 insertions, 2 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 4118e9d..e90b2db 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -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.
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