[Bug target/112567] [14 regression] ICE in RTL pass: split2: Segmentation fault

2023-11-16 Thread slyfox at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112567

--- Comment #5 from Sergei Trofimovich  ---
The fix allowed me to build linux-6.6.1 successfully with current gcc-master.
Thank you!

[Bug target/112567] [14 regression] ICE in RTL pass: split2: Segmentation fault

2023-11-16 Thread ubizjak at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112567

Uroš Bizjak  changed:

   What|Removed |Added

 Resolution|--- |FIXED
 Status|ASSIGNED|RESOLVED

--- Comment #4 from Uroš Bizjak  ---
Fixed.

[Bug target/112567] [14 regression] ICE in RTL pass: split2: Segmentation fault

2023-11-16 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112567

--- Comment #3 from CVS Commits  ---
The master branch has been updated by Uros Bizjak :

https://gcc.gnu.org/g:06ff410e0dea135d41bc5f7a9a007d7ba6822dbf

commit r14-5533-g06ff410e0dea135d41bc5f7a9a007d7ba6822dbf
Author: Uros Bizjak 
Date:   Thu Nov 16 16:48:07 2023 +0100

i386: Fix invalid RTX in split2 pass [PR112567]

Also fix some indentitation inconsistencies.

PR target/112567

gcc/ChangeLog:

* config/i386/i386.md (*qi_ext_1_slp):
Fix generation of invalid RTX in split pattern.

[Bug target/112567] [14 regression] ICE in RTL pass: split2: Segmentation fault

2023-11-16 Thread dcb314 at hotmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112567

David Binderman  changed:

   What|Removed |Added

 CC||dcb314 at hotmail dot com

--- Comment #2 from David Binderman  ---
I get the same for this C++ code:

struct {
  long length();
} fromBase32Hex_input;
int set_bits_start, set_bits_length;
char fromBase32Hex_block[1];
char fromBase32Hex_cr;
void fromBase32Hex() {
  for (; fromBase32Hex_input.length();) {
char *s = fromBase32Hex_block;
char cc = set_bits_length >> 8;
if (set_bits_length) {
  s[set_bits_start / 8] |= cc;
  s[set_bits_start / 8 + 1] |= fromBase32Hex_cr;
}
s[set_bits_start / 8] |= fromBase32Hex_cr;
  }
}

cvise $ ~/gcc/results/bin/gcc -c -w -O2  bug982.cc
cvise $ ~/gcc/results/bin/gcc -c -w -O2 -march=znver1 bug982.cc
during RTL pass: split2
bug982.cc: In function ‘void fromBase32Hex()’:
bug982.cc:17:1: internal compiler error: Segmentation fault
   17 | }
  | ^
0x11b6759 crash_signal(int)
../../trunk.year/gcc/toplev.cc:316
0xcc7899 mark_label_nuses(rtx_def*)
../../trunk.year/gcc/emit-rtl.cc:3750

[Bug target/112567] [14 regression] ICE in RTL pass: split2: Segmentation fault

2023-11-16 Thread ubizjak at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112567

Uroš Bizjak  changed:

   What|Removed |Added

   Last reconfirmed||2023-11-16
 Status|UNCONFIRMED |ASSIGNED
 Ever confirmed|0   |1
   Assignee|unassigned at gcc dot gnu.org  |ubizjak at gmail dot com

--- Comment #1 from Uroš Bizjak  ---
Mine, due to [1], this time I managed to split to invalid RTX...

I have a patch.

[1] https://gcc.gnu.org/pipermail/gcc-cvs/2023-November/393104.html

[Bug target/112567] [14 regression] ICE in RTL pass: split2: Segmentation fault

2023-11-16 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112567

Richard Biener  changed:

   What|Removed |Added

   Target Milestone|--- |14.0
   Keywords||ice-on-valid-code,
   ||needs-bisection
 Target||x86_64-*-*