OSDN Git Service

PR tree-optimization/34618
authorjakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4>
Sat, 5 Jan 2008 12:06:54 +0000 (12:06 +0000)
committerjakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4>
Sat, 5 Jan 2008 12:06:54 +0000 (12:06 +0000)
* tree-outof-ssa.c (create_temp): Copy over DECL_GIMPLE_REG_P
flag from T.

* testsuite/libmudflap.c/pass62-frag.c: New test.

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

gcc/ChangeLog
gcc/tree-outof-ssa.c
libmudflap/ChangeLog
libmudflap/testsuite/libmudflap.c/pass62-frag.c [new file with mode: 0644]

index f750a85..49d0a96 100644 (file)
@@ -1,3 +1,9 @@
+2008-01-05  Jakub Jelinek  <jakub@redhat.com>
+
+       PR tree-optimization/34618
+       * tree-outof-ssa.c (create_temp): Copy over DECL_GIMPLE_REG_P
+       flag from T.
+
 2008-01-05  Uros Bizjak  <ubizjak@gmail.com>
 
        PR target/34673
index fd22d32..b2816a0 100644 (file)
@@ -1,5 +1,5 @@
 /* Convert a program in SSA form into Normal form.
-   Copyright (C) 2004, 2005, 2006, 2007 Free Software Foundation, Inc.
+   Copyright (C) 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
    Contributed by Andrew Macleod <amacleod@redhat.com>
 
 This file is part of GCC.
@@ -119,6 +119,7 @@ create_temp (tree t)
     }
   DECL_ARTIFICIAL (tmp) = DECL_ARTIFICIAL (t);
   DECL_IGNORED_P (tmp) = DECL_IGNORED_P (t);
+  DECL_GIMPLE_REG_P (tmp) = DECL_GIMPLE_REG_P (t);
   add_referenced_var (tmp);
 
   /* add_referenced_var will create the annotation and set up some
index 1c7313a..57f20a2 100644 (file)
@@ -1,3 +1,8 @@
+2008-01-05  Jakub Jelinek  <jakub@redhat.com>
+
+       PR tree-optimization/34618
+       * testsuite/libmudflap.c/pass62-frag.c: New test.
+
 2008-01-03  Jakub Jelinek  <jakub@redhat.com>
 
        PR c++/34619
diff --git a/libmudflap/testsuite/libmudflap.c/pass62-frag.c b/libmudflap/testsuite/libmudflap.c/pass62-frag.c
new file mode 100644 (file)
index 0000000..8e64b2b
--- /dev/null
@@ -0,0 +1,13 @@
+/* PR tree-optimization/34618 */
+/* { dg-do compile } */
+/* { dg-options "-O3 -fmudflap" } */
+
+int a[16];
+
+void
+foo ()
+{
+  int i;
+  for (i = 0; i < 16; i++)
+    a[i] = i;
+}