public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c/110721] New: Segmentation fault with '-O3 -fno-dce -fno-ipa-cp -fno-tree-dce -fno-tree-sink'
@ 2023-07-18 15:09 19373742 at buaa dot edu.cn
  2023-07-18 15:10 ` [Bug c/110721] " 19373742 at buaa dot edu.cn
                   ` (6 more replies)
  0 siblings, 7 replies; 8+ messages in thread
From: 19373742 at buaa dot edu.cn @ 2023-07-18 15:09 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 110721
           Summary: Segmentation fault with '-O3 -fno-dce -fno-ipa-cp
                    -fno-tree-dce -fno-tree-sink'
           Product: gcc
           Version: 11.4.1
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c
          Assignee: unassigned at gcc dot gnu.org
          Reporter: 19373742 at buaa dot edu.cn
  Target Milestone: ---

Created attachment 55570
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=55570&action=edit
The preprocessed file

*******************************************************************************
OS and Platform:
CentOS Linux release 7.9.2009 (Core), x86_64 GNU/Linux
*******************************************************************************
gcc version:
gcc -v
Using built-in specs.
COLLECT_GCC=/home/new-gcc/gcc-11-0713/bin/gcc
COLLECT_LTO_WRAPPER=/home/new-gcc/gcc-11-0713/libexec/gcc/x86_64-pc-linux-gnu/11.4.1/lto-wrapper
Target: x86_64-pc-linux-gnu
Configured with: ./configure --prefix=/home/new-gcc/gcc-11-0713/
--disable-multilib --enable-languae=c,c++
Thread model: posix
Supported LTO compression algorithms: zlib zstd
gcc version 11.4.1 20230713 (GCC)
*******************************************************************************
Command Lines:
# /home/new-gcc/gcc-11-0713/bin/gcc -I /home/csmith/include/csmith-2.3.0/ -O3
-fno-dce -fno-ipa-cp -fno-tree-dce -fno-tree-sink ecn.c -o ecn.o
#/home/new-gcc/gcc-11-0713/bin/gcc -I /home/csmith/include/csmith-2.3.0/ ecn.c
-o ecn2.o
# ./ecn.o
Segmentation fault
# ./ecn2.o
checksum = AF78526F

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

* [Bug c/110721] Segmentation fault with '-O3 -fno-dce -fno-ipa-cp -fno-tree-dce -fno-tree-sink'
  2023-07-18 15:09 [Bug c/110721] New: Segmentation fault with '-O3 -fno-dce -fno-ipa-cp -fno-tree-dce -fno-tree-sink' 19373742 at buaa dot edu.cn
@ 2023-07-18 15:10 ` 19373742 at buaa dot edu.cn
  2023-07-18 16:04 ` pinskia at gcc dot gnu.org
                   ` (5 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: 19373742 at buaa dot edu.cn @ 2023-07-18 15:10 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #1 from CTC <19373742 at buaa dot edu.cn> ---
Created attachment 55571
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=55571&action=edit
The compiler output

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

* [Bug c/110721] Segmentation fault with '-O3 -fno-dce -fno-ipa-cp -fno-tree-dce -fno-tree-sink'
  2023-07-18 15:09 [Bug c/110721] New: Segmentation fault with '-O3 -fno-dce -fno-ipa-cp -fno-tree-dce -fno-tree-sink' 19373742 at buaa dot edu.cn
  2023-07-18 15:10 ` [Bug c/110721] " 19373742 at buaa dot edu.cn
