public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug target/99279] New: ICE in rs6000_init_builtins when compiling using -mcpu=440
@ 2021-02-26 0:15 bergner at gcc dot gnu.org
2021-02-26 0:18 ` [Bug target/99279] " bergner at gcc dot gnu.org
` (4 more replies)
0 siblings, 5 replies; 6+ messages in thread
From: bergner at gcc dot gnu.org @ 2021-02-26 0:15 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99279
Bug ID: 99279
Summary: ICE in rs6000_init_builtins when compiling using
-mcpu=440
Product: gcc
Version: 11.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: target
Assignee: unassigned at gcc dot gnu.org
Reporter: bergner at gcc dot gnu.org
Target Milestone: ---
The following ICEs after my commit below:
commit 77ef995c1fbcab76a2a69b9f4700bcfd005d8e62 (HEAD -> master, origin/master,
origin/HEAD)
Author: Peter Bergner <bergner@linux.ibm.com>
AuthorDate: Tue Feb 23 17:16:10 2021 -0600
Commit: Peter Bergner <bergner@linux.ibm.com>
CommitDate: Tue Feb 23 17:16:10 2021 -0600
rs6000: Add support for compatibility built-ins
[bergner@makalu-lp1 MMA]$ cat simple.c
int
main (void)
{
return 0;
}
[bergner@makalu-lp1 MMA]$ gcc -S -mcpu=440 -m32 simple.c
<built-in>: internal compiler error: in rs6000_init_builtins, at
config/rs6000/rs6000-call.c:13471
0x111e7183 rs6000_init_builtins()
/home/bergner/gcc/gcc-fsf-mainline-mma-compat-base/gcc/config/rs6000/rs6000-call.c:13471
0x1030e037 c_define_builtins
/home/bergner/gcc/gcc-fsf-mainline-mma-compat-base/gcc/c-family/c-common.c:4013
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug target/99279] ICE in rs6000_init_builtins when compiling using -mcpu=440
2021-02-26 0:15 [Bug target/99279] New: ICE in rs6000_init_builtins when compiling using -mcpu=440 bergner at gcc dot gnu.org
@ 2021-02-26 0:18 ` bergner at gcc dot gnu.org
2021-02-26 3:36 ` cvs-commit at gcc dot gnu.org
` (3 subsequent siblings)
4 siblings, 0 replies; 6+ messages in thread
From: bergner at gcc dot gnu.org @ 2021-02-26 0:18 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99279
Peter Bergner <bergner at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Ever confirmed|0 |1
CC| |dje at gcc dot gnu.org,
| |segher at gcc dot gnu.org
Assignee|unassigned at gcc dot gnu.org |bergner at gcc dot gnu.org
Status|UNCONFIRMED |ASSIGNED
Last reconfirmed| |2021-02-26
Target Milestone|--- |11.0
Target| |powerpc-*-*
--- Comment #1 from Peter Bergner <bergner at gcc dot gnu.org> ---
Confirmed. Mine. I have a patch.
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug target/99279] ICE in rs6000_init_builtins when compiling using -mcpu=440
2021-02-26 0:15 [Bug target/99279] New: ICE in rs6000_init_builtins when compiling using -mcpu=440 bergner at gcc dot gnu.org
2021-02-26 0:18 ` [Bug target/99279] " bergner at gcc dot gnu.org
@ 2021-02-26 3:36 ` cvs-commit at gcc dot gnu.org
2021-02-26 3:42 ` bergner at gcc dot gnu.org
` (2 subsequent siblings)
4 siblings, 0 replies; 6+ messages in thread
From: cvs-commit at gcc dot gnu.org @ 2021-02-26 3:36 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99279
--- Comment #2 from CVS Commits <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by Peter Bergner <bergner@gcc.gnu.org>:
https://gcc.gnu.org/g:0159535adb0e7400f2c6922f14a7602f6b90cf69
commit r11-7415-g0159535adb0e7400f2c6922f14a7602f6b90cf69
Author: Peter Bergner <bergner@linux.ibm.com>
Date: Thu Feb 25 21:35:28 2021 -0600
rs6000: Fix ICE in rs6000_init_builtins when compiling with -mcpu=440
[PR99279]
The initialization of compat builtins assumes the builtin we are creating
a compatible builtin for exists and ICEs if it doesn't. However, there are
valid reasons why some builtins are disabled for a particular compile.
In this case, the MMA builtins are disabled for -mcpu=440 (and other cpus),
so instead of ICEing, we should just skip adding the MMA compat builtin.
2021-02-25 Peter Bergner <bergner@linux.ibm.com>
gcc/
PR target/99279
* config/rs6000/rs6000-call.c (rs6000_init_builtins): Replace
assert
with an "if" test.
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug target/99279] ICE in rs6000_init_builtins when compiling using -mcpu=440
2021-02-26 0:15 [Bug target/99279] New: ICE in rs6000_init_builtins when compiling using -mcpu=440 bergner at gcc dot gnu.org
2021-02-26 0:18 ` [Bug target/99279] " bergner at gcc dot gnu.org
2021-02-26 3:36 ` cvs-commit at gcc dot gnu.org
@ 2021-02-26 3:42 ` bergner at gcc dot gnu.org
2021-03-10 23:48 ` cvs-commit at gcc dot gnu.org
2021-03-11 0:05 ` bergner at gcc dot gnu.org
4 siblings, 0 replies; 6+ messages in thread
From: bergner at gcc dot gnu.org @ 2021-02-26 3:42 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99279
Peter Bergner <bergner at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Resolution|--- |FIXED
Status|ASSIGNED |RESOLVED
--- Comment #3 from Peter Bergner <bergner at gcc dot gnu.org> ---
Fixed.
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug target/99279] ICE in rs6000_init_builtins when compiling using -mcpu=440
2021-02-26 0:15 [Bug target/99279] New: ICE in rs6000_init_builtins when compiling using -mcpu=440 bergner at gcc dot gnu.org
` (2 preceding siblings ...)
2021-02-26 3:42 ` bergner at gcc dot gnu.org
@ 2021-03-10 23:48 ` cvs-commit at gcc dot gnu.org
2021-03-11 0:05 ` bergner at gcc dot gnu.org
4 siblings, 0 replies; 6+ messages in thread
From: cvs-commit at gcc dot gnu.org @ 2021-03-10 23:48 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99279
--- Comment #4 from CVS Commits <cvs-commit at gcc dot gnu.org> ---
The releases/gcc-10 branch has been updated by Peter Bergner
<bergner@gcc.gnu.org>:
https://gcc.gnu.org/g:0a35ff4ecdd22745bda9afd8fe095fb469acd624
commit r10-9432-g0a35ff4ecdd22745bda9afd8fe095fb469acd624
Author: Peter Bergner <bergner@linux.ibm.com>
Date: Thu Feb 25 21:35:28 2021 -0600
rs6000: Fix ICE in rs6000_init_builtins when compiling with -mcpu=440
[PR99279]
The initialization of compat builtins assumes the builtin we are creating
a compatible builtin for exists and ICEs if it doesn't. However, there are
valid reasons why some builtins are disabled for a particular compile.
In this case, the MMA builtins are disabled for -mcpu=440 (and other cpus),
so instead of ICEing, we should just skip adding the MMA compat builtin.
2021-02-25 Peter Bergner <bergner@linux.ibm.com>
gcc/
PR target/99279
* config/rs6000/rs6000-call.c (rs6000_init_builtins): Replace
assert
with an "if" test.
(cherry picked from commit 0159535adb0e7400f2c6922f14a7602f6b90cf69)
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug target/99279] ICE in rs6000_init_builtins when compiling using -mcpu=440
2021-02-26 0:15 [Bug target/99279] New: ICE in rs6000_init_builtins when compiling using -mcpu=440 bergner at gcc dot gnu.org
` (3 preceding siblings ...)
2021-03-10 23:48 ` cvs-commit at gcc dot gnu.org
@ 2021-03-11 0:05 ` bergner at gcc dot gnu.org
4 siblings, 0 replies; 6+ messages in thread
From: bergner at gcc dot gnu.org @ 2021-03-11 0:05 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99279
--- Comment #5 from Peter Bergner <bergner at gcc dot gnu.org> ---
Fixed in gcc10 too.
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2021-03-11 0:05 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-02-26 0:15 [Bug target/99279] New: ICE in rs6000_init_builtins when compiling using -mcpu=440 bergner at gcc dot gnu.org
2021-02-26 0:18 ` [Bug target/99279] " bergner at gcc dot gnu.org
2021-02-26 3:36 ` cvs-commit at gcc dot gnu.org
2021-02-26 3:42 ` bergner at gcc dot gnu.org
2021-03-10 23:48 ` cvs-commit at gcc dot gnu.org
2021-03-11 0:05 ` bergner 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).