summaryrefslogtreecommitdiff
path: root/gcc/collect2.c
diff options
context:
space:
mode:
authordanglin <danglin@138bc75d-0d04-0410-961f-82ee72b054a4>2008-04-09 00:11:58 +0000
committerdanglin <danglin@138bc75d-0d04-0410-961f-82ee72b054a4>2008-04-09 00:11:58 +0000
commitc4c94b802ff114ca7f04f5cbefac7c3bf1eb87d3 (patch)
tree9b31114398f1e751f13e016917015bacf34c679a /gcc/collect2.c
parent04ba083db591474a4055d7173cab5adabdcecfa7 (diff)
downloadgcc-c4c94b802ff114ca7f04f5cbefac7c3bf1eb87d3.tar.gz
PR driver/35665
* collect2.c (write_c_file): Don't wrap in "#ifdef __cplusplus". git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@134116 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/collect2.c')
-rw-r--r--gcc/collect2.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/gcc/collect2.c b/gcc/collect2.c
index bba108d2749..af8bc799a38 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