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

            Bug ID: 115220
           Summary: [15] RISC-V: newlib targets ICE during sink pass
                    triggered in verify_ssa
           Product: gcc
           Version: 15.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: target
          Assignee: unassigned at gcc dot gnu.org
          Reporter: ewlu at rivosinc dot com
  Target Milestone: ---

Our gcc postcommit is encountering build failures for all newlib targets
https://github.com/patrick-rivos/gcc-postcommit-ci/issues/981 with the
potential commits which caused the ice shown here
https://github.com/gcc-mirror/gcc/compare/c71886f2ca2e46ce1449c7064d6f1b447d02fcba...6d6f324bda1ccb51cd43ff9d4d017eb71bb2d690

during GIMPLE pass: sink
/home/runner/work/gcc-postcommit-ci/gcc-postcommit-ci/riscv-gnu-toolchain/newlib/newlib/libc/include/stdlib.h:212:9:
internal compiler error: verify_ssa failed
0x16ce85e verify_ssa(bool, bool)
        ../../../gcc/gcc/tree-ssa.cc:1203
0x12ef125 execute_function_todo
        ../../../gcc/gcc/passes.cc:2096
0x12ef98e execute_todo
        ../../../gcc/gcc/passes.cc:2143
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.

Potentially related:
Also getting this error in the build logs. 
/home/runner/work/gcc-postcommit-ci/gcc-postcommit-ci/riscv-gnu-toolchain/newlib/newlib/libc/include/stdlib.h:212:9:
error: stmt with wrong VUSE
  212 | int     _setenv_r (struct _reent *, const char *__string, const char
*__value, int __overwrite);
      |         ^~~~~~~~~
# .MEM_109 = VDEF <.MEM_67>
*C_59 = 61;
expected .MEM_106

Reply via email to