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

            Bug ID: 112592
           Summary: FAIL: c-c++-common/pr111309-1.c  -std=gnu++14
                    (internal compiler error: in expand_fn_using_insn, at
                    internal-fn.cc:216)
           Product: gcc
           Version: 13.1.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: danglin at gcc dot gnu.org
                CC: jakub at gcc dot gnu.org
  Target Milestone: ---
              Host: hppa64-hp-hpux11.11
            Target: hppa64-hp-hpux11.11
             Build: hppa64-hp-hpux11.11

spawn -ignore SIGHUP /home/dave/gnu/gcc/objdir64/gcc/testsuite/g++/../../xg++
-B/home/dave/gnu/gcc/objdir64/gcc/testsuite/g++/../../
/home/dave/gnu/gcc/gcc/gcc/testsuite/c-c++-common/pr111309-1.c
-fdiagnostics-plain-output -nostdinc++
-I/home/dave/gnu/gcc/objdir64/hppa64-hp-hpux11.11/libstdc++-v3/include/hppa64-hp-hpux11.11
-I/home/dave/gnu/gcc/objdir64/hppa64-hp-hpux11.11/libstdc++-v3/include
-I/home/dave/gnu/gcc/gcc/libstdc++-v3/libsupc++
-I/home/dave/gnu/gcc/gcc/libstdc++-v3/include/backward
-I/home/dave/gnu/gcc/gcc/libstdc++-v3/testsuite/util -fmessage-length=0
-std=gnu++14 -O2
-L/home/dave/gnu/gcc/objdir64/hppa64-hp-hpux11.11/./libstdc++-v3/src/.libs
-B/home/dave/gnu/gcc/objdir64/hppa64-hp-hpux11.11/./libstdc++-v3/src/.libs
-L/home/dave/gnu/gcc/objdir64/hppa64-hp-hpux11.11/./libstdc++-v3/src/.libs
-L/home/dave/gnu/gcc/objdir64/hppa64-hp-hpux11.11/./libstdc++-v3/src/experimental/.libs
-lm -o ./pr111309-1.exe
during RTL pass: expand
/home/dave/gnu/gcc/gcc/gcc/testsuite/c-c++-common/pr111309-1.c: In function
'int clzI(__int128 unsigned)':
/home/dave/gnu/gcc/gcc/gcc/testsuite/c-c++-common/pr111309-1.c:69:27: internal
compiler error: in expand_fn_using_insn, at internal-fn.cc:216
libbacktrace could not find executable to open
Please submit a full bug report, with preprocessed source (by using
-freport-bug).
See <https://gcc.gnu.org/bugs/> for instructions.
compiler exited with status 1
FAIL: c-c++-common/pr111309-1.c  -std=gnu++14 (internal compiler error: in
expand_fn_using_insn, at internal-fn.cc:216)
FAIL: c-c++-common/pr111309-1.c  -std=gnu++14 (test for excess errors)

Breakpoint 1, expand_fn_using_insn (stmt=0x800003ffbff071b0,
    icode=CODE_FOR_nothing, ninputs=1, noutputs=1)
    at ../../gcc/gcc/internal-fn.cc:216
216       gcc_assert (icode != CODE_FOR_nothing);
(gdb) p icode
$1 = CODE_FOR_nothing
(gdb) bt
#0  expand_fn_using_insn (stmt=0x800003ffbff071b0, icode=CODE_FOR_nothing,
    ninputs=1, noutputs=1) at ../../gcc/gcc/internal-fn.cc:216
#1  0x4000000000c55dd4 in expand_direct_optab_fn (fn=<optimized out>,
    stmt=0x800003ffbff071b0, optab=clz_optab, nargs=1)
    at ../../gcc/gcc/internal-fn.cc:3817
#2  0x4000000000c55ee0 in expand_CLZ (fn=<optimized out>,
    stmt=<optimized out>) at ../../gcc/gcc/internal-fn.def:431
#3  0x4000000000c63918 in expand_internal_call (stmt=<optimized out>,
    fn=<optimized out>) at ../../gcc/gcc/internal-fn.cc:4920
#4  expand_internal_call (stmt=<optimized out>)
    at ../../gcc/gcc/internal-fn.cc:4928
#5  0x40000000009dacd8 in expand_call_stmt (stmt=0x800003ffbff071b0)
    at ../../gcc/gcc/cfgexpand.cc:2737
#6  expand_gimple_stmt_1 (stmt=0x800003ffbff071b0)
    at ../../gcc/gcc/cfgexpand.cc:3880
#7  expand_gimple_stmt (stmt=0x800003ffbff071b0)
    at ../../gcc/gcc/cfgexpand.cc:4044
#8  0x40000000009db63c in expand_gimple_tailcall (bb=0x800003ffbff071b0,
    stmt=0x69, can_fallthru=0x800003ffbfb00508)
    at ../../gcc/gcc/cfgexpand.cc:4090
#9  0x40000000009e3c98 in expand_gimple_basic_block (
    disable_tail_calls=<optimized out>, bb=<optimized out>)
    at ../../gcc/gcc/cfgexpand.cc:6074
---Type <return> to continue, or q <return> to quit---
#10 (anonymous namespace)::pass_expand::execute (this=<optimized out>,
    fun=<optimized out>) at ../../gcc/gcc/cfgexpand.cc:6835
#11 0x4000000000e4f508 in execute_one_pass (pass=0x800003ffbff071b0)
    at ../../gcc/gcc/passes.cc:2641
#12 0x4000000000e50088 in execute_pass_list_1 (pass=0x800003ffbff071b0)
    at ../../gcc/gcc/passes.cc:2750
#13 0x4000000000e50120 in execute_pass_list (fn=<optimized out>,
    pass=<optimized out>) at ../../gcc/gcc/passes.cc:2761
#14 0x4000000000a27844 in expand (this=0x800003ffbff071b0)
    at ../../gcc/gcc/context.h:48
#15 cgraph_node::expand (this=0x800003ffbff071b0)
    at ../../gcc/gcc/cgraphunit.cc:1794
#16 0x4000000000a29fe4 in expand_all_functions ()
    at ../../gcc/gcc/cgraphunit.cc:2022
#17 symbol_table::compile (this=0x45043) at ../../gcc/gcc/cgraphunit.cc:2398
#18 0x4000000000a2c9e4 in compile (this=0x1)
    at ../../gcc/gcc/cgraphunit.cc:2583
#19 symbol_table::finalize_compilation_unit (this=0x1)
    at ../../gcc/gcc/cgraphunit.cc:2583
#20 0x4000000000f92b78 in compile_file () at ../../gcc/gcc/toplev.cc:473
#21 0x0000000000000000 in ?? ()
Backtrace stopped: previous frame identical to this frame (corrupt stack?)
(gdb)

Reply via email to