public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug bootstrap/105010] New: GCC 12 after 20220227 fails on powerpc64-freebsd with Error: invalid mfcr mask
@ 2022-03-22  2:50 pkubaj at anongoth dot pl
  2022-03-22  8:45 ` [Bug bootstrap/105010] GCC 12 after 20220227 fails to build " rguenth at gcc dot gnu.org
                   ` (24 more replies)
  0 siblings, 25 replies; 26+ messages in thread
From: pkubaj at anongoth dot pl @ 2022-03-22  2:50 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105010

            Bug ID: 105010
           Summary: GCC 12 after 20220227 fails on powerpc64-freebsd with
                    Error: invalid mfcr mask
           Product: gcc
           Version: 12.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: bootstrap
          Assignee: unassigned at gcc dot gnu.org
          Reporter: pkubaj at anongoth dot pl
  Target Milestone: ---

On FreeBSD 13.1 on powerpc64, 12-20220227 is the last snapshot that builds
correctly.
12-20220306 fail with:
/wrkdirs/usr/ports/lang/gcc12-devel/work/.build/./gcc/xgcc
-B/wrkdirs/usr/ports/lang/gcc12-devel/work/.build/./gcc/
-B/usr/local/powerpc64-portbld-freebsd13.1/bin/
-B/usr/local/powerpc64-portbld-freebsd13.1/lib/ -isystem
/usr/local/powerpc64-portbld-freebsd13.1/include -isystem
/usr/local/powerpc64-portbld-freebsd13.1/sys-include   -fno-checking -g -O2
-pipe -DLIBICONV_PLUG -fstack-protector-strong -fno-strict-aliasing -m32 -fPIC
-mstrict-align -msecure-plt -O2  -g -O2 -pipe  -DLIBICONV_PLUG
-fstack-protector-strong -fno-strict-aliasing  -DIN_GCC -fPIC   -W -Wall
-Wno-narrowing -Wwrite-strings -Wcast-qual -Wno-format -Wstrict-prototypes
-Wmissing-prototypes -Wold-style-definition  -isystem ./include  -fPIC -pthread
-mno-minimal-toc -g -DIN_LIBGCC2 -fbuilding-libgcc -fno-stack-protector  -fPIC
-pthread -mno-minimal-toc -I. -I. -I../../.././gcc
-I/wrkdirs/usr/ports/lang/gcc12-devel/work/gcc-12-20220320/libgcc
-I/wrkdirs/usr/ports/lang/gcc12-devel/work/gcc-12-20220320/libgcc/.
-I/wrkdirs/usr/ports/lang/gcc12-devel/work/gcc-12-20220320/libgcc/../gcc
-I/wrkdirs/usr/ports/lang/gcc12-devel/work/gcc-12-20220320/libgcc/../include 
-DHAVE_CC_TLS   -o _mulsc3.o -MT _mulsc3.o -MD -MP -MF _mulsc3.dep -DL_mulsc3
-c /wrkdirs/usr/ports/lang/gcc12-devel/work/gcc-12-20220320/libgcc/libgcc2.c
-fvisibility=hidden -DHIDE_EXPORTS
{standard input}: Assembler messages:
{standard input}:140: Error: invalid mfcr mask
{standard input}:147: Error: unrecognized opcode: `fcfid'
{standard input}:166: Error: invalid mfcr mask
{standard input}:175: Error: unrecognized opcode: `fcfid'
{standard input}:326: Error: invalid mfcr mask
{standard input}:337: Error: unrecognized opcode: `fcfid'
{standard input}:356: Error: invalid mfcr mask
{standard input}:365: Error: unrecognized opcode: `fcfid'

^ permalink raw reply	[flat|nested] 26+ messages in thread

* [Bug bootstrap/105010] GCC 12 after 20220227 fails to build on powerpc64-freebsd with Error: invalid mfcr mask
  2022-03-22  2:50 [Bug bootstrap/105010] New: GCC 12 after 20220227 fails on powerpc64-freebsd with Error: invalid mfcr mask pkubaj at anongoth dot pl
@ 2022-03-22  8:45 ` rguenth at gcc dot gnu.org
  2022-03-22  8:47 ` pkubaj at anongoth dot pl
                   ` (23 subsequent siblings)
  24 siblings, 0 replies; 26+ messages in thread
From: rguenth at gcc dot gnu.org @ 2022-03-22  8:45 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105010

Richard Biener <rguenth at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
               Host|                            |powerpc64-freebsd
             Target|                            |powerpc64-freebsd

--- Comment #1 from Richard Biener <rguenth at gcc dot gnu.org> ---
What assembler are you using?

^ permalink raw reply	[flat|nested] 26+ messages in thread

* [Bug bootstrap/105010] GCC 12 after 20220227 fails to build on powerpc64-freebsd with Error: invalid mfcr mask
  2022-03-22  2:50 [Bug bootstrap/105010] New: GCC 12 after 20220227 fails on powerpc64-freebsd with Error: invalid mfcr mask pkubaj at anongoth dot pl
  2022-03-22  8:45 ` [Bug bootstrap/105010] GCC 12 after 20220227 fails to build " rguenth at gcc dot gnu.org
