On Sun, 11 Oct 2026, 03:22 Andrea Pinski via Gcc, <[email protected]> wrote:

> What can we assume about the alignment about the default operator new
> (the one without alignment supplied)?  Is it the same as malloc or
> something different?
>

It's aligned to __DEFAULT_NEW_ALIGNMENT__ (or however that's spelled).


The reason why I am asking is right now a __builtin_assume_aligned is
> not removed while with malloc it is. (https://gcc.gnu.org/PR127674).
> Plus I assume we are losing some optimizations with respect to the
> vectorizer we might peel for alignment in some cases where we don't
> have to even try.
>
> Thanks,
> Andrea
>

Reply via email to