2017-03-02 Richard Biener <rguenther@suse.de>
PR c/79756
* c-common.c (c_common_mark_addressable_vec): Look through
C_MAYBE_CONST_EXPR.
* gcc.dg/vector-1.c: New testcase.
From-SVN: r245838
+2017-03-02 Richard Biener <rguenther@suse.de>
+
+ PR c/79756
+ * c-common.c (c_common_mark_addressable_vec): Look through
+ C_MAYBE_CONST_EXPR.
+
2017-02-28 Martin Liska <mliska@suse.cz>
* c.opt: Replace space with tabular for options of <number>
void
c_common_mark_addressable_vec (tree t)
{
+ if (TREE_CODE (t) == C_MAYBE_CONST_EXPR)
+ t = C_MAYBE_CONST_EXPR_EXPR (t);
while (handled_component_p (t))
t = TREE_OPERAND (t, 0);
if (!VAR_P (t)
+2017-03-02 Richard Biener <rguenther@suse.de>
+
+ PR c/79756
+ * gcc.dg/vector-1.c: New testcase.
+
2017-03-02 Bin Cheng <bin.cheng@arm.com>
PR tree-optimization/66768
--- /dev/null
+/* { dg-do compile } */
+/* { dg-options "-std=gnu90" } */
+
+typedef int V __attribute__ ((vector_size(4)));
+void fn1 ()
+{
+ (V){(1,0)}[0] = 0;
+}