@ 2022-03-22  8:47 ` pkubaj at anongoth dot pl
  2022-03-22 10:34 ` [Bug target/105010] [12 regression] " rguenth at gcc dot gnu.org
                   ` (22 subsequent siblings)
  24 siblings, 0 replies; 26+ messages in thread
From: pkubaj at anongoth dot pl @ 2022-03-22  8:47 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105010

--- Comment #2 from Piotr Kubaj <pkubaj at anongoth dot pl> ---
GNU assembler version 2.37 (powerpc64-portbld-freebsd13.1) using BFD version
(GNU Binutils) 2.37

^ permalink raw reply	[flat|nested] 26+ messages in thread

* [Bug target/105010] [12 regression] GCC 12 after 20220227 fails to build on powerpc64-freebsd with Error: invalid mfcr mask
  2022-03-22  2:50 [Bug bootstrap/105010] New: GCC 12 after 20220227 fails on powerpc64-freebsd with Error: invalid mfcr mask pkubaj at anongoth dot pl
  2022-03-22  8:45 ` [Bug bootstrap/105010] GCC 12 after 20220227 fails to build " rguenth at gcc dot gnu.org
  2022-03-22  8:47 ` pkubaj at anongoth dot pl
@ 2022-03-22 10:34 ` rguenth at gcc dot gnu.org
  2022-03-22 20:57 ` pkubaj at anongoth dot pl
                   ` (21 subsequent siblings)
  24 siblings, 0 replies; 26+ messages in thread
From: rguenth at gcc dot gnu.org @ 2022-03-22 10:34 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105010

Richard Biener <rguenth at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|---                         |12.0

^ permalink raw reply	[flat|nested] 26+ messages in thread

* [Bug target/105010] [12 regression] GCC 12 after 20220227 fails to build on powerpc64-freebsd with Error: invalid mfcr mask
  2022-03-22  2:50 [Bug bootstrap/105010] New: GCC 12 after 20220227 fails on powerpc64-freebsd with Error: invalid mfcr mask pkubaj at anongoth dot pl
                   ` (2 preceding siblings ...)
  2022-03-22 10:34 ` [Bug target/105010] [12 regression] " rguenth at gcc dot gnu.org
@ 2022-03-22 20:57 ` pkubaj at anongoth dot pl
  2022-03-22 22:50 ` segher at gcc dot gnu.org
                   ` (20 subsequent siblings)
  24 siblings, 0 replies; 26+ messages in thread
From: pkubaj at anongoth dot pl @ 2022-03-22 20:57 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105010

Piotr Kubaj <pkubaj at anongoth dot pl> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |segher at kernel dot crashing.org

--- Comment #3 from Piotr Kubaj <pkubaj at anongoth dot pl> ---
Current git bisect visualize --oneline:
93557e6dc39 (refs/bisect/bad) Update gcc de.po
77eccbf39ed rs6000: Improve .machine
0e5d9ae8e41 Update .po files
591d2130348 c++: Standard mangling abbreviations & modules
14dfbb53594 (HEAD) Fix 'libgomp.oacc-c-c++-common/kernels-decompose-1.c'
expected diagnostics
458ad38ce2b analyzer: reduce svalue depth limit from 13 to 12 [PR103521]
c3402486afa mkruntimeinc: skip _FILE

14dfbb53594 is still building but it looks like it will succeed. This would
mean that 77eccbf39ed is the culprit.

@segher
Could you look into it?

^ permalink raw reply	[flat|nested] 26+ messages in thread

* [Bug target/105010] [12 regression] GCC 12 after 20220227 fails to build on powerpc64-freebsd with Error: invalid mfcr mask
  2022-03-22  2:50 [Bug bootstrap/105010] New: GCC 12 after 20220227 fails on powerpc64-freebsd with Error: invalid mfcr mask pkubaj at anongoth dot pl
                   ` (3 preceding siblings ...)
  2022-03-22 20:57 ` pkubaj at anongoth dot pl
@ 2022-03-22 22:50 ` segher at gcc dot gnu.org
  2022-03-22 23:00 ` pkubaj at anongoth dot pl
                   ` (19 subsequent siblings)
  24 siblings, 0 replies; 26+ messages in thread
