Commit b772a565 by Richard Biener Committed by Richard Biener

re PR tree-optimization/77450 (ICE: in verify_ssa, at tree-ssa.c:1016 on very…

re PR tree-optimization/77450 (ICE: in verify_ssa, at tree-ssa.c:1016 on very simple code with vectors)

2016-09-06  Richard Biener  <rguenther@suse.de>

	PR c/77450
	c-family/
	* c-common.c (c_common_mark_addressable_vec): Handle
	COMPOUND_LITERAL_EXPR.

	* c-c++-common/vector-subscript-7.c: Adjust.
	* c-c++-common/vector-subscript-8.c: New testcase.

From-SVN: r240006
parent a8c07037
2016-09-06 Richard Biener <rguenther@suse.de>
PR c/77450
* c-common.c (c_common_mark_addressable_vec): Handle
COMPOUND_LITERAL_EXPR.
2016-09-05 Marek Polacek <polacek@redhat.com>
PR c/77423
......
......@@ -10918,7 +10918,9 @@ c_common_mark_addressable_vec (tree t)
{
while (handled_component_p (t))
t = TREE_OPERAND (t, 0);
if (!VAR_P (t) && TREE_CODE (t) != PARM_DECL)
if (!VAR_P (t)
&& TREE_CODE (t) != PARM_DECL
&& TREE_CODE (t) != COMPOUND_LITERAL_EXPR)
return;
TREE_ADDRESSABLE (t) = 1;
}
......
2016-09-06 Richard Biener <rguenther@suse.de>
PR c/77450
* c-c++-common/vector-subscript-7.c: Adjust.
* c-c++-common/vector-subscript-8.c: New testcase.
2016-09-06 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
* gcc.dg/Wno-frame-address.c: Skip for avr-*-*.
......
/* { dg-do compile } */
/* { dg-options "-O -fdump-tree-ccp1" } */
/* { dg-options "-O -fdump-tree-fre1" } */
typedef int v4si __attribute__ ((vector_size (16)));
......@@ -11,4 +11,4 @@ main (int argc, char** argv)
return ((v4si){1, 2, 42, 0})[j];
}
/* { dg-final { scan-tree-dump "return 42;" "ccp1" } } */
/* { dg-final { scan-tree-dump "return 42;" "fre1" } } */
/* { dg-do compile } */
typedef int V __attribute__((vector_size(4)));
void
foo(void)
{
(V){ 0 }[0] = 0;
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment