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.