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

            Bug ID: 119757
           Summary: RISC-V: ICE in operator[], at vec.h:910
           Product: gcc
           Version: 15.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c
          Assignee: unassigned at gcc dot gnu.org
          Reporter: negge at dgql dot org
  Target Milestone: ---

Created attachment 61086
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=61086&action=edit
base64.c

Building curl-8.13.0 with gcc-15.0.9999 gives an internal compiler error. I
have attached a reduced input file base64.c. Note, it compiles fine without
-O3.

# riscv64-unknown-linux-gnu-gcc --version
riscv64-unknown-linux-gnu-gcc (Gentoo 15.0.9999 p, commit
b83b3cd6a079211515a891c3c8bfd008a197f1d6) 15.0.1 20250411 (experimental)
93f6ea830348a5a733ecde863cddae80d84bdda0
Copyright (C) 2025 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

# riscv64-unknown-linux-gnu-gcc /tmp/base64.c -O3 -march=rv64gcv_zvl256b -c -o
/dev/null
during GIMPLE pass: vect
/tmp/bad2.c: In function ‘Curl_base64_encode’:
/tmp/bad2.c:76:10: internal compiler error: in operator[], at vec.h:910
   76 | CURLcode Curl_base64_encode(const char *inputbuff, size_t insize,
      |          ^~~~~~~~~~~~~~~~~~
0xaaaac6e2f2b3 diagnostic_context::diagnostic_impl(rich_location*,
diagnostic_metadata const*, diagnostic_option_id, char const*, std::__va_list*,
diagnostic_t)
        ???:0
0xaaaac6e46edf internal_error(char const*, ...)
        ???:0
0xaaaac4835167 fancy_abort(char const*, int, char const*)
        ???:0
0xaaaac540657f vect_analyze_slp(vec_info*, unsigned int, bool)
        ???:0
0xaaaac53d3617 vect_analyze_loop(loop*, gimple*, vec_info_shared*)
        ???:0
Please submit a full bug report, with preprocessed source (by using
-freport-bug).
Please include the complete backtrace with any bug report.
See <https://bugs.gentoo.org/> for instructions.

Reply via email to