expr.c (generate_name): Use ASM_GENERATE_INTERNAL_LABEL to create internal labels.
authorAnthony Green <green@cygnus.com>
Tue, 27 Apr 1999 05:18:11 +0000 (05:18 +0000)
committerAnthony Green <green@gcc.gnu.org>
Tue, 27 Apr 1999 05:18:11 +0000 (05:18 +0000)
* expr.c (generate_name): Use ASM_GENERATE_INTERNAL_LABEL to
create internal labels.
(lookup_label): Ditto.

From-SVN: r26672

gcc/java/ChangeLog
gcc/java/expr.c

index 7376267b9cbcebc39003b93e141c214ca931434b..76128a27accd0948c5d782744064b2b9a2d34aeb 100644 (file)
@@ -1,3 +1,9 @@
+1999-04-29  Anthony Green  <green@cygnus.com>
+
+       * expr.c (generate_name): Use ASM_GENERATE_INTERNAL_LABEL to
+       create internal labels.
+       (lookup_label): Ditto.
+
 Sat Apr 24 16:50:19 1999  Alexandre Petit-Bianco  <apbianco@cygnus.com>
 
        * class.c (layout_class_method): Generate <clinit>'s rtl for
index bcecb2b6898e5c168b89b1d39a1fc482fd8bdede..d6e51a1cf2df7d613d03e7eda8780f3ce8f3b54e 100644 (file)
@@ -1227,8 +1227,8 @@ lookup_label (pc)
      int pc;
 {
   tree name;
-  char buf[20];
-  sprintf (buf, "LJpc=%d", pc);
+  char buf[32];
+  ASM_GENERATE_INTERNAL_LABEL(buf, "LJpc=", pc);
   name = get_identifier (buf);
   if (IDENTIFIER_LOCAL_VALUE (name))
     return IDENTIFIER_LOCAL_VALUE (name);
@@ -1249,8 +1249,9 @@ tree
 generate_name ()
 {
   static int l_number = 0;
-  char buff [20];
-  sprintf (buff, "$LJv%d", l_number++);
+  char buff [32];
+  ASM_GENERATE_INTERNAL_LABEL(buff, "LJv", l_number);
+  l_number++;
   return get_identifier (buff);
 }