aboutsummaryrefslogtreecommitdiff
path: root/gcc/java/expr.c
diff options
context:
space:
mode:
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);
}