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: [RFD] Extremely large alignment of read-only strings


On Fri, Aug 12, 2016 at 1:01 PM, Thorsten Glaser <tg@mirbsd.de> wrote:
> Dixi quod…
>
>>Alexander Monakov dixit:
>>
>>>First of all, I think option -malign-data=abi (new in GCC 5) addresses your
>>>need: it can be used to reduce the default (excessive) alignment to just the
>>>psABI-dictated value (you can play with this at https://gcc.godbolt.org even if
>>
>>Ah, nice!
>
> … except -malign-data=abi is, apparently, cris-only.
>

'-malign-data=TYPE'
     Control how GCC aligns variables.  Supported values for TYPE are
     'compat' uses increased alignment value compatible uses GCC 4.8 and
     earlier, 'abi' uses alignment value as specified by the psABI, and
     'cacheline' uses increased alignment value to match the cache line
     size.  'compat' is the default.

is supported by x86.

-- 
H.J.


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