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
+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
{
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)));
return ((v4si){1, 2, 42, 0})[j];
}
-/* { dg-final { scan-tree-dump "return 42;" "ccp1" } } */
+/* { dg-final { scan-tree-dump "return 42;" "fre1" } } */
--- /dev/null
+/* { dg-do compile } */
+
+typedef int V __attribute__((vector_size(4)));
+
+void
+foo(void)
+{
+ (V){ 0 }[0] = 0;
+}