diff options
author | jason <jason@138bc75d-0d04-0410-961f-82ee72b054a4> | 2016-09-15 19:48:18 +0000 |
---|---|---|
committer | jason <jason@138bc75d-0d04-0410-961f-82ee72b054a4> | 2016-09-15 19:48:18 +0000 |
commit | cc4b5c5809209ac227fc24c2f1ce328ddca48dd4 (patch) | |
tree | e2717f3fcf7d80fefe329ca8c181c6aba476680b | |
parent | 834a2c295bbce223924e2788f281b8429d30b2f8 (diff) | |
download | gcc-cc4b5c5809209ac227fc24c2f1ce328ddca48dd4.tar.gz |
* c-common.c (check_cxx_fundamental_alignment_constraints): Check
DECL_EXTERNAL.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@240167 138bc75d-0d04-0410-961f-82ee72b054a4
-rw-r--r-- | gcc/c-family/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/c-family/c-common.c | 2 |
2 files changed, 6 insertions, 1 deletions
diff --git a/gcc/c-family/ChangeLog b/gcc/c-family/ChangeLog index 3258816e3ed..fa9b96140fd 100644 --- a/gcc/c-family/ChangeLog +++ b/gcc/c-family/ChangeLog @@ -1,3 +1,8 @@ +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 diff --git a/gcc/c-family/c-common.c b/gcc/c-family/c-common.c index 57b66712e3f..fc256867ec5 100644 --- a/gcc/c-family/c-common.c +++ b/gcc/c-family/c-common.c @@ -7870,7 +7870,7 @@ check_cxx_fundamental_alignment_constraints (tree node, 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; |