https://gcc.gnu.org/bugzilla/show_bug.cgi?id=28614
Thomas Schwinge <tschwinge at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |NEW Last reconfirmed| |2024-10-04 CC| |ams at gcc dot gnu.org, | |tschwinge at gcc dot gnu.org Ever confirmed|0 |1 --- Comment #7 from Thomas Schwinge <tschwinge at gcc dot gnu.org> --- For what it's worth, some changes after 2024-09-20's commit r15-3743-g2828ec526eaf5612178b62d48bfd8443c7ecd674 appear to have regressed this for '--target=amdgcn-amdhsa' (tested '-march=gfx908', '-march=gfx1100'; with '--enable-checking=yes,extra,rtl') -- but for '-O1' only: PASS: gcc.c-torture/compile/20001226-1.c -O0 (test for excess errors) {+WARNING: gcc.c-torture/compile/20001226-1.c -O1 (test for excess errors) program timed out.+} [-PASS:-]{+FAIL:+} gcc.c-torture/compile/20001226-1.c -O1 (test for excess errors) PASS: gcc.c-torture/compile/20001226-1.c -O2 (test for excess errors) PASS: gcc.c-torture/compile/20001226-1.c -O3 -g (test for excess errors) PASS: gcc.c-torture/compile/20001226-1.c -Os (test for excess errors) We've got, for example: $ \time [...] -O0 [...] 10.69user 0.45system 0:11.14elapsed 99%CPU (0avgtext+0avgdata 361912maxresident)k 0inputs+18200outputs (0major+123361minor)pagefaults 0swaps $ \time [...] -O1 [...] [manually terminated after 19.75 h 100 % CPU usage] xgcc: fatal error: Terminated signal terminated program cc1 compilation terminated. Command exited with non-zero status 1 70873.77user 112.37system 19:43:29elapsed 99%CPU (0avgtext+0avgdata 1142652maxresident)k 0inputs+0outputs (0major+34722283minor)pagefaults 0swaps $ \time [...] -O2 [...] 41.28user 0.28system 0:41.57elapsed 99%CPU (0avgtext+0avgdata 210248maxresident)k 0inputs+2864outputs (0major+83144minor)pagefaults 0swaps I've not further analyzed where the time is being spent in 'cc1'. At 2024-09-20's commit r15-3743-g2828ec526eaf5612178b62d48bfd8443c7ecd674 we had, for example: $ \time [...] -O0 [...] 10.75user 0.47system 0:11.23elapsed 99%CPU (0avgtext+0avgdata 362048maxresident)k 0inputs+18200outputs (0major+123444minor)pagefaults 0swaps $ \time [...] -O1 [...] 10.27user 0.31system 0:10.58elapsed 99%CPU (0avgtext+0avgdata 194036maxresident)k 0inputs+3760outputs (0major+71795minor)pagefaults 0swaps $ \time [...] -O2 [...] 31.45user 0.29system 0:31.75elapsed 99%CPU (0avgtext+0avgdata 224988maxresident)k 0inputs+2912outputs (0major+77431minor)pagefaults 0swaps ..., so 10 s for '-O1'.