https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87313
pskocik at gmail dot com changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |pskocik at gmail dot com --- Comment #4 from pskocik at gmail dot com --- If (when?) this optimization is implemented, it would also be great if returning `type *restrict`, `struct somestruct { /*...*/ type *restrict p; /*...*/ }`, or an equivalent of these via a pointer (e.g., as in `void my_malloc(void *restrict*Result, size_t Sz);`) resulted in the same optimization being applied ( unless I'm mistaken in that `restrict` applied in these context implies the same (__attribute((malloc))-like) semantics).