public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c/114314] New: [14 Regression] ICE: in common_handle_option, at opts.cc:3356 with -fno-multiflags
@ 2024-03-11 23:04 patrick at rivosinc dot com
  2024-03-11 23:13 ` [Bug driver/114314] " pinskia at gcc dot gnu.org
                   ` (5 more replies)
  0 siblings, 6 replies; 7+ messages in thread
From: patrick at rivosinc dot com @ 2024-03-11 23:04 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 114314
           Summary: [14 Regression] ICE: in common_handle_option, at
                    opts.cc:3356 with -fno-multiflags
           Product: gcc
           Version: 14.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c
          Assignee: unassigned at gcc dot gnu.org
          Reporter: patrick at rivosinc dot com
  Target Milestone: ---

Testcase:
int square(int num) {
    return num * num;
}

Backtrace:
> /scratch/tc-testing/tc-mar-11/build-rv64gcv/bin/riscv64-unknown-linux-gnu-gcc -fno-multiflags red.c -freport-bug
cc1: internal compiler error: in common_handle_option, at opts.cc:3356
0xbfd174 common_handle_option(gcc_options*, gcc_options*, cl_decoded_option
const*, unsigned int, int, unsigned int, cl_option_handlers const*,
diagnostic_context*, void (*)())
        ../../../gcc/gcc/opts.cc:3356
0x2c40a93 handle_option
        ../../../gcc/gcc/opts-common.cc:1297
0x2c40c0c read_cmdline_option(gcc_options*, gcc_options*, cl_decoded_option*,
unsigned int, unsigned int, cl_option_handlers const*, diagnostic_context*)
        ../../../gcc/gcc/opts-common.cc:1627
0x11f126c read_cmdline_options
        ../../../gcc/gcc/opts-global.cc:242
0x11f126c decode_options(gcc_options*, gcc_options*, cl_decoded_option*,
unsigned int, unsigned int, diagnostic_context*, void (*)())
        ../../../gcc/gcc/opts-global.cc:324
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.

Godbolt: https://godbolt.org/z/e3qevc464

I'm not sure what component parses the args, so I'm choosing the c frontend
since it's the earliest component I know.

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2024-03-12  4:02 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-03-11 23:04 [Bug c/114314] New: [14 Regression] ICE: in common_handle_option, at opts.cc:3356 with -fno-multiflags patrick at rivosinc dot com
2024-03-11 23:13 ` [Bug driver/114314] " pinskia at gcc dot gnu.org
2024-03-12  0:38 ` pinskia at gcc dot gnu.org
2024-03-12  0:39 ` pinskia at gcc dot gnu.org
2024-03-12  4:00 ` cvs-commit at gcc dot gnu.org
2024-03-12  4:02 ` cvs-commit at gcc dot gnu.org
2024-03-12  4:02 ` pinskia at gcc dot gnu.org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).