From: segher at gcc dot gnu.org @ 2022-03-22 22:50 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105010

--- Comment #4 from Segher Boessenkool <segher at gcc dot gnu.org> ---
Have you tried with something with

commit 80fcc4b6afee72443bef551064826b3b4b6785e6
Author: Segher Boessenkool <segher@kernel.crashing.org>
Date:   Fri Mar 11 21:15:18 2022 +0000

    rs6000: Do not use rs6000_cpu for .machine ppc and ppc64 (PR104829)

    Fixes: 77eccbf39ed5


?  And, what .machine do you get now?

^ permalink raw reply	[flat|nested] 26+ messages in thread

* [Bug target/105010] [12 regression] GCC 12 after 20220227 fails to build on powerpc64-freebsd with Error: invalid mfcr mask
  2022-03-22  2:50 [Bug bootstrap/105010] New: GCC 12 after 20220227 fails on powerpc64-freebsd with Error: invalid mfcr mask pkubaj at anongoth dot pl
                   ` (4 preceding siblings ...)
  2022-03-22 22:50 ` segher at gcc dot gnu.org
@ 2022-03-22 23:00 ` pkubaj at anongoth dot pl
  2022-03-23 11:34 ` pkubaj at anongoth dot pl
                   ` (18 subsequent siblings)
  24 siblings, 0 replies; 26+ messages in thread
From: pkubaj at anongoth dot pl @ 2022-03-22 23:00 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105010

--- Comment #5 from Piotr Kubaj <pkubaj at anongoth dot pl> ---
The command line output I pasted in the OP is actually from 12-20220320 (but
12-20220306 fails the same way). So I guess that fix did nothing for
powerpc64-freebsd.

Regarding .machine, I will check it tomorrow.

^ permalink raw reply	[flat|nested] 26+ messages in thread

* [Bug target/105010] [12 regression] GCC 12 after 20220227 fails to build on powerpc64-freebsd with Error: invalid mfcr mask
  2022-03-22  2:50 [Bug bootstrap/105010] New: GCC 12 after 20220227 fails on powerpc64-freebsd with Error: invalid mfcr mask pkubaj at anongoth dot pl
                   ` (5 preceding siblings ...)
  2022-03-22 23:00 ` pkubaj at anongoth dot pl
@ 2022-03-23 11:34 ` pkubaj at anongoth dot pl
  2022-03-23 12:41 ` segher at gcc dot gnu.org
                   ` (17 subsequent siblings)
  24 siblings, 0 replies; 26+ messages in thread
From: pkubaj at anongoth dot pl @ 2022-03-23 11:34 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105010

--- Comment #6 from Piotr Kubaj <pkubaj at anongoth dot pl> ---
OK, it's .machine "7450", which seems correct.

^ permalink raw reply	[flat|nested] 26+ messages in thread

* [Bug target/105010] [12 regression] GCC 12 after 20220227 fails to build on powerpc64-freebsd with Error: invalid mfcr mask
  2022-03-22  2:50 [Bug bootstrap/105010] New: GCC 12 after 20220227 fails on powerpc64-freebsd with Error: invalid mfcr mask pkubaj at anongoth dot pl
                   ` (6 preceding siblings ...)
  2022-03-23 11:34 ` pkubaj at anongoth dot pl
@ 2022-03-23 12:41 ` segher at gcc dot gnu.org
  2022-03-23 14:54 ` pkubaj at anongoth dot pl
                   ` (16 subsequent siblings)
  24 siblings, 0 replies; 26+ messages in thread
From: segher at gcc dot gnu.org @ 2022-03-23 12:41 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105010

--- Comment #7 from Segher Boessenkool <segher at gcc dot gnu.org> ---
Created attachment 52670
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=52670&action=edit
proposed patch

Does this help?  The 7450 (which is what freebsd64 defaults to) indeed does
not support these instructions, and it isn't clear to me why we generate them
at all anyway, but this patch makes us more conservative here still.

^ permalink raw reply	[flat|nested] 26+ messages in thread

* [Bug target/105010] [12 regression] GCC 12 after 20220227 fails to build on powerpc64-freebsd with Error: invalid mfcr mask
  2022-03-22  2:50 [Bug bootstrap/105010] New: GCC 12 after 20220227 fails on powerpc64-freebsd with Error: invalid mfcr mask pkubaj at anongoth dot pl
                   ` (7 preceding siblings ...)
  2022-03-23 12:41 ` segher at gcc dot gnu.org
@ 2022-03-23 14:54 ` pkubaj at anongoth dot pl
  2022-03-23 17:33 ` pkubaj at anongoth dot pl
                   ` (15 subsequent siblings)
  24 siblings, 0 replies; 26+ messages in thread
