public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug rtl-optimization/114828] New: ICE on valid code at -O1 with "-ftree-pre -fselective-scheduling -fsel-sched-pipelining -fschedule-insns" on x86_64-linux-gnu: Segmentation fault
@ 2024-04-23 18:04 zhendong.su at inf dot ethz.ch
  2024-04-23 18:57 ` [Bug rtl-optimization/114828] [14 Regression] " hjl.tools at gmail dot com
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: zhendong.su at inf dot ethz.ch @ 2024-04-23 18:04 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 114828
           Summary: ICE on valid code at -O1 with "-ftree-pre
                    -fselective-scheduling -fsel-sched-pipelining
                    -fschedule-insns" on x86_64-linux-gnu: Segmentation
                    fault
           Product: gcc
           Version: unknown
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: rtl-optimization
          Assignee: unassigned at gcc dot gnu.org
          Reporter: zhendong.su at inf dot ethz.ch
  Target Milestone: ---

This appears to be a recent regression and does not reproduce with 13.2 and
earlier.

Compiler Explorer: https://godbolt.org/z/9WdTv4qEe

[576] % gcctk -v
Using built-in specs.
COLLECT_GCC=gcctk
COLLECT_LTO_WRAPPER=/local/suz-local/software/local/gcc-trunk/libexec/gcc/x86_64-pc-linux-gnu/14.0.1/lto-wrapper
Target: x86_64-pc-linux-gnu
Configured with: ../gcc-trunk/configure --disable-bootstrap
--enable-checking=yes --prefix=/local/suz-local/software/local/gcc-trunk
--enable-sanitizers --enable-languages=c,c++ --disable-werror --enable-multilib
Thread model: posix
Supported LTO compression algorithms: zlib
gcc version 14.0.1 20240423 (experimental) (GCC)
[577] %
[577] % gcctk -c -O1 -ftree-pre -fselective-scheduling -fsel-sched-pipelining
-fschedule-insns small.c
during RTL pass: sched1
small.c: In function ‘f’:
small.c:14:1: internal compiler error: Segmentation fault
   14 | }
      | ^
0x116dc33 crash_signal
        ../../gcc-trunk/gcc/toplev.cc:319
0x7f3e0a2c608f ???
       
/build/glibc-e2p3jK/glibc-2.31/signal/../sysdeps/unix/sysv/linux/x86_64/sigaction.c:0
0x110b3d4 init_expr
        ../../gcc-trunk/gcc/sel-sched-ir.cc:1642
0x110b3d4 copy_expr_onside(_expr*, _expr*)
        ../../gcc-trunk/gcc/sel-sched-ir.cc:1685
0x111b549 move_op_orig_expr_found
        ../../gcc-trunk/gcc/sel-sched.cc:5997
0x111f2e0 code_motion_path_driver
        ../../gcc-trunk/gcc/sel-sched.cc:6551
0x11200fe code_motion_process_successors
        ../../gcc-trunk/gcc/sel-sched.cc:6350
0x11200fe code_motion_path_driver
        ../../gcc-trunk/gcc/sel-sched.cc:6616
0x11200fe code_motion_process_successors
        ../../gcc-trunk/gcc/sel-sched.cc:6350
0x11200fe code_motion_path_driver
        ../../gcc-trunk/gcc/sel-sched.cc:6616
0x11238e8 move_op
        ../../gcc-trunk/gcc/sel-sched.cc:6710
0x11238e8 move_exprs_to_boundary
        ../../gcc-trunk/gcc/sel-sched.cc:5231
0x11238e8 schedule_expr_on_boundary
        ../../gcc-trunk/gcc/sel-sched.cc:5444
0x1125588 fill_insns
        ../../gcc-trunk/gcc/sel-sched.cc:5586
0x1125588 schedule_on_fences
        ../../gcc-trunk/gcc/sel-sched.cc:7361
0x1125588 sel_sched_region_2
        ../../gcc-trunk/gcc/sel-sched.cc:7499
0x1126c78 sel_sched_region_1
        ../../gcc-trunk/gcc/sel-sched.cc:7541
0x1128a19 sel_sched_region(int)
        ../../gcc-trunk/gcc/sel-sched.cc:7642
0x1128a19 sel_sched_region(int)
        ../../gcc-trunk/gcc/sel-sched.cc:7627
0x1129a21 run_selective_scheduling()
        ../../gcc-trunk/gcc/sel-sched.cc:7728
Please submit a full bug report, with preprocessed source (by using
-freport-bug).
Please include the complete backtrace with any bug report.
See <https://gcc.gnu.org/bugs/> for instructions.
[578] %
[578] % cat small.c
char a, b;
int c, d, e;
void f() {
  char g = -1;
 L:
  if (e) {
    e = b;
    b = c % (d || ~g) && a % c;
    c = c || a ^ d;
    a = e || a + d + 1;
    f();
    goto L;
  }
}

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

* [Bug rtl-optimization/114828] [14 Regression] ICE on valid code at -O1 with "-ftree-pre -fselective-scheduling -fsel-sched-pipelining -fschedule-insns" on x86_64-linux-gnu: Segmentation fault
  2024-04-23 18:04 [Bug rtl-optimization/114828] New: ICE on valid code at -O1 with "-ftree-pre -fselective-scheduling -fsel-sched-pipelining -fschedule-insns" on x86_64-linux-gnu: Segmentation fault zhendong.su at inf dot ethz.ch
@ 2024-04-23 18:57 ` hjl.tools at gmail dot com
  2024-04-23 18:59 ` pinskia at gcc dot gnu.org
  2024-04-25  8:40 ` jakub at gcc dot gnu.org
  2 siblings, 0 replies; 4+ messages in thread
