mirror of
git://gcc.gnu.org/git/gcc.git
synced 2025-03-20 17:40:46 +08:00
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:
parent
2f9ea521e9
commit
e094160528
@ -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.
|
||||
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user