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

--- Comment #3 from Thomas Schwinge <tschwinge at gcc dot gnu.org> ---
(Possibly?) similarly now with GCC sources based on 2023-03-28 commit
b3c5933ee726004e4e47291d422dfe7ac3345062, with a bunch of local OMP changes on
top (but those shouldn't be touching the relevant area of code), standard
bootstrap build, I've observed an ICE as follows on our x86_64-pc-linux-gnu
testing system amd_ryzen3, in routine libgomp testing for '-m32':

    [...]
    spawn -ignore SIGHUP gcc -x c++
../source-gcc/libgomp/testsuite/libgomp.c++/../libgomp.c-c++-common/for-5.c
-m32 -foffload-options=amdgcn-amdhsa=-march=gfx906
-I../source-gcc/libgomp/testsuite/../../include
-I../source-gcc/libgomp/testsuite/.. -fmessage-length=0
-fno-diagnostics-show-caret -fdiagnostics-color=never -fopenmp -O2 -lstdc++ -lm
-o ./for-5.exe
    during RTL pass: reload
    In file included from
../source-gcc/libgomp/testsuite/libgomp.c++/../libgomp.c-c++-common/for-1.h:18,
                     from
../source-gcc/libgomp/testsuite/libgomp.c++/../libgomp.c-c++-common/for-5.c:50:
   
../source-gcc/libgomp/testsuite/libgomp.c++/../libgomp.c-c++-common/for-2.h: In
function 'f8_tpf_simd_guided32() [clone ._omp_fn.1]':
   
../source-gcc/libgomp/testsuite/libgomp.c++/../libgomp.c-c++-common/for-2.h:127:29:
internal compiler error: Segmentation fault
    0x16a1b7f crash_signal
            [...]/source-gcc/gcc/toplev.cc:314
    0x129c1eb base_pool_allocator<memory_block_pool>::remove(void*)
            [...]/source-gcc/gcc/alloc-pool.h:445
    0x129c1eb object_allocator<et_node>::remove(et_node*)
            [...]/source-gcc/gcc/alloc-pool.h:524
    0x129c1eb et_free_tree_force
            [...]/source-gcc/gcc/et-forest.cc:502
    0x1214868 free_dominance_info(function*, cdi_direction)
            [...]/source-gcc/gcc/dominance.cc:812
    0x1484b08 do_reload
            [...]/source-gcc/gcc/ira.cc:5955
    0x1484b08 execute
            [...]/source-gcc/gcc/ira.cc:6149
    Please submit a full bug report, with preprocessed source (by using
-freport-bug).
    Please include the complete backtrace with any bug report.
    See <https://gcc.gnu.org/bugs/> for instructions.
    compiler exited with status 1
    FAIL: libgomp.c++/../libgomp.c-c++-common/for-5.c (internal compiler error:
Segmentation fault)
    [...]


(In reply to Thomas Schwinge from comment #2)
> (In reply to Jakub Jelinek from comment #1)
> > If you can reproduce it with vanilla trunk, it is worth it, sure, but
> > without a reliable reproducer there isn't much to do.
> 
> I'll attempt to reproduce with clean sources, and Valgrind enabled.

Have not yet gotten to that.

Reply via email to