From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 432093858CD1; Mon, 11 Mar 2024 23:04:36 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 432093858CD1 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1710198276; bh=C2lbRJkFN/bTJ+GsQ9orS2gAPazlIfODSOOhys+AkVs=; h=From:To:Subject:Date:From; b=MgBij2qNwIjnni4iWwqufSfyC/RY2ClwPBtLBc4TFHP11cN6T+22WNY8Yj5bVpN8S gE9wNamtEiAkZJbKfuyTXf5c5t59THrNBVtCr2sWfINlyVqGKkfmo8QEkwim4B+F7R n35gw0T9yc29eWHQ5u3vbtkWTPtqlKznK313eRhs= From: "patrick at rivosinc dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug c/114314] New: [14 Regression] ICE: in common_handle_option, at opts.cc:3356 with -fno-multiflags Date: Mon, 11 Mar 2024 23:04:35 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c X-Bugzilla-Version: 14.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: patrick at rivosinc dot com X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter target_milestone Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 List-Id: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D114314 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 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.=