Message ID | CADzB+2kosgCYoX_Mj8mEyVXcAyub2spZUr4DuUzaD+FqOArEVg@mail.gmail.com |
---|---|
State | New |
Headers | show |
Hi Jason,
> OK, one more:
this works just fine on both sparc-sun-solaris2.12 and
i386-pc-solaris2.12.
Once Jonathan's patch to heed aligned_alloc's requirement on size being
a multiple of alignment is in, all is fine on Solaris.
Thanks.
Rainer
On 16 September 2016 at 09:04, Rainer Orth <ro@cebitec.uni-bielefeld.de> wrote: > Hi Jason, > >> OK, one more: > > this works just fine on both sparc-sun-solaris2.12 and > i386-pc-solaris2.12. > > Once Jonathan's patch to heed aligned_alloc's requirement on size being > a multiple of alignment is in, all is fine on Solaris. > > Thanks. > Rainer > It looks OK on arm now too, thanks. Christophe > -- > ----------------------------------------------------------------------------- > Rainer Orth, Center for Biotechnology, Bielefeld University
diff --git a/gcc/c-family/c-common.c b/gcc/c-family/c-common.c index 57b6671..fc25686 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;