https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103899
Andrew Pinski <pinskia at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Keywords| |missed-optimization, | |needs-bisection Host|x86_64-linux-gnu | Component|bootstrap |tree-optimization Build|x86_64-linux-gnu | Summary|make profiledbootstrap |[12 Regression] make |fails due to uninitialized |profiledbootstrap fails due |warning in expr.c |to uninitialized warning in | |expr.c Target Milestone|--- |12.0 --- Comment #4 from Andrew Pinski <pinskia at gcc dot gnu.org> --- Reduced testcase: int h; int l (); int *k (); void nn (); void expand_expr_real_1 (int *exp) { int m; int *context; m = 2; if (h || !exp) m = l (); if (exp) context = k (); if (exp && context && context[0] == 0) if (m == 0) nn (); } ----- CUT ---- Compile with "-O2 -W -Wall -Werror", there is no warning but once you add -fprofile-generate there is an uninitialized warning for context. There is a missing jump threading on the trunk which is causing the warning to show up.