[Bug target/105010] [12/13 regression] GCC 12 after 20220227 fails to build on powerpc64-freebsd with Error: invalid mfcr mask
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105010 --- Comment #23 from Piotr Kubaj --- (In reply to Segher Boessenkool from comment #22) > (In reply to Piotr Kubaj from comment #21) > > I'm not sure whether it will help, but the issue only affects building > > 32-bit multilib libraries on powerpc64. That is, building a full 32-bit gcc > > for powerpc works just fine. > > I can reproduce it with a simple testcase always. It needs a > powerpc64-freebsd > compiler, built with all default options. With -m32 it still uses the 64-bit > processor, so equivalent to -mcpu=power4. If you manually use -mcpu=7450 all > works fine. Wouldn't it be possible to just set -mcpu=7450 in the Makefile for multilib?
[Bug target/105010] [12/13 regression] GCC 12 after 20220227 fails to build on powerpc64-freebsd with Error: invalid mfcr mask
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105010 Segher Boessenkool changed: What|Removed |Added Last reconfirmed||2023-01-05 Ever confirmed|0 |1 Status|UNCONFIRMED |NEW --- Comment #22 from Segher Boessenkool --- (In reply to Piotr Kubaj from comment #21) > I'm not sure whether it will help, but the issue only affects building > 32-bit multilib libraries on powerpc64. That is, building a full 32-bit gcc > for powerpc works just fine. I can reproduce it with a simple testcase always. It needs a powerpc64-freebsd compiler, built with all default options. With -m32 it still uses the 64-bit processor, so equivalent to -mcpu=power4. If you manually use -mcpu=7450 all works fine.
[Bug target/105010] [12/13 regression] GCC 12 after 20220227 fails to build on powerpc64-freebsd with Error: invalid mfcr mask
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105010 --- Comment #21 from Piotr Kubaj --- I'm not sure whether it will help, but the issue only affects building 32-bit multilib libraries on powerpc64. That is, building a full 32-bit gcc for powerpc works just fine.
[Bug target/105010] [12/13 regression] GCC 12 after 20220227 fails to build on powerpc64-freebsd with Error: invalid mfcr mask
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105010 --- Comment #20 from Segher Boessenkool --- (In reply to Segher Boessenkool from comment #18) > But! We do not support 2.00 at all since quite a while (-mcpu=power4 > does not mean 2.00, it means 2.02, i.e. POWER4+ actually), so this macro > could > be a lot simpler. It means 2.01, sorry. Nasty typo :-( So, although we get .machine "7450" in the generated assembler code, the compiler uses the default -mcpu=power4 otherwise. Some logic there is broken.
[Bug target/105010] [12/13 regression] GCC 12 after 20220227 fails to build on powerpc64-freebsd with Error: invalid mfcr mask
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105010 --- Comment #19 from Piotr Kubaj --- Created attachment 54172 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=54172=edit generated assembly Attached.
[Bug target/105010] [12/13 regression] GCC 12 after 20220227 fails to build on powerpc64-freebsd with Error: invalid mfcr mask
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105010 --- 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 only. 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=power4 does not mean 2.00, it means 2.02, i.e. POWER4+ actually), so this macro could be a lot simpler. Could you please show the generated .s file? (Compile with -S instead of -c).
[Bug target/105010] [12/13 regression] GCC 12 after 20220227 fails to build on powerpc64-freebsd with Error: invalid mfcr mask
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105010 --- Comment #17 from Piotr Kubaj --- This also affects GCC 10.4 and the snapshots of GCC 11.
[Bug target/105010] [12/13 regression] GCC 12 after 20220227 fails to build on powerpc64-freebsd with Error: invalid mfcr mask
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105010 Richard Biener changed: What|Removed |Added Target Milestone|12.2|12.3 --- Comment #16 from Richard Biener --- GCC 12.2 is being released, retargeting bugs to GCC 12.3.
[Bug target/105010] [12/13 regression] GCC 12 after 20220227 fails to build on powerpc64-freebsd with Error: invalid mfcr mask
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105010 Jakub Jelinek changed: What|Removed |Added Target Milestone|12.0|12.2 --- Comment #15 from Jakub Jelinek --- GCC 12.1 is being released, retargeting bugs to GCC 12.2.