From: pkubaj at anongoth dot pl @ 2022-03-23 14:54 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105010

--- Comment #8 from Piotr Kubaj <pkubaj at anongoth dot pl> ---
Testing.

FYI, on 12-20220227, .machine power4 is used.

^ permalink raw reply	[flat|nested] 26+ messages in thread

* [Bug target/105010] [12 regression] GCC 12 after 20220227 fails to build on powerpc64-freebsd with Error: invalid mfcr mask
  2022-03-22  2:50 [Bug bootstrap/105010] New: GCC 12 after 20220227 fails on powerpc64-freebsd with Error: invalid mfcr mask pkubaj at anongoth dot pl
                   ` (8 preceding siblings ...)
  2022-03-23 14:54 ` pkubaj at anongoth dot pl
@ 2022-03-23 17:33 ` pkubaj at anongoth dot pl
  2022-03-23 18:56 ` segher at gcc dot gnu.org
                   ` (14 subsequent siblings)
  24 siblings, 0 replies; 26+ messages in thread
From: pkubaj at anongoth dot pl @ 2022-03-23 17:33 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105010

--- Comment #9 from Piotr Kubaj <pkubaj at anongoth dot pl> ---
Now libgcc fails to configure.
>From config.log:
configure:3789: checking for suffix of object files
configure:3811: /wrkdirs/usr/ports/lang/gcc12-devel/work/.build/./gcc/xgcc
-B/wrkdirs/usr/ports/lang/gcc12-devel/work/.build/./gcc/
-B/usr/local/powerpc64-portbld-freebsd13.1/bin/
-B/usr/local/powerpc64-portbld-freebsd13.1/lib/ -isystem
 /usr/local/powerpc64-portbld-freebsd13.1/include -isystem
/usr/local/powerpc64-portbld-freebsd13.1/sys-include -fno-checking  -m32 -fPIC
-mstrict-align -msecure-plt -c -g -O2 -pipe  -DLIBICONV_PLUG
-fstack-protector-strong -fno-strict-
aliasing   conftest.c >&5
{standard input}: Assembler messages:
{standard input}:2: Error: junk at end of line, first unrecognized character is
`,'

^ permalink raw reply	[flat|nested] 26+ messages in thread

* [Bug target/105010] [12 regression] GCC 12 after 20220227 fails to build on powerpc64-freebsd with Error: invalid mfcr mask
  2022-03-22  2:50 [Bug bootstrap/105010] New: GCC 12 after 20220227 fails on powerpc64-freebsd with Error: invalid mfcr mask pkubaj at anongoth dot pl
                   ` (9 preceding siblings ...)
  2022-03-23 17:33 ` pkubaj at anongoth dot pl
@ 2022-03-23 18:56 ` segher at gcc dot gnu.org
  2022-03-23 21:26 ` pkubaj at anongoth dot pl
                   ` (13 subsequent siblings)
  24 siblings, 0 replies; 26+ messages in thread
From: segher at gcc dot gnu.org @ 2022-03-23 18:56 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105010

Segher Boessenkool <segher at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
  Attachment #52670|0                           |1
        is obsolete|                            |
           Assignee|unassigned at gcc dot gnu.org      |segher at gcc dot gnu.org

--- Comment #10 from Segher Boessenkool <segher at gcc dot gnu.org> ---
Created attachment 52675
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=52675&action=edit
proposed patch v2

Bah.  Try this one :-)

^ permalink raw reply	[flat|nested] 26+ messages in thread

* [Bug target/105010] [12 regression] GCC 12 after 20220227 fails to build on powerpc64-freebsd with Error: invalid mfcr mask
  2022-03-22  2:50 [Bug bootstrap/105010] New: GCC 12 after 20220227 fails on powerpc64-freebsd with Error: invalid mfcr mask pkubaj at anongoth dot pl
                   ` (10 preceding siblings ...)
  2022-03-23 18:56 ` segher at gcc dot gnu.org
@ 2022-03-23 21:26 ` pkubaj at anongoth dot pl
  2022-03-23 22:33 ` segher at gcc dot gnu.org
                   ` (12 subsequent siblings)
  24 siblings, 0 replies; 26+ messages in thread
From: pkubaj at anongoth dot pl @ 2022-03-23 21:26 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105010

