* dwarf2asm.c (dw2_force_const_mem): Fix typo.
authorRichard Henderson <rth@redhat.com>
Fri, 9 Nov 2001 01:21:13 +0000 (17:21 -0800)
committerRichard Henderson <rth@gcc.gnu.org>
Fri, 9 Nov 2001 01:21:13 +0000 (17:21 -0800)
From-SVN: r46868

gcc/ChangeLog
gcc/dwarf2asm.c

index 974b21b67ab5d60e19daabaff7d05c729ed1f805..83e547b008b7eb9b20107e4e80c8abeba55f1d33 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 b51eb7e71f3f322f5acf2b0e68562051ef2a16f3..ad5ecc24367c05d2664499318741a325e22b7661 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);