This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [RFC] PR27770 (alignment with -fsection-anchors and vectorization) fix


Dorit Nuzman wrote:
> Here's an attempt to address PR27770. In the testcase, when using
> -fsection-anchors, we compile the function 'bar' assuming natural alignment
> for global array 'f', and later, when compiling the function foo, the
> vectorizer increases the alignmnet of array 'f', which makes the code we
> generated for fucntion bar incorrect.

Thanks for the detailed analysis.  Given Richard's agreement, I think we
should go with your patch, so, patch approved.  Here's one minor comment:

+       && UNITS_PER_SIMD_WORD /* CHECKME */)

Remove the /* CHECKME */.  Or, if it still needs checking, check. :-)

Thanks,

-- 
Mark Mitchell
CodeSourcery
mark@codesourcery.com
(650) 331-3385 x713


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]