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
This commit is contained in:
John David Anglin 2008-04-09 00:11:58 +00:00 committed by John David Anglin
parent 2f9ea521e9
commit e094160528
2 changed files with 5 additions and 2 deletions

View 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.

View 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