re PR tree-optimization/34618 (ICE with -fmudflap and vectorization)

PR tree-optimization/34618
	* tree-outof-ssa.c (create_temp): Copy over DECL_GIMPLE_REG_P
	flag from T.

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

From-SVN: r131336
This commit is contained in:
Jakub Jelinek 2008-01-05 13:06:54 +01:00 committed by Jakub Jelinek
parent f1bf33ce52
commit 58fcda212f
4 changed files with 26 additions and 1 deletions

View 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

View 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

View 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

View File

@ -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;
}