[cfe-dev] aligned 'new'
Anton Yartsev
anton.yartsev at gmail.com
Tue Sep 20 11:46:18 PDT 2011
On 02.09.2011 22:26, John McCall wrote:
> That is how the feature is designed in ppu-lv2-gcc:
> giving -fstrict-align option to ppu-lv2-gcc does the following:
> This is a terrible choice of name for this command-line option. If I had to come up with a list of ten things that "strict-align" means, I don't think "make operator new take an alignment argument" would be on it at all. Since this feature has been implemented in precisely one previous vendor-specific frontend, I think it's worthwhile to establish a better precedent.
>
> I would suggest something like -foperator-new-alignment.
>
> John.
I support the proposal as this option has additional impact in
ppu-lv2-gcc - it enforces alignment on the stack. Clang seem to have no
problems with data alignment on the stack and the option affect only
allocation/deallocation functions.
--
Anton
More information about the cfe-dev
mailing list