This is the mail archive of the gcc@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: Vectorizer/alignment


On Mon, Nov 11, 2013 at 12:39 PM, Jakub Jelinek <jakub@redhat.com> wrote:
> On Mon, Nov 11, 2013 at 12:29:29PM +0100, Richard Biener wrote:
>> On Fri, Nov 8, 2013 at 6:51 PM, Hendrik Greving
>> <hendrik.greving.intel@gmail.com> wrote:
>> > That didn't do it. What was the rationale w.r.t. to the relation
>> > between the vectorized sequenced and/or the alignment (I think these
>> > things are actually 2 separate things..) and the common block?!
>>
>> We cannot adjust the alignment of a common block as we don't know
>> which common block the linker will pick in the end.  We can (and do)
>> adjust the alignment of global variables though.  And C++ defaults
>> to -fno-common.
>>
>> In general when asking optimization questions it helps to provide
>> a testcase that can be compiled - otherwise you just provoke
>> random guesses (like mine) ;)
>
> Well, we had the discussion about turning -fno-common by default for C as
> well, I think it wouldn't hurt and let people use -fcommon if they need it.

Yeah, so ... shall we just do it?  Maybe just for a selected set of
targets (based on OS?)?

Richard.

>         Jakub


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