Commit e0941605 by John David Anglin Committed by John David Anglin

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
parent 2f9ea521
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.
......
......@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment