From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id C15483858C53; Wed, 1 Mar 2023 05:35:02 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org C15483858C53 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1677648902; bh=9oN4cih8q+rLZb/1DHLvcBq0sWtD/zXUjOdbr9grkZE=; h=From:To:Subject:Date:From; b=tS+hcFuXZIOAj2AXzKScwkQB/KWaTVkJ4bIpwcOUUroZTP6iqi7Ql7TOA0s5spP+6 c2Z6dpMZOtY6eLOyU26nQ492cczIvKtldiLjZ4Jl/iRCoxjg5ZxgG3zM4+6yCWagpn FWxW68RJLxLEDIfuxvc9k9a/XaqZZcYhNwD8QJ0c= From: "linkw at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/108981] New: Raise errors for cpu type without powerpc64 support. Date: Wed, 01 Mar 2023 05:35:02 +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: 13.0 X-Bugzilla-Keywords: ice-on-valid-code X-Bugzilla-Severity: normal X-Bugzilla-Who: linkw 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_file_loc bug_status keywords bug_severity priority component assigned_to reporter cc dependson blocked target_milestone cf_gcctarget 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=3D108981 Bug ID: 108981 Summary: Raise errors for cpu type without powerpc64 support. Product: gcc Version: 13.0 URL: https://gcc.gnu.org/pipermail/gcc-patches/2023-January /609492.html Status: UNCONFIRMED Keywords: ice-on-valid-code Severity: normal Priority: P3 Component: target Assignee: unassigned at gcc dot gnu.org Reporter: linkw at gcc dot gnu.org CC: bergner at gcc dot gnu.org, linkw at gcc dot gnu.org, marxin at gcc dot gnu.org, segher at gcc dot gnu.org Depends on: 108240 Blocks: 108415 Target Milestone: --- Target: powerpc +++ This bug was initially created as a clone of Bug #108240 +++ Currently for the explicitly given option -m64 and the cpu type without powerpc64 support like cpu 401, we just go with -m64 and powerpc64 enabled = and there is no any warnings or errors. Without any explicit option -m64 or -m32 but it's set as 64bit env from TARGET_DEFAULT, for the cpu type without powerpc64 support like cpu 401, we will emit errors on Linux and warnings on aix and darwin. As Segher pointed out in PR108240, we've better to make them be handled consistently, that is to raise errors and prevent this non-sense usage, open this for further tracking. Referenced Bugs: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D108240 [Bug 108240] [13 Regression] Error message missing since r13-4894-gacc727cf02a144 (then make concealed ICE exposed) https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D108415 [Bug 108415] ICE in emit_library_call_value_1 at gcc/calls.cc:4181=