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
This commit is contained in:
parent
a8c0703767
commit
b772a56562
5 changed files with 26 additions and 3 deletions
|
@ -1,3 +1,9 @@
|
|||
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;
|
||||
}
|
||||
|
|
|
@ -1,3 +1,9 @@
|
|||
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-*-*.
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/* { 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" } } */
|
||||
|
|
9
gcc/testsuite/c-c++-common/vector-subscript-8.c
Normal file
9
gcc/testsuite/c-c++-common/vector-subscript-8.c
Normal file
|
@ -0,0 +1,9 @@
|
|||
/* { dg-do compile } */
|
||||
|
||||
typedef int V __attribute__((vector_size(4)));
|
||||
|
||||
void
|
||||
foo(void)
|
||||
{
|
||||
(V){ 0 }[0] = 0;
|
||||
}
|
Loading…
Add table
Reference in a new issue