aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKai Tietz <kai.tietz@onevision.com>2010-07-11 09:05:24 +0000
committerKai Tietz <ktietz@gcc.gnu.org>2010-07-11 11:05:24 +0200
commit23b488ada2fb1b984f25b020292378dc59058c0c (patch)
treeec2d624f3112c0865158e201d84a2688c141f00f
parent160ea5dd46efafaab4da6edfbe0ea2a519e691b0 (diff)
downloadgcc-23b488ada2fb1b984f25b020292378dc59058c0c.zip
gcc-23b488ada2fb1b984f25b020292378dc59058c0c.tar.gz
gcc-23b488ada2fb1b984f25b020292378dc59058c0c.tar.bz2
winnt.c (i386_pe_file_end): Quote symbol name in directive -export.
2010-07-11 Kai Tietz <kai.tietz@onevision.com> * config/i386/winnt.c (i386_pe_file_end): Quote symbol name in directive -export. From-SVN: r162055
-rw-r--r--gcc/ChangeLog5
-rw-r--r--gcc/config/i386/winnt.c2
2 files changed, 6 insertions, 1 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 364118c..f92b2a8 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,8 @@
+2010-07-11 Kai Tietz <kai.tietz@onevision.com>
+
+ * config/i386/winnt.c (i386_pe_file_end): Quote symbol name
+ in directive -export.
+
2010-07-10 Anatoly Sokolov <aesok@post.ru>
* reginfo.h (reg_classes_intersect_p): Change arguments type to
diff --git a/gcc/config/i386/winnt.c b/gcc/config/i386/winnt.c
index 549edd1..60a8b79 100644
--- a/gcc/config/i386/winnt.c
+++ b/gcc/config/i386/winnt.c
@@ -723,7 +723,7 @@ i386_pe_file_end (void)
drectve_section ();
for (q = export_head; q != NULL; q = q->next)
{
- fprintf (asm_out_file, "\t.ascii \" -export:%s%s\"\n",
+ fprintf (asm_out_file, "\t.ascii \" -export:\\\"%s\\\"%s\"\n",
default_strip_name_encoding (q->name),
(q->is_data ? ",data" : ""));
}