--- Comment #11 from Piotr Kubaj <pkubaj at anongoth dot pl> ---
Unfortunately, this fails with the original issue:
/wrkdirs/usr/ports/lang/gcc12-devel/work/.build/./gcc/xgcc
-B/wrkdirs/usr/ports/lang/gcc12-devel/work/.build/./gcc/
-B/usr/local/powerpc64-portbld-freebsd13.1/bin/
-B/usr/local/powerpc64-portbld-freebsd13.1/lib/ -isystem
/usr/local/powerpc64-portbld-freebsd13.1/include -isystem
/usr/local/powerpc64-portbld-freebsd13.1/sys-include   -fno-checking -g -O2
-pipe -DLIBICONV_PLUG -fstack-protector-strong -fno-strict-aliasing -m32 -fPIC
-mstrict-align -msecure-plt -O2  -g -O2 -pipe  -DLIBICONV_PLUG
-fstack-protector-strong -fno-strict-aliasing  -DIN_GCC -fPIC   -W -Wall
-Wno-narrowing -Wwrite-strings -Wcast-qual -Wno-format -Wstrict-prototypes
-Wmissing-prototypes -Wold-style-definition  -isystem ./include  -fPIC -pthread
-mno-minimal-toc -g -DIN_LIBGCC2 -fbuilding-libgcc -fno-stack-protector  -fPIC
-pthread -mno-minimal-toc -I. -I. -I../../.././gcc
-I/wrkdirs/usr/ports/lang/gcc12-devel/work/gcc-12-20220320/libgcc
-I/wrkdirs/usr/ports/lang/gcc12-devel/work/gcc-12-20220320/libgcc/.
-I/wrkdirs/usr/ports/lang/gcc12-devel/work/gcc-12-20220320/libgcc/../gcc
-I/wrkdirs/usr/ports/lang/gcc12-devel/work/gcc-12-20220320/libgcc/../include 
-DHAVE_CC_TLS   -o _mulsc3.o -MT _mulsc3.o -MD -MP -MF _mulsc3.dep -DL_mulsc3
-c /wrkdirs/usr/ports/lang/gcc12-devel/work/gcc-12-20220320/libgcc/libgcc2.c
-fvisibility=hidden -DHIDE_EXPORTS
{standard input}: Assembler messages:
{standard input}:140: Error: invalid mfcr mask
{standard input}:147: Error: unrecognized opcode: `fcfid'
{standard input}:166: Error: invalid mfcr mask
{standard input}:175: Error: unrecognized opcode: `fcfid'
{standard input}:326: Error: invalid mfcr mask
{standard input}:337: Error: unrecognized opcode: `fcfid'
{standard input}:356: Error: invalid mfcr mask
{standard input}:365: Error: unrecognized opcode: `fcfid'

^ permalink raw reply	[flat|nested] 26+ messages in thread

* [Bug target/105010] [12 regression] GCC 12 after 20220227 fails to build on powerpc64-freebsd with Error: invalid mfcr mask
  2022-03-22  2:50 [Bug bootstrap/105010] New: GCC 12 after 20220227 fails on powerpc64-freebsd with Error: invalid mfcr mask pkubaj at anongoth dot pl
                   ` (11 preceding siblings ...)
  2022-03-23 21:26 ` pkubaj at anongoth dot pl
@ 2022-03-23 22:33 ` segher at gcc dot gnu.org
  2022-03-23 23:26 ` pkubaj at anongoth dot pl
                   ` (11 subsequent siblings)
  24 siblings, 0 replies; 26+ messages in thread
From: segher at gcc dot gnu.org @ 2022-03-23 22:33 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105010

--- Comment #12 from Segher Boessenkool <segher at gcc dot gnu.org> ---
What I still cannot figure out is how you get TARGET_MFCRF with your
configuration and command line, so, ISA 2.01 .  This is -m32 so *should*
default to -mcpu=7450.  But apparently it uses the PROCESSOR_DEFAULT64 for
-m32 as well?  How can that ever work?

^ permalink raw reply	[flat|nested] 26+ messages in thread

* [Bug target/105010] [12 regression] GCC 12 after 20220227 fails to build on powerpc64-freebsd with Error: invalid mfcr mask
  2022-03-22  2:50 [Bug bootstrap/105010] New: GCC 12 after 20220227 fails on powerpc64-freebsd with Error: invalid mfcr mask pkubaj at anongoth dot pl
                   ` (12 preceding siblings ...)
  2022-03-23 22:33 ` segher at gcc dot gnu.org
@ 2022-03-23 23:26 ` pkubaj at anongoth dot pl
  2022-04-04 13:05 ` segher at gcc dot gnu.org
                   ` (10 subsequent siblings)
  24 siblings, 0 replies; 26+ messages in thread
From: pkubaj at anongoth dot pl @ 2022-03-23 23:26 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105010

--- Comment #13 from Piotr Kubaj <pkubaj at anongoth dot pl> ---
Is it possible there's an underlying bug in GCC and it only works on Linux
because the default for Linux for 32-bits is POWER7?

^ permalink raw reply	[flat|nested] 26+ messages in thread

* [Bug target/105010] [12 regression] GCC 12 after 20220227 fails to build on powerpc64-freebsd with Error: invalid mfcr mask
  2022-03-22  2:50 [Bug bootstrap/105010] New: GCC 12 after 20220227 fails on powerpc64-freebsd with Error: invalid mfcr mask pkubaj at anongoth dot pl
                   ` (13 preceding siblings ...)
  2022-03-23 23:26 ` pkubaj at anongoth dot pl
@ 2022-04-04 13:05 ` segher at gcc dot gnu.org
  2022-04-06 21:28 ` bergner at gcc dot gnu.org
                   ` (9 subsequent siblings)
  24 siblings, 0 replies; 26+ messages in thread
From: segher at gcc dot gnu.org @ 2022-04-04 13:05 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105010

Segher Boessenkool <segher at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Priority|P3                          |P2

^ permalink raw reply	[flat|nested] 26+ messages in thread

* [Bug target/105010] [12 regression] GCC 12 after 20220227 fails to build on powerpc64-freebsd with Error: invalid mfcr mask
  2022-03-22  2:50 [Bug bootstrap/105010] New: GCC 12 after 20220227 fails on powerpc64-freebsd with Error: invalid mfcr mask pkubaj at anongoth dot pl
                   ` (14 preceding siblings ...)
  2022-04-04 13:05 ` segher at gcc dot gnu.org
@ 2022-04-06 21:28 ` bergner at gcc dot gnu.org
  2022-05-06  8:33 ` [Bug target/105010] [12/13 " jakub at gcc dot gnu.org
                   ` (8 subsequent siblings)
  24 siblings, 0 replies; 26+ messages in thread
From: bergner at gcc dot gnu.org @ 2022-04-06 21:28 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105010