@ 2023-07-18 16:04 ` pinskia at gcc dot gnu.org
  2023-07-19  6:39 ` [Bug middle-end/110721] " rguenth at gcc dot gnu.org
                   ` (4 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: pinskia at gcc dot gnu.org @ 2023-07-18 16:04 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #2 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
It seems to work on the trunk ...

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

* [Bug middle-end/110721] Segmentation fault with '-O3 -fno-dce -fno-ipa-cp -fno-tree-dce -fno-tree-sink'
  2023-07-18 15:09 [Bug c/110721] New: Segmentation fault with '-O3 -fno-dce -fno-ipa-cp -fno-tree-dce -fno-tree-sink' 19373742 at buaa dot edu.cn
  2023-07-18 15:10 ` [Bug c/110721] " 19373742 at buaa dot edu.cn
  2023-07-18 16:04 ` pinskia at gcc dot gnu.org
@ 2023-07-19  6:39 ` rguenth at gcc dot gnu.org
  2023-10-23  9:25 ` sjames at gcc dot gnu.org
                   ` (3 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: rguenth at gcc dot gnu.org @ 2023-07-19  6:39 UTC (permalink / raw)
  To: gcc-bugs

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |needs-bisection
      Known to work|                            |14.0

--- Comment #3 from Richard Biener <rguenth at gcc dot gnu.org> ---
no-dce again eventually points to the IPA fixes in this area.  needs bisection
for the fix.

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

* [Bug middle-end/110721] Segmentation fault with '-O3 -fno-dce -fno-ipa-cp -fno-tree-dce -fno-tree-sink'
  2023-07-18 15:09 [Bug c/110721] New: Segmentation fault with '-O3 -fno-dce -fno-ipa-cp -fno-tree-dce -fno-tree-sink' 19373742 at buaa dot edu.cn
                   ` (2 preceding siblings ...)
  2023-07-19  6:39 ` [Bug middle-end/110721] " rguenth at gcc dot gnu.org
@ 2023-10-23  9:25 ` sjames at gcc dot gnu.org
  2023-10-23 15:26 ` sjames at gcc dot gnu.org
                   ` (2 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: sjames at gcc dot gnu.org @ 2023-10-23  9:25 UTC (permalink / raw)
  To: gcc-bugs

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

Sam James <sjames at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |sjames at gcc dot gnu.org

--- Comment #4 from Sam James <sjames at gcc dot gnu.org> ---
tip of 11 is broken for me, tip of 12 is ok, bisecting...

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

* [Bug middle-end/110721] Segmentation fault with '-O3 -fno-dce -fno-ipa-cp -fno-tree-dce -fno-tree-sink'
  2023-07-18 15:09 [Bug c/110721] New: Segmentation fault with '-O3 -fno-dce -fno-ipa-cp -fno-tree-dce -fno-tree-sink' 19373742 at buaa dot edu.cn
                   ` (3 preceding siblings ...)
  2023-10-23  9:25 ` sjames at gcc dot gnu.org
@ 2023-10-23 15:26 ` sjames at gcc dot gnu.org
  2023-10-23 17:30 ` pinskia at gcc dot gnu.org
  2023-10-23 18:18 ` sjames at gcc dot gnu.org
  6 siblings, 0 replies; 8+ messages in thread
From: sjames at gcc dot gnu.org @ 2023-10-23 15:26 UTC (permalink / raw)
  To: gcc-bugs

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

Sam James <sjames at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |rguenth at gcc dot gnu.org
           Keywords|needs-bisection             |

--- Comment #5 from Sam James <sjames at gcc dot gnu.org> ---
the bisect indicates r12-248-gb58dc0b803057c was the fix:

b58dc0b803057c0e6032e0d9bd92cd834f72c75c is the first bad commit
commit b58dc0b803057c0e6032e0d9bd92cd834f72c75c
Author: Richard Biener <rguenther@suse.de>
Date:   Tue Apr 27 14:32:27 2021 +0200

    tree-optimization/99912 - delete trivially dead stmts during DSE

    DSE performs a backwards walk over stmts removing stores but it
    leaves removing resulting dead SSA defs to later passes.  This
    eats into its own alias walking budget if the removed stores kept
    loads live.  The following patch adds removal of trivially dead
    SSA defs which helps in this situation and reduces the amount of
    garbage followup passes need to deal with.

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

* [Bug middle-end/110721] Segmentation fault with '-O3 -fno-dce -fno-ipa-cp -fno-tree-dce -fno-tree-sink'
  2023-07-18 15:09 [Bug c/110721] New: Segmentation fault with '-O3 -fno-dce -fno-ipa-cp -fno-tree-dce -fno-tree-sink' 19373742 at buaa dot edu.cn
                   ` (4 preceding siblings ...)
  2023-10-23 15:26 ` sjames at gcc dot gnu.org
@ 2023-10-23 17:30 ` pinskia at gcc dot gnu.org
  2023-10-23 18:18 ` sjames at gcc dot gnu.org
  6 siblings, 0 replies; 8+ messages in thread
From: pinskia at gcc dot gnu.org @ 2023-10-23 17:30 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #6 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
(In reply to Sam James from comment #5)
> the bisect indicates r12-248-gb58dc0b803057c was the fix:

Maybe it still fails with -fno-tree-dse but then again it might depend on dse
happening so ...

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

* [Bug middle-end/110721] Segmentation fault with '-O3 -fno-dce -fno-ipa-cp -fno-tree-dce -fno-tree-sink'
  2023-07-18 15:09 [Bug c/110721] New: Segmentation fault with '-O3 -fno-dce -fno-ipa-cp -fno-tree-dce -fno-tree-sink' 19373742 at buaa dot edu.cn
                   ` (5 preceding siblings ...)
  2023-10-23 17:30 ` pinskia at gcc dot gnu.org
@ 2023-10-23 18:18 ` sjames at gcc dot gnu.org
  6 siblings, 0 replies; 8+ messages in thread
From: sjames at gcc dot gnu.org @ 2023-10-23 18:18 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #7 from Sam James <sjames at gcc dot gnu.org> ---
tip of 12/13/14 all work with -fno-tree-dse, 11 fails the same as before

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

end of thread, other threads:[~2023-10-23 18:18 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-07-18 15:09 [Bug c/110721] New: Segmentation fault with '-O3 -fno-dce -fno-ipa-cp -fno-tree-dce -fno-tree-sink' 19373742 at buaa dot edu.cn
2023-07-18 15:10 ` [Bug c/110721] " 19373742 at buaa dot edu.cn
2023-07-18 16:04 ` pinskia at gcc dot gnu.org
2023-07-19  6:39 ` [Bug middle-end/110721] " rguenth at gcc dot gnu.org
2023-10-23  9:25 ` sjames at gcc dot gnu.org
2023-10-23 15:26 ` sjames at gcc dot gnu.org
2023-10-23 17:30 ` pinskia at gcc dot gnu.org
2023-10-23 18:18 ` sjames 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).