Options of fixing biggest alignment in PR target/38736
Ian Lance Taylor
iant@google.com
Thu Jan 8 18:16:00 GMT 2009
"H.J. Lu" <hjl.tools@gmail.com> writes:
>> Given that __attribute__ ((aligned (max))) may change, I don't
>> think it is very useful. A portable generic memory allocator should
>> take an additional argument for alignment.
>>
>
> If we really want the maximum useful alignment for the target machine
> we are compiling for, I would prefer __attribute__ ((aligned (best)))
> and document that it may be changed by -mXXX.
I don't care what the name is.
It's hard to pass an alignment parameter to the memory allocator when
using the C++ new operator.
Ian
More information about the Gcc
mailing list