From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 382FF3858D3C; Mon, 21 Aug 2023 18:57:04 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 382FF3858D3C DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1692644224; bh=SR2sFBlua+JL/UniW/SzmZmgGpo311iCAv3sva8XZwg=; h=From:To:Subject:Date:From; b=eSr66xMsH297J8qfuC0QcJ3/9JMwB1lDwMWmyOMSVNuIK97GLE0hoK6AWC1yjFsPC wDVhUDkf3oxXPO6Ij0ukcDdknVOms2t/75DehiJWOlw1eHfU0WPwJJZEIKssMm29Jb KdGOgro99roMfnEyJS9PQm6pUX7K7P3xiPFhfLrI= From: "burnus at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/111093] New: [nvptx] ICE (assert) when running "accel/nvptx-none/cc1 -E -dM < /dev/null" Date: Mon, 21 Aug 2023 18:57:03 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: target X-Bugzilla-Version: 14.0 X-Bugzilla-Keywords: ice-on-valid-code X-Bugzilla-Severity: normal X-Bugzilla-Who: burnus at gcc dot gnu.org 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 keywords bug_severity priority component assigned_to reporter cc 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=3D111093 Bug ID: 111093 Summary: [nvptx] ICE (assert) when running "accel/nvptx-none/cc1 -E -dM < /dev/null" Product: gcc Version: 14.0 Status: UNCONFIRMED Keywords: ice-on-valid-code Severity: normal Priority: P3 Component: target Assignee: unassigned at gcc dot gnu.org Reporter: burnus at gcc dot gnu.org CC: tschwinge at gcc dot gnu.org, vries at gcc dot gnu.org Target Milestone: --- Running "accel/nvptx-none/cc1 -E -dM < /dev/null" to determine which #defin= es are available fails with: cc1: internal compiler error: in nvptx_option_override, at config/nvptx/nvptx.cc:339 0x125e31a nvptx_option_override The reason is: /* Via nvptx 'OPTION_DEFAULT_SPECS', '-misa' always appears on the command line. */ gcc_checking_assert (OPTION_SET_P (ptx_isa_option)); Expected: An error message that '-misa=3D' is required, given that OPTION_DEFAULT_SPECS is not used when invoking the compiler (e.g. cc1) dire= ctly and not via the driver (e.g. gcc), especially as the drivers of the acceler= ator targets are not installed in an offloading configuration.=