OSDN Git Service

* gimplify.c (create_tmp_var_raw): Don't name otherwise-nameless
authorgeoffk <geoffk@138bc75d-0d04-0410-961f-82ee72b054a4>
Sat, 11 Sep 2004 00:25:00 +0000 (00:25 +0000)
committergeoffk <geoffk@138bc75d-0d04-0410-961f-82ee72b054a4>
Sat, 11 Sep 2004 00:25:00 +0000 (00:25 +0000)
temporary variables.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@87335 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/ChangeLog
gcc/gimplify.c

index 5c5fd67..f5aaba3 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 c657f6a..640e3b0 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;