summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authordannysmith <dannysmith@138bc75d-0d04-0410-961f-82ee72b054a4>2008-10-03 20:50:54 +0000
committerdannysmith <dannysmith@138bc75d-0d04-0410-961f-82ee72b054a4>2008-10-03 20:50:54 +0000
commitc707b0decb287bc139b0dbd04ee790110f8ef250 (patch)
tree9fdf99bba1976427e385a404f6f9a1028f054a52
parent83f43f3670b86f8f40506ced7c23b0bc9be3168d (diff)
downloadppe42-gcc-c707b0decb287bc139b0dbd04ee790110f8ef250.tar.gz
ppe42-gcc-c707b0decb287bc139b0dbd04ee790110f8ef250.zip
Add this missing ChangeLog entry:
* config/i386/winnt.c (i386_pe_strip_name_encoding_full): Add a null terminator to the stripped name. and revert it: * config/i386/winnt.c (i386_pe_strip_name_encoding_full): Revert previous change. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@140860 138bc75d-0d04-0410-961f-82ee72b054a4
-rw-r--r--gcc/ChangeLog10
-rw-r--r--gcc/config/i386/winnt.c15
2 files changed, 14 insertions, 11 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index b563a2c6608..3d0d9b1f839 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,8 @@
+2008-10-03 Danny Smith <dannysmith@users.sourceforge.net>
+
+ * config/i386/winnt.c (i386_pe_strip_name_encoding_full):
+ Revert previous change.
+
2008-10-03 Tom Tromey <tromey@redhat.com>
* stringpool.c (ggc_alloc_string): Terminate string.
@@ -19,6 +24,11 @@
(make_gcov_file_name): Likewise + convert the ':' DOS drive
separator to '~' to ensure clean filenames on Windows.
+2008-10-02 Danny Smith <dannysmith@users.sourceforge.net>
+
+ * config/i386/winnt.c (i386_pe_strip_name_encoding_full):
+ Add a null terminator to the stripped name.
+
2008-10-02 David Edelsohn <edelsohn@gnu.org>
* config/rs6000/rs6000.c (USE_FP_FOR_ARG_P): Revert
diff --git a/gcc/config/i386/winnt.c b/gcc/config/i386/winnt.c
index f4356c8bb94..7815be007a8 100644
--- a/gcc/config/i386/winnt.c
+++ b/gcc/config/i386/winnt.c
@@ -352,16 +352,8 @@ i386_pe_strip_name_encoding_full (const char *str)
/* Strip trailing "@n". */
p = strchr (name, '@');
if (p)
- {
- /* We need to replace the suffix with a null terminator.
- Do that before using ggc_alloc_string to allocate the
- const char *. */
- size_t len = p - name;
- char *newname = XALLOCAVEC (char, len + 1);
- memcpy (newname, name, len);
- newname [len] = 0;
- return ggc_alloc_string (newname, len);
- }
+ return ggc_alloc_string (name, p - name);
+
return name;
}
@@ -523,7 +515,8 @@ i386_pe_asm_output_aligned_decl_common (FILE *stream, tree decl,
i386_pe_maybe_record_exported_symbol (decl, name, 1);
- fprintf (stream, "\t.comm\t");
+ switch_to_section (bss_section);
+ fprintf (stream, "\t.balign %d\n\t.comm \t", ((int) align) / BITS_PER_UNIT);
assemble_name (stream, name);
fprintf (stream, ", " HOST_WIDE_INT_PRINT_DEC "\t" ASM_COMMENT_START
" " HOST_WIDE_INT_PRINT_DEC "\n",
OpenPOWER on IntegriCloud