This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH] Fix PR middle-end/28862, losing user alignment for vectors
- From: Paolo Bonzini <paolo dot bonzini at lu dot unisi dot ch>
- To: Roger Sayle <roger at eyesopen dot com>
- Cc: Andrew Pinski <pinskia at physics dot uc dot edu>, gcc-patches at gcc dot gnu dot org
- Date: Thu, 07 Sep 2006 18:16:50 +0200
- Subject: Re: [PATCH] Fix PR middle-end/28862, losing user alignment for vectors
- References: <Pine.LNX.4.44.0609070805300.28401-100000@www.eyesopen.com>
Roger Sayle wrote:
On Wed, 6 Sep 2006, Andrew Pinski wrote:
* stor-layout.c (relayout_decl): Don't zero the alignment if it
was set by the user.
This makes sense. OK for mainline, together with the new testcase
you propose. Re: Paolo's comments about GCC complaining about the
alignment being too high on some targets, that makes sense but I
suspect his suggested alignment of 4 is too small to test this
functionality on many targets where global variables already have
a significant alignment.
Oh, that was a global?
I read it as if it was a typedef. I guess then that I might
additionally suggest declaring "x" as the typedef.
Paolo