aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeffrey A Law <law@cygnus.com>2000-11-22 13:40:53 +0000
committerJeff Law <law@gcc.gnu.org>2000-11-22 06:40:53 -0700
commit67d6f2fc4a7d041676b245b918142d78753b9b79 (patch)
tree8f72ca9a97bd4ec0ac51a4b849e0340b1d4eec95
parentd9ddcc6a21878be3d5ac13eca6f98cb70615487b (diff)
downloadgcc-67d6f2fc4a7d041676b245b918142d78753b9b79.zip
gcc-67d6f2fc4a7d041676b245b918142d78753b9b79.tar.gz
gcc-67d6f2fc4a7d041676b245b918142d78753b9b79.tar.bz2
pa.c (hppa_encode_label): Account for addition of encoding character when...
* pa.c (hppa_encode_label): Account for addition of encoding character when allocating persistent space for the new label name. From-SVN: r37654
-rw-r--r--gcc/ChangeLog6
-rw-r--r--gcc/config/pa/pa.c5
2 files changed, 11 insertions, 0 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 4100db5..1f7a785 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,9 @@
+Wed Nov 22 06:40:56 2000 Jeffrey A Law (law@cygnus.com)
+
+ * pa.c (hppa_encode_label): Account for addition of encoding
+ character when allocating persistent space for the new label
+ name.
+
2000-11-22 Zack Weinberg <zack@wolery.stanford.edu>
* Makefile.in, config.gcc, configure.in: Expunge remaining
diff --git a/gcc/config/pa/pa.c b/gcc/config/pa/pa.c
index 540f8a7..c7f9209 100644
--- a/gcc/config/pa/pa.c
+++ b/gcc/config/pa/pa.c
@@ -5954,6 +5954,11 @@ hppa_encode_label (sym)
strcpy (newstr + 1, str);
*newstr = '@';
+ /* Prepending '@' increases the length of the string. That's important
+ to note since we're going to allocate persistent storage for the
+ new string. */
+ len++;
+
XSTR (sym,0) = ggc_alloc_string (newstr, len);
}