Bug 2336215

Summary: GCC 15 mass prebuild: lirc ICE on s390x: "commandir.c:2459:1: internal compiler error: in simplify_subreg, at simplify-rtx.cc:7811"
Product: [Fedora] Fedora Reporter: Dave Malcolm <dmalcolm>
Component: gccAssignee: Jakub Jelinek <jakub>
Status: CLOSED RAWHIDE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: unspecified    
Version: rawhideCC: dmalcolm, fweimer, jakub, jlaw, josmyers, jwakely, mcermak, mpolacek, msebor, nickc, nixuser, sipoyare
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2025-01-13 12:31:15 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 2333037    

Description Dave Malcolm 2025-01-07 19:43:41 UTC
Seen on this build:
  https://copr.fedorainfracloud.org/coprs/dmalcolm/gcc-15-smoketest-3.failed/build/8476684/

using gcc-15.0.0-0.2.fc42 from this scratch build by Jakub: 
   https://koji.fedoraproject.org/koji/taskinfo?taskID=126495782

where the s390x build crashes (the other archs succeeded):

during RTL pass: combine
commandir.c: In function 'raise_event':
commandir.c:2459:1: internal compiler error: in simplify_subreg, at simplify-rtx.cc:7811
 2459 | }
      | ^
Please submit a full bug report, with preprocessed source (by using -freport-bug).
See <http://bugzilla.redhat.com/bugzilla> for instructions.



Reproducible: Didn't try

Comment 1 Jakub Jelinek 2025-01-08 16:35:00 UTC
Created attachment 2065153 [details]
ccPWXpC5.out

Preprocessed source.
I'll now try to reduce this and bisect.

Comment 2 Jakub Jelinek 2025-01-08 18:02:58 UTC
Started with https://gcc.gnu.org/r15-2002

Comment 3 Jakub Jelinek 2025-01-13 12:31:15 UTC
This should be fixed in gcc-15.0.0-0.4.fc42.