https://gcc.gnu.org/bugzilla/show_bug.cgi?id=77698
Pat Haugen <pthaugen at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |REOPENED Resolution|FIXED |--- --- Comment #5 from Pat Haugen <pthaugen at gcc dot gnu.org> --- It's still not fixed in current trunk. After unrolling maybe_hot_bb_p() returns false (via maybe_hot_count_p()), which prevents aligning the label in final.c:compute_alignments(). Here's the tail section of debug session and partial backtrace to show. maybe_hot_count_p (fun=0x7ffff59f0000, count=...) at /home/pthaugen/src/gcc/trunk_work/gcc/gcc/predict.c:185 185 return (count.to_gcov_type () >= get_hot_bb_threshold ()); (gdb) p count.to_gcov_type () $3 = 250000 (gdb) p get_hot_bb_threshold () $4 = 1000000 (gdb) bt #0 maybe_hot_count_p (fun=0x7ffff59f0000, count=...) at /home/pthaugen/src/gcc/trunk_work/gcc/gcc/predict.c:185 #1 0x0000000010d8fdb0 in maybe_hot_bb_p (fun=0x7ffff59f0000, bb=0x7ffff59801a0) at /home/pthaugen/src/gcc/trunk_work/gcc/gcc/predict.c:195 #2 0x0000000010d9045c in optimize_bb_for_size_p (bb=0x7ffff59801a0) at /home/pthaugen/src/gcc/trunk_work/gcc/gcc/predict.c:301 #3 0x00000000108c7234 in compute_alignments () at /home/pthaugen/src/gcc/trunk_work/gcc/gcc/final.c:674 #4 0x00000000108c7d3c in (anonymous namespace)::pass_compute_alignments::execute (this=0x12886200) at /home/pthaugen/src/gcc/trunk_work/gcc/gcc/final.c:823