aboutsummaryrefslogtreecommitdiff
path: root/gcc/java/expr.c
diff options
context:
space:
mode:
authorAndrew Haley <aph@cygnus.com>1999-01-13 06:13:37 +0000
committerAndrew Haley <aph@gcc.gnu.org>1999-01-13 06:13:37 +0000
commit9684789222a5e8e34eac4565cd42f4e848a942fc (patch)
tree2c27d075b4014382a25b9f3db1ff1efc6de4ed40 /gcc/java/expr.c
parentba179f9f6f3c593721837c6c24cc39296a6eb92d (diff)
downloadgcc-9684789222a5e8e34eac4565cd42f4e848a942fc.zip
gcc-9684789222a5e8e34eac4565cd42f4e848a942fc.tar.gz
gcc-9684789222a5e8e34eac4565cd42f4e848a942fc.tar.bz2
expr.c (generate_name): Name prefix changed to avoid clashes with assembler temp labels.
1999-01-13 Andrew Haley <aph@cygnus.com> * expr.c (generate_name): Name prefix changed to avoid clashes with assembler temp labels. * parse.y (patch_synchronized_statement): Set TREE_SIDE_EFFECTS on MODIFY_EXPR. Without this, code for the assignement may not be generated at all and the synchronized statement will read an uninitialized variable. From-SVN: r24649
Diffstat (limited to 'gcc/java/expr.c')
-rw-r--r--gcc/java/expr.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/java/expr.c b/gcc/java/expr.c
index 136415b..623eb90 100644
--- a/gcc/java/expr.c
+++ b/gcc/java/expr.c
@@ -1186,7 +1186,7 @@ generate_name ()
{
static int l_number = 0;
char buff [20];
- sprintf (buff, "$L%d", l_number++);
+ sprintf (buff, "$LJv%d", l_number++);
return get_identifier (buff);
}