* dwarf2asm.c (dw2_force_const_mem): Fix typo.
authorrth <rth@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 9 Nov 2001 01:21:13 +0000 (01:21 +0000)
committerrth <rth@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 9 Nov 2001 01:21:13 +0000 (01:21 +0000)
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@46868 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/ChangeLog
gcc/dwarf2asm.c

index 974b21b..83e547b 100644 (file)
@@ -1,3 +1,7 @@
+2001-11-08  Richard Henderson  <rth@redhat.com>
+
+       * dwarf2asm.c (dw2_force_const_mem): Fix typo.
+
 2001-11-08  Geoffrey Keating  <geoffk@redhat.com>
 
        * config.gcc: Rename stormy16 to xstormy16.
index b51eb7e..ad5ecc2 100644 (file)
@@ -782,7 +782,7 @@ dw2_force_const_mem (x)
 
       if (USE_LINKONCE_INDIRECT)
        {
-         char *ref_name = alloca (strlen (XSTR (x, 0) + sizeof "DW.ref."));
+         char *ref_name = alloca (strlen (XSTR (x, 0)) + sizeof "DW.ref.");
 
          sprintf (ref_name, "DW.ref.%s", XSTR (x, 0));
          id = get_identifier (ref_name);