aboutsummaryrefslogtreecommitdiff
path: root/gcc/java/expr.c
diff options
context:
space:
mode:
authorAnthony Green <green@cygnus.com>1999-04-27 05:18:11 +0000
committerAnthony Green <green@gcc.gnu.org>1999-04-27 05:18:11 +0000
commitd2e0d40a134bf6080552ab8dc6fce9d33bbb70f1 (patch)
treed72d9b3c5698b146acde714c5b0eaa8ab3b5429f /gcc/java/expr.c
parent8d1ce18d08809a0abe1be61be3924af76d880268 (diff)
downloadgcc-d2e0d40a134bf6080552ab8dc6fce9d33bbb70f1.zip
gcc-d2e0d40a134bf6080552ab8dc6fce9d33bbb70f1.tar.gz
gcc-d2e0d40a134bf6080552ab8dc6fce9d33bbb70f1.tar.bz2
expr.c (generate_name): Use ASM_GENERATE_INTERNAL_LABEL to create internal labels.
* expr.c (generate_name): Use ASM_GENERATE_INTERNAL_LABEL to create internal labels. (lookup_label): Ditto. From-SVN: r26672
Diffstat (limited to 'gcc/java/expr.c')
-rw-r--r--gcc/java/expr.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/gcc/java/expr.c b/gcc/java/expr.c
index bcecb2b..d6e51a1 100644
--- a/gcc/java/expr.c
+++ b/gcc/java/expr.c
@@ -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);
}