mirror of git://gcc.gnu.org/git/gcc.git
re PR tree-optimization/50763 (ICE: verify_gimple failed: missing PHI def with -ftree-tail-merge)
2011-10-26 Tom de Vries <tom@codesourcery.com> PR tree-optimization/50763 * gcc.dg/pr50763-2.c: New test. From-SVN: r180519
This commit is contained in:
parent
9e1d5f491f
commit
6c137ca0a2
|
@ -1,3 +1,8 @@
|
||||||
|
2011-10-26 Tom de Vries <tom@codesourcery.com>
|
||||||
|
|
||||||
|
PR tree-optimization/50763
|
||||||
|
* gcc.dg/pr50763-2.c: New test.
|
||||||
|
|
||||||
2011-10-25 Joseph Myers <joseph@codesourcery.com>
|
2011-10-25 Joseph Myers <joseph@codesourcery.com>
|
||||||
|
|
||||||
* gcc.dg/format/ms_c90-printf-1.c, gcc.dg/format/ms_c90-scanf-1.c:
|
* gcc.dg/format/ms_c90-printf-1.c, gcc.dg/format/ms_c90-scanf-1.c:
|
||||||
|
|
|
@ -0,0 +1,46 @@
|
||||||
|
/* { dg-do compile } */
|
||||||
|
/* { dg-options "-O2" } */
|
||||||
|
|
||||||
|
typedef union tree_node *tree;
|
||||||
|
|
||||||
|
struct tree_base
|
||||||
|
{
|
||||||
|
int code;
|
||||||
|
};
|
||||||
|
|
||||||
|
struct tree_typed
|
||||||
|
{
|
||||||
|
struct tree_base base;
|
||||||
|
tree type;
|
||||||
|
};
|
||||||
|
|
||||||
|
struct tree_common
|
||||||
|
{
|
||||||
|
struct tree_typed typed;
|
||||||
|
};
|
||||||
|
|
||||||
|
struct tree_type_common
|
||||||
|
{
|
||||||
|
tree main_variant;
|
||||||
|
};
|
||||||
|
|
||||||
|
union tree_node
|
||||||
|
{
|
||||||
|
struct tree_base base;
|
||||||
|
struct tree_typed typed;
|
||||||
|
struct tree_type_common type_common;
|
||||||
|
};
|
||||||
|
|
||||||
|
int std_canonical_va_list_type (tree type)
|
||||||
|
{
|
||||||
|
if (type->base.code)
|
||||||
|
type = type->typed.type;
|
||||||
|
else
|
||||||
|
if (type->typed.type->base.code)
|
||||||
|
type = type->typed.type;
|
||||||
|
|
||||||
|
if (type->type_common.main_variant)
|
||||||
|
return 1;
|
||||||
|
|
||||||
|
return 0;
|
||||||
|
}
|
Loading…
Reference in New Issue