https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101455
Andrew Pinski <pinskia at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Ever confirmed|0 |1
Last reconfirmed| |2021-08-28
Status|UNCONFIRMED |NEW
--- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
Confirmed, that is we should get a warning at -O0 -W -Wall.
Note the gimple is different between -O2 and -O0.
-O0 gimple:
p_4 = __builtin_malloc (8);
_1 = COMPLEX_EXPR <x_5(D), i_6(D)>;
*p_4 = _1;