* c-common.c (check_cxx_fundamental_alignment_constraints): Check
DECL_EXTERNAL.
From-SVN: r240167
+2016-09-15 Jason Merrill <jason@redhat.com>
+
+ * c-common.c (check_cxx_fundamental_alignment_constraints): Check
+ DECL_EXTERNAL.
+
2016-09-14 Jason Merrill <jason@redhat.com>
* c-common.c (check_cxx_fundamental_alignment_constraints): Don't
if (VAR_P (node))
{
- if (TREE_STATIC (node))
+ if (TREE_STATIC (node) || DECL_EXTERNAL (node))
/* For file scope variables and static members, the target supports
alignments that are at most MAX_OFILE_ALIGNMENT. */
max_align = MAX_OFILE_ALIGNMENT;