From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 0C7AC3858D1E; Sat, 31 Dec 2022 18:24:13 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 0C7AC3858D1E DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1672511054; bh=r0VQJjbpS9zw5U6EnakArmbWeGYJIoSSL0Duy8mhs0U=; h=From:To:Subject:Date:In-Reply-To:References:From; b=GUbN1Xajq8ookPnS1GjZgGM0fhFVH4mNnKgzZGkx2n0nQEnSyIXM4VMPhHxzv+urQ GoHYb8lWnpz0LFcxGJHi/r/Jc6Tkh+q/hVaFuXARXIPWuvEA1WfjTV3rAWDLNw4LEM sp5Cy55VaeAyPggsQGv3edq7p60J7dgGvM4H4pR0= From: "segher at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/105010] [12/13 regression] GCC 12 after 20220227 fails to build on powerpc64-freebsd with Error: invalid mfcr mask Date: Sat, 31 Dec 2022 18:24:13 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: target X-Bugzilla-Version: 12.0 X-Bugzilla-Keywords: build X-Bugzilla-Severity: normal X-Bugzilla-Who: segher at gcc dot gnu.org X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: segher at gcc dot gnu.org X-Bugzilla-Target-Milestone: 12.3 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: 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=3D105010 --- Comment #18 from Segher Boessenkool --- We have (since ten years or sp already) /* ISA 2.01 allowed FCFID to be done in 32-bit, previously it was 64-bit on= ly. Enable 32-bit fcfid's on any of the switches for newer ISA machines. */ #define TARGET_FCFID (TARGET_POWERPC64 \ || TARGET_PPC_GPOPT /* 970/power4 */ \ || TARGET_POPCNTB /* ISA 2.02 */ \ || TARGET_CMPB /* ISA 2.05 */ \ || TARGET_POPCNTD) /* ISA 2.06 */ I don't see how this can ever be enabled for 7450. But! We do not support 2.00 at all since quite a while (-mcpu=3Dpower4 does not mean 2.00, it means 2.02, i.e. POWER4+ actually), so this macro co= uld be a lot simpler. Could you please show the generated .s file? (Compile with -S instead of -= c).=