This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Re: [PATCH, GCC 4.7] Backport fix for PR tree-optimization/53708
- From: Jakub Jelinek <jakub at redhat dot com>
- To: Peter Bergner <bergner at vnet dot ibm dot com>
- Cc: "gcc-patches at gcc dot gnu dot org" <gcc-patches at gcc dot gnu dot org>, Richard Biener <richard dot guenther at gmail dot com>, "libc-alpha at sourceware dot org" <libc-alpha at sourceware dot org>
- Date: Tue, 30 Oct 2012 19:55:35 +0100
- Subject: Re: [PATCH, GCC 4.7] Backport fix for PR tree-optimization/53708
- References: <1351616337.4778.7.camel@otta.rchland.ibm.com><1351622613.4778.21.camel@otta.rchland.ibm.com>
- Reply-to: Jakub Jelinek <jakub at redhat dot com>
On Tue, Oct 30, 2012 at 01:43:33PM -0500, Peter Bergner wrote:
> Commenting on Richard's question from the bugzilla:
>
> http://gcc.gnu.org/bugzilla/show_bug.cgi?id=53708#c10
>
> I suppose if attribute((__aligned__)) truly does just set a minimum alignment
> value (and the documentation seems to say that) and the compiler is free to
> arbitrarily increase it, then the GLIBC code to scan the init_array needs to
> be tolerant of null values in init_array.
>
> Does everyone agree with that assessment?
I think the right test is for user supplied section name,
this approach is so common that I think we have to support it.
E.g. Linux kernel, glibc, prelink all use this, gcc itself too (e.g.
crtstuff.c).
Jakub