https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105572

            Bug ID: 105572
           Summary: timeout with -march=bdver2
           Product: gcc
           Version: 12.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c
          Assignee: unassigned at gcc dot gnu.org
          Reporter: dcb314 at hotmail dot com
  Target Milestone: ---

Created attachment 52956
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=52956&action=edit
C source code

For the attached C code, adding -march=bdver2 causes the compiler to 
spend a lot of time.

$ time /home/dcb/gcc/results/bin/gcc  -w -c -g -O3 bug810.c

real    0m3.344s
user    0m3.133s
sys     0m0.089s
$ (ulimit -t 300; time /home/dcb/gcc/results/bin/gcc  -w -c -g -O3
-march=bdver2  bug810.c)
gcc: fatal error: Killed signal terminated program as
compilation terminated.

real    5m20.276s
user    5m8.801s
sys     0m0.880s
$  /home/dcb/gcc/results/bin/gcc  -v 2>&1 | fgrep exp
gcc version 13.0.0 20220511 (experimental) (5b2a24ebfc0b2b4c) 
$

Reply via email to