--- Comment #14 from Peter Bergner <bergner at gcc dot gnu.org> ---
(In reply to Piotr Kubaj from comment #13)
> Is it possible there's an underlying bug in GCC and it only works on Linux
> because the default for Linux for 32-bits is POWER7?

Well the default for -m32 should not be POWER7 (unless you configured with
--with-cpu=power7 or --with-cpu-32=power7)!  Segher and I talked offline on how
to fix this and it's not a one-line fix. :-(  I believe he is working on it
though.

^ permalink raw reply	[flat|nested] 26+ messages in thread

* [Bug target/105010] [12/13 regression] GCC 12 after 20220227 fails to build on powerpc64-freebsd with Error: invalid mfcr mask
  2022-03-22  2:50 [Bug bootstrap/105010] New: GCC 12 after 20220227 fails on powerpc64-freebsd with Error: invalid mfcr mask pkubaj at anongoth dot pl
                   ` (15 preceding siblings ...)
  2022-04-06 21:28 ` bergner at gcc dot gnu.org
@ 2022-05-06  8:33 ` jakub at gcc dot gnu.org
  2022-12-31  4:26 ` pkubaj at anongoth dot pl
                   ` (7 subsequent siblings)
  24 siblings, 0 replies; 26+ messages in thread
From: jakub at gcc dot gnu.org @ 2022-05-06  8:33 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105010

Jakub Jelinek <jakub at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|12.0                        |12.2

--- Comment #15 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
GCC 12.1 is being released, retargeting bugs to GCC 12.2.

^ permalink raw reply	[flat|nested] 26+ messages in thread

* [Bug target/105010] [12/13 regression] GCC 12 after 20220227 fails to build on powerpc64-freebsd with Error: invalid mfcr mask
  2022-03-22  2:50 [Bug bootstrap/105010] New: GCC 12 after 20220227 fails on powerpc64-freebsd with Error: invalid mfcr mask pkubaj at anongoth dot pl
                   ` (16 preceding siblings ...)
  2022-05-06  8:33 ` [Bug target/105010] [12/13 " jakub at gcc dot gnu.org
@ 2022-12-31  4:26 ` pkubaj at anongoth dot pl
  2022-12-31 18:24 ` segher at gcc dot gnu.org
                   ` (6 subsequent siblings)
  24 siblings, 0 replies; 26+ messages in thread
From: pkubaj at anongoth dot pl @ 2022-12-31  4:26 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105010

--- Comment #17 from Piotr Kubaj <pkubaj at anongoth dot pl> ---
This also affects GCC 10.4 and the snapshots of GCC 11.

^ permalink raw reply	[flat|nested] 26+ messages in thread

* [Bug target/105010] [12/13 regression] GCC 12 after 20220227 fails to build on powerpc64-freebsd with Error: invalid mfcr mask
  2022-03-22  2:50 [Bug bootstrap/105010] New: GCC 12 after 20220227 fails on powerpc64-freebsd with Error: invalid mfcr mask pkubaj at anongoth dot pl
                   ` (17 preceding siblings ...)
  2022-12-31  4:26 ` pkubaj at anongoth dot pl
@ 2022-12-31 18:24 ` segher at gcc dot gnu.org
  2023-01-01 13:26 ` pkubaj at anongoth dot pl
                   ` (5 subsequent siblings)
  24 siblings, 0 replies; 26+ messages in thread
From: segher at gcc dot gnu.org @ 2022-12-31 18:24 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105010

--- Comment #18 from Segher Boessenkool <segher at gcc dot gnu.org> ---
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).

^ permalink raw reply	[flat|nested] 26+ messages in thread

* [Bug target/105010] [12/13 regression] GCC 12 after 20220227 fails to build on powerpc64-freebsd with Error: invalid mfcr mask
  2022-03-22  2:50 [Bug bootstrap/105010] New: GCC 12 after 20220227 fails on powerpc64-freebsd with Error: invalid mfcr mask pkubaj at anongoth dot pl
                   ` (18 preceding siblings ...)
  2022-12-31 18:24 ` segher at gcc dot gnu.org
@ 2023-01-01 13:26 ` pkubaj at anongoth dot pl
  2023-01-03 23:24 ` segher at gcc dot gnu.org
                   ` (4 subsequent siblings)
  24 siblings, 0 replies; 26+ messages in thread
From: pkubaj at anongoth dot pl @ 2023-01-01 13:26 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105010

--- Comment #19 from Piotr Kubaj <pkubaj at anongoth dot pl> ---
Created attachment 54172
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=54172&action=edit
generated assembly

Attached.

^ permalink raw reply	[flat|nested] 26+ messages in thread

* [Bug target/105010] [12/13 regression] GCC 12 after 20220227 fails to build on powerpc64-freebsd with Error: invalid mfcr mask
  2022-03-22  2:50 [Bug bootstrap/105010] New: GCC 12 after 20220227 fails on powerpc64-freebsd with Error: invalid mfcr mask pkubaj at anongoth dot pl
                   ` (19 preceding siblings ...)
  2023-01-01 13:26 ` pkubaj at anongoth dot pl
@ 2023-01-03 23:24 ` segher at gcc dot gnu.org
  2023-01-05 14:04 ` pkubaj at anongoth dot pl
                   ` (3 subsequent siblings)
  24 siblings, 0 replies; 26+ messages in thread
From: segher at gcc dot gnu.org @ 2023-01-03 23:24 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105010

--- Comment #20 from Segher Boessenkool <segher at gcc dot gnu.org> ---
(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.

^ permalink raw reply	[flat|nested] 26+ messages in thread

* [Bug target/105010] [12/13 regression] GCC 12 after 20220227 fails to build on powerpc64-freebsd with Error: invalid mfcr mask
  2022-03-22  2:50 [Bug bootstrap/105010] New: GCC 12 after 20220227 fails on powerpc64-freebsd with Error: invalid mfcr mask pkubaj at anongoth dot pl
                   ` (20 preceding siblings ...)
  2023-01-03 23:24 ` segher at gcc dot gnu.org
@ 2023-01-05 14:04 ` pkubaj at anongoth dot pl
  2023-01-05 15:03 ` segher at gcc dot gnu.org
                   ` (2 subsequent siblings)
  24 siblings, 0 replies; 26+ messages in thread
From: pkubaj at anongoth dot pl @ 2023-01-05 14:04 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105010

--- Comment #21 from Piotr Kubaj <pkubaj at anongoth dot pl> ---
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.

^ permalink raw reply	[flat|nested] 26+ messages in thread

* [Bug target/105010] [12/13 regression] GCC 12 after 20220227 fails to build on powerpc64-freebsd with Error: invalid mfcr mask
  2022-03-22  2:50 [Bug bootstrap/105010] New: GCC 12 after 20220227 fails on powerpc64-freebsd with Error: invalid mfcr mask pkubaj at anongoth dot pl
                   ` (21 preceding siblings ...)
  2023-01-05 14:04 ` pkubaj at anongoth dot pl
@ 2023-01-05 15:03 ` segher at gcc dot gnu.org
  2023-02-13 22:39 ` pkubaj at anongoth dot pl
  2023-05-08 12:24 ` [Bug target/105010] [12/13/14 " rguenth at gcc dot gnu.org
  24 siblings, 0 replies; 26+ messages in thread
From: segher at gcc dot gnu.org @ 2023-01-05 15:03 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105010

Segher Boessenkool <segher at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Last reconfirmed|                            |2023-01-05
     Ever confirmed|0                           |1
             Status|UNCONFIRMED                 |NEW

--- Comment #22 from Segher Boessenkool <segher at gcc dot gnu.org> ---
(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.

^ permalink raw reply	[flat|nested] 26+ messages in thread

* [Bug target/105010] [12/13 regression] GCC 12 after 20220227 fails to build on powerpc64-freebsd with Error: invalid mfcr mask
  2022-03-22  2:50 [Bug bootstrap/105010] New: GCC 12 after 20220227 fails on powerpc64-freebsd with Error: invalid mfcr mask pkubaj at anongoth dot pl
                   ` (22 preceding siblings ...)
  2023-01-05 15:03 ` segher at gcc dot gnu.org
@ 2023-02-13 22:39 ` pkubaj at anongoth dot pl
  2023-05-08 12:24 ` [Bug target/105010] [12/13/14 " rguenth at gcc dot gnu.org
  24 siblings, 0 replies; 26+ messages in thread
From: pkubaj at anongoth dot pl @ 2023-02-13 22:39 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105010

--- Comment #23 from Piotr Kubaj <pkubaj at anongoth dot pl> ---
(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?

^ permalink raw reply	[flat|nested] 26+ messages in thread

* [Bug target/105010] [12/13/14 regression] GCC 12 after 20220227 fails to build on powerpc64-freebsd with Error: invalid mfcr mask
  2022-03-22  2:50 [Bug bootstrap/105010] New: GCC 12 after 20220227 fails on powerpc64-freebsd with Error: invalid mfcr mask pkubaj at anongoth dot pl
                   ` (23 preceding siblings ...)
  2023-02-13 22:39 ` pkubaj at anongoth dot pl
@ 2023-05-08 12:24 ` rguenth at gcc dot gnu.org
  24 siblings, 0 replies; 26+ messages in thread
From: rguenth at gcc dot gnu.org @ 2023-05-08 12:24 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105010

Richard Biener <rguenth at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|12.3                        |12.4

--- Comment #24 from Richard Biener <rguenth at gcc dot gnu.org> ---
GCC 12.3 is being released, retargeting bugs to GCC 12.4.

^ permalink raw reply	[flat|nested] 26+ messages in thread

end of thread, other threads:[~2023-05-08 12:24 UTC | newest]

Thread overview: 26+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-03-22  2:50 [Bug bootstrap/105010] New: GCC 12 after 20220227 fails on powerpc64-freebsd with Error: invalid mfcr mask pkubaj at anongoth dot pl
2022-03-22  8:45 ` [Bug bootstrap/105010] GCC 12 after 20220227 fails to build " rguenth at gcc dot gnu.org
2022-03-22  8:47 ` pkubaj at anongoth dot pl
2022-03-22 10:34 ` [Bug target/105010] [12 regression] " rguenth at gcc dot gnu.org
2022-03-22 20:57 ` pkubaj at anongoth dot pl
2022-03-22 22:50 ` segher at gcc dot gnu.org
2022-03-22 23:00 ` pkubaj at anongoth dot pl
2022-03-23 11:34 ` pkubaj at anongoth dot pl
2022-03-23 12:41 ` segher at gcc dot gnu.org
2022-03-23 14:54 ` pkubaj at anongoth dot pl
2022-03-23 17:33 ` pkubaj at anongoth dot pl
2022-03-23 18:56 ` segher at gcc dot gnu.org
2022-03-23 21:26 ` pkubaj at anongoth dot pl
2022-03-23 22:33 ` segher at gcc dot gnu.org
2022-03-23 23:26 ` pkubaj at anongoth dot pl
2022-04-04 13:05 ` segher at gcc dot gnu.org
2022-04-06 21:28 ` bergner at gcc dot gnu.org
2022-05-06  8:33 ` [Bug target/105010] [12/13 " jakub at gcc dot gnu.org
2022-12-31  4:26 ` pkubaj at anongoth dot pl
2022-12-31 18:24 ` segher at gcc dot gnu.org
2023-01-01 13:26 ` pkubaj at anongoth dot pl
2023-01-03 23:24 ` segher at gcc dot gnu.org
2023-01-05 14:04 ` pkubaj at anongoth dot pl
2023-01-05 15:03 ` segher at gcc dot gnu.org
2023-02-13 22:39 ` pkubaj at anongoth dot pl
2023-05-08 12:24 ` [Bug target/105010] [12/13/14 " rguenth at gcc dot gnu.org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).