+2016-08-07 Jakub Jelinek <jakub@redhat.com>
+
+ PR c/72816
+ * stor-layout.c (layout_decl): Fix up formatting.
+ (relayout_decl): Allow DECL to be FIELD_DECL.
+
2016-08-07 Alan Modra <amodra@gmail.com>
* config/rs6000/rs6000.md (fix_trunc<mode>si2): Fix mode of reg.
return;
gcc_assert (code == VAR_DECL || code == PARM_DECL || code == RESULT_DECL
- || code == TYPE_DECL ||code == FIELD_DECL);
+ || code == TYPE_DECL || code == FIELD_DECL);
rtl = DECL_RTL_IF_SET (decl);
}
}
-/* Given a VAR_DECL, PARM_DECL or RESULT_DECL, clears the results of
- a previous call to layout_decl and calls it again. */
+/* Given a VAR_DECL, PARM_DECL, RESULT_DECL, or FIELD_DECL, clears the
+ results of a previous call to layout_decl and calls it again. */
void
relayout_decl (tree decl)
DECL_MODE (decl) = VOIDmode;
if (!DECL_USER_ALIGN (decl))
SET_DECL_ALIGN (decl, 0);
- SET_DECL_RTL (decl, 0);
+ if (DECL_RTL_SET_P (decl))
+ SET_DECL_RTL (decl, 0);
layout_decl (decl, 0);
}
+2016-08-07 Jakub Jelinek <jakub@redhat.com>
+
+ PR c/72816
+ * gcc.dg/pr72816.c: New test.
+
2016-08-06 Jonathan Wakely <jwakely@redhat.com>
* g++.dg/conversion/pr16333.C: Adjust dg-error regexp.