gimplify.c (create_tmp_var_raw): Don't name otherwise-nameless temporary variables.
authorGeoffrey Keating <geoffk@apple.com>
Sat, 11 Sep 2004 00:25:00 +0000 (00:25 +0000)
committerGeoffrey Keating <geoffk@gcc.gnu.org>
Sat, 11 Sep 2004 00:25:00 +0000 (00:25 +0000)
* gimplify.c (create_tmp_var_raw): Don't name otherwise-nameless
temporary variables.

From-SVN: r87335

gcc/ChangeLog
gcc/gimplify.c

index 5c5fd675e4935d62e744778de7a7301d6a8eee82..f5aaba3e5ad11d03216c633b8f71942d5f28ef62 100644 (file)
@@ -33,6 +33,9 @@
 
 2004-09-10  Geoffrey Keating  <geoffk@apple.com>
 
+       * gimplify.c (create_tmp_var_raw): Don't name otherwise-nameless
+       temporary variables.
+
        * dbxout.c (dbxout_block): Update for
        current_function_func_begin_label a string.
        * dwarf2out.c (dwarf2out_begin_prologue): Likewise.
index c657f6af77a3f0c1f260f230f4221caa9562ce4a..640e3b04bf125a352bbb87a6dec863022fc287ec 100644 (file)
@@ -326,7 +326,8 @@ create_tmp_var_raw (tree type, const char *prefix)
   new_type = build_type_variant (type, 0, 0);
   TYPE_ATTRIBUTES (new_type) = TYPE_ATTRIBUTES (type);
 
-  tmp_var = build_decl (VAR_DECL, create_tmp_var_name (prefix), type);
+  tmp_var = build_decl (VAR_DECL, prefix ? create_tmp_var_name (prefix) : NULL,
+                       type);
 
   /* The variable was declared by the compiler.  */
   DECL_ARTIFICIAL (tmp_var) = 1;