From: hjl.tools at gmail dot com @ 2024-04-23 18:57 UTC (permalink / raw)
  To: gcc-bugs

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

H.J. Lu <hjl.tools at gmail dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
     Ever confirmed|0                           |1
            Version|unknown                     |14.0
             Status|UNCONFIRMED                 |NEW
            Summary|ICE on valid code at -O1    |[14 Regression] ICE on
                   |with "-ftree-pre            |valid code at -O1 with
                   |-fselective-scheduling      |"-ftree-pre
                   |-fsel-sched-pipelining      |-fselective-scheduling
                   |-fschedule-insns" on        |-fsel-sched-pipelining
                   |x86_64-linux-gnu:           |-fschedule-insns" on
                   |Segmentation fault          |x86_64-linux-gnu:
                   |                            |Segmentation fault
                 CC|                            |rguenther at suse dot de
   Last reconfirmed|                            |2024-04-23

--- Comment #1 from H.J. Lu <hjl.tools at gmail dot com> ---
This is caused by r14-4089.

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

* [Bug rtl-optimization/114828] [14 Regression] ICE on valid code at -O1 with "-ftree-pre -fselective-scheduling -fsel-sched-pipelining -fschedule-insns" on x86_64-linux-gnu: Segmentation fault
  2024-04-23 18:04 [Bug rtl-optimization/114828] New: ICE on valid code at -O1 with "-ftree-pre -fselective-scheduling -fsel-sched-pipelining -fschedule-insns" on x86_64-linux-gnu: Segmentation fault zhendong.su at inf dot ethz.ch
  2024-04-23 18:57 ` [Bug rtl-optimization/114828] [14 Regression] " hjl.tools at gmail dot com
@ 2024-04-23 18:59 ` pinskia at gcc dot gnu.org
  2024-04-25  8:40 ` jakub at gcc dot gnu.org
  2 siblings, 0 replies; 4+ messages in thread
From: pinskia at gcc dot gnu.org @ 2024-04-23 18:59 UTC (permalink / raw)
  To: gcc-bugs

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

Andrew Pinski <pinskia at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|---                         |14.0

--- Comment #2 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
(In reply to H.J. Lu from comment #1)
> This is caused by r14-4089.

Nope, just exposed ...

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

* [Bug rtl-optimization/114828] [14 Regression] ICE on valid code at -O1 with "-ftree-pre -fselective-scheduling -fsel-sched-pipelining -fschedule-insns" on x86_64-linux-gnu: Segmentation fault
  2024-04-23 18:04 [Bug rtl-optimization/114828] New: ICE on valid code at -O1 with "-ftree-pre -fselective-scheduling -fsel-sched-pipelining -fschedule-insns" on x86_64-linux-gnu: Segmentation fault zhendong.su at inf dot ethz.ch
  2024-04-23 18:57 ` [Bug rtl-optimization/114828] [14 Regression] " hjl.tools at gmail dot com
  2024-04-23 18:59 ` pinskia at gcc dot gnu.org
@ 2024-04-25  8:40 ` jakub at gcc dot gnu.org
  2 siblings, 0 replies; 4+ messages in thread
From: jakub at gcc dot gnu.org @ 2024-04-25  8:40 UTC (permalink / raw)
  To: gcc-bugs

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |jakub at gcc dot gnu.org
           Priority|P3                          |P2

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

end of thread, other threads:[~2024-04-25  8:40 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-04-23 18:04 [Bug rtl-optimization/114828] New: ICE on valid code at -O1 with "-ftree-pre -fselective-scheduling -fsel-sched-pipelining -fschedule-insns" on x86_64-linux-gnu: Segmentation fault zhendong.su at inf dot ethz.ch
2024-04-23 18:57 ` [Bug rtl-optimization/114828] [14 Regression] " hjl.tools at gmail dot com
2024-04-23 18:59 ` pinskia at gcc dot gnu.org
2024-04-25  8:40 ` jakub 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).