https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83321
Markus Trippelsdorf <trippels at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Summary|[7/8 Regression] |[8 Regression] Conditional |Conditional jump or move |jump or move depends on |depends on uninitialised |uninitialised value in |value in ira.c/ira-color.c |ira.c/ira-color.c --- Comment #5 from Markus Trippelsdorf <trippels at gcc dot gnu.org> --- No sorry, gcc-7 is fine. Only happens on trunk. Here's a testcase: trippels@gcc67 ~ % cat test.i int foo(int i) { if (i) return 0; return 1; } trippels@gcc67 ~ % valgrind --track-origins=yes --trace-children=yes gcc -c -O2 test.i ==25182== Memcheck, a memory error detector ==25182== Copyright (C) 2002-2017, and GNU GPL'd, by Julian Seward et al. ==25182== Using Valgrind-3.13.0 and LibVEX; rerun with -h for copyright info ==25182== Command: /home/trippels/gcc_test/usr/local/bin/gcc -c -O2 test.i ==25182== ==25184== Memcheck, a memory error detector ==25184== Copyright (C) 2002-2017, and GNU GPL'd, by Julian Seward et al. ==25184== Using Valgrind-3.13.0 and LibVEX; rerun with -h for copyright info ==25184== Command: /home/trippels/gcc_test/usr/local/bin/../libexec/gcc/x86_64-pc-linux-gnu/8.0.0/cc1 -fpreprocessed test.i -quiet -dumpbase test.i -mtune=generic -march=x86-64 -auxbase test -O2 -o /home/trippels/tmp/ccOBBcep.s ==25184== ==25184== Conditional jump or move depends on uninitialised value(s) ==25184== at 0xBB45AD: update_costs_from_copies(ira_allocno*, bool, bool) (ira-color.c:1434) ...