public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c/96513] New: building terminated with -O3
@ 2020-08-07  2:31 zhenglin.huang at qdreamer dot com
  2020-08-07  6:03 ` [Bug tree-optimization/96513] " glisse at gcc dot gnu.org
                   ` (12 more replies)
  0 siblings, 13 replies; 14+ messages in thread
From: zhenglin.huang at qdreamer dot com @ 2020-08-07  2:31 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 96513
           Summary: building terminated with -O3
           Product: gcc
           Version: 9.3.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c
          Assignee: unassigned at gcc dot gnu.org
          Reporter: zhenglin.huang at qdreamer dot com
  Target Milestone: ---

gcc -o wtk/core/fft/wtk_fixfft.o -c -O3 -DHAVE_MATH_H -DDEBUG_VAD_DELAY
-DUSE_LINUX -DUSE_STDLIB_MALLOC -DHAVE_STDIO_H -DVAD_MLF_DEBUG -I. -Ipublic/inc
-Itest wtk/core/fft/wtk_fixfft.c

when I compile use above command I got this

during GIMPLE pass: vect
wtk/core/fft/wtk_fixfft.c: In function ‘wtk_fixfft_work.isra.0.constprop’:
wtk/core/fft/wtk_fixfft.c:672:13: internal compiler error: in
vect_get_vec_def_for_operand_1, at tree-vect-stmts.c:1552
  672 | static void wtk_fixfft_work(wtk_fixfft_substate_t *st, wtk_fixcpx_t
*Fout,
      |             ^~~~~~~~~~~~~~~
Please submit a full bug report,
with preprocessed source if appropriate.
See <file:///usr/share/doc/gcc-9/README.Bugs> for instructions.

only -O3 got this error, -O2 is normal. Sorry, I can't submit source code as it
is not my personal code.

gcc -v output

Using built-in specs.
COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=/usr/lib/gcc/x86_64-linux-gnu/9/lto-wrapper
OFFLOAD_TARGET_NAMES=nvptx-none:hsa
OFFLOAD_TARGET_DEFAULT=1
Target: x86_64-linux-gnu
Configured with: ../src/configure -v --with-pkgversion='Ubuntu 9.3.0-10ubuntu2'
--with-bugurl=file:///usr/share/doc/gcc-9/README.Bugs
--enable-languages=c,ada,c++,go,brig,d,fortran,objc,obj-c++,gm2 --prefix=/usr
--with-gcc-major-version-only --program-suffix=-9
--program-prefix=x86_64-linux-gnu- --enable-shared --enable-linker-build-id
--libexecdir=/usr/lib --without-included-gettext --enable-threads=posix
--libdir=/usr/lib --enable-nls --enable-clocale=gnu --enable-libstdcxx-debug
--enable-libstdcxx-time=yes --with-default-libstdcxx-abi=new
--enable-gnu-unique-object --disable-vtable-verify --enable-plugin
--enable-default-pie --with-system-zlib --with-target-system-zlib=auto
--enable-objc-gc=auto --enable-multiarch --disable-werror --with-arch-32=i686
--with-abi=m64 --with-multilib-list=m32,m64,mx32 --enable-multilib
--with-tune=generic --enable-offload-targets=nvptx-none,hsa
--without-cuda-driver --enable-checking=release --build=x86_64-linux-gnu
--host=x86_64-linux-gnu --target=x86_64-linux-gnu
Thread model: posix
gcc version 9.3.0 (Ubuntu 9.3.0-10ubuntu2)

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

* [Bug tree-optimization/96513] building terminated with -O3
  2020-08-07  2:31 [Bug c/96513] New: building terminated with -O3 zhenglin.huang at qdreamer dot com
@ 2020-08-07  6:03 ` glisse at gcc dot gnu.org
  2020-08-07  7:16 ` rguenth at gcc dot gnu.org
                   ` (11 subsequent siblings)
  12 siblings, 0 replies; 14+ messages in thread
From: glisse at gcc dot gnu.org @ 2020-08-07  6:03 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #1 from Marc Glisse <glisse at gcc dot gnu.org> ---
What you could do, even if it is private code, is reduce it
(https://gcc.gnu.org/wiki/A_guide_to_testcase_reduction) until it is very small
and doesn't give away any IP, and then post it. Otherwise, there is not much we
can do from your report and we are probably just going to close it...

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

* [Bug tree-optimization/96513] building terminated with -O3
  2020-08-07  2:31 [Bug c/96513] New: building terminated with -O3 zhenglin.huang at qdreamer dot com
  2020-08-07  6:03 ` [Bug tree-optimization/96513] " glisse at gcc dot gnu.org
@ 2020-08-07  7:16 ` rguenth at gcc dot gnu.org
  2020-08-12  7:39 ` zhenglin.huang at qdreamer dot com
                   ` (10 subsequent siblings)
  12 siblings, 0 replies; 14+ messages in thread
From: rguenth at gcc dot gnu.org @ 2020-08-07  7:16 UTC (permalink / raw)
  To: gcc-bugs

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |WAITING
     Ever confirmed|0                           |1
   Last reconfirmed|                            |2020-08-07

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

* [Bug tree-optimization/96513] building terminated with -O3
  2020-08-07  2:31 [Bug c/96513] New: building terminated with -O3 zhenglin.huang at qdreamer dot com
  2020-08-07  6:03 ` [Bug tree-optimization/96513] " glisse at gcc dot gnu.org
  2020-08-07  7:16 ` rguenth at gcc dot gnu.org
@ 2020-08-12  7:39 ` zhenglin.huang at qdreamer dot com
  2020-08-12  7:40 ` zhenglin.huang at qdreamer dot com
                   ` (9 subsequent siblings)
  12 siblings, 0 replies; 14+ messages in thread
From: zhenglin.huang at qdreamer dot com @ 2020-08-12  7:39 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #2 from zhenglin.huang at qdreamer dot com ---
Created attachment 49047
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=49047&action=edit
gcc compile bad case

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

* [Bug tree-optimization/96513] building terminated with -O3
  2020-08-07  2:31 [Bug c/96513] New: building terminated with -O3 zhenglin.huang at qdreamer dot com
                   ` (2 preceding siblings ...)
  2020-08-12  7:39 ` zhenglin.huang at qdreamer dot com
@ 2020-08-12  7:40 ` zhenglin.huang at qdreamer dot com
  2020-08-12  7:59 ` glisse at gcc dot gnu.org
                   ` (8 subsequent siblings)
  12 siblings, 0 replies; 14+ messages in thread
From: zhenglin.huang at qdreamer dot com @ 2020-08-12  7:40 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #3 from zhenglin.huang at qdreamer dot com ---
as you suggest, I post the reduce code.

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

* [Bug tree-optimization/96513] building terminated with -O3
  2020-08-07  2:31 [Bug c/96513] New: building terminated with -O3 zhenglin.huang at qdreamer dot com
                   ` (3 preceding siblings ...)
  2020-08-12  7:40 ` zhenglin.huang at qdreamer dot com
@ 2020-08-12  7:59 ` glisse at gcc dot gnu.org
  2020-08-12  8:11 ` [Bug tree-optimization/96513] [9/10 Regression] ICE in vect_get_vec_def_for_operand_1, at tree-vect-stmts.c:1475 since r9-3644-g4dd7c0dcd87c86aa marxin at gcc dot gnu.org
                   ` (7 subsequent siblings)
  12 siblings, 0 replies; 14+ messages in thread
From: glisse at gcc dot gnu.org @ 2020-08-12  7:59 UTC (permalink / raw)
  To: gcc-bugs

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

Marc Glisse <glisse at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
      Known to fail|                            |10.1.0, 9.3.0
     Ever confirmed|1                           |0
             Status|WAITING                     |UNCONFIRMED

--- Comment #4 from Marc Glisse <glisse at gcc dot gnu.org> ---
Thanks. It looks like it is already fixed on master?

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

* [Bug tree-optimization/96513] [9/10 Regression] ICE in vect_get_vec_def_for_operand_1, at tree-vect-stmts.c:1475 since r9-3644-g4dd7c0dcd87c86aa
  2020-08-07  2:31 [Bug c/96513] New: building terminated with -O3 zhenglin.huang at qdreamer dot com
                   ` (4 preceding siblings ...)
  2020-08-12  7:59 ` glisse at gcc dot gnu.org
@ 2020-08-12  8:11 ` marxin at gcc dot gnu.org
  2021-04-30  8:08 ` rguenth at gcc dot gnu.org
                   ` (6 subsequent siblings)
  12 siblings, 0 replies; 14+ messages in thread
From: marxin at gcc dot gnu.org @ 2020-08-12  8:11 UTC (permalink / raw)
  To: gcc-bugs

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

Martin Liška <marxin at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
      Known to work|                            |11.0
   Target Milestone|---                         |9.4
   Last reconfirmed|2020-08-07 00:00:00         |2020-08-12
     Ever confirmed|0                           |1
                 CC|                            |rguenth at gcc dot gnu.org
             Status|UNCONFIRMED                 |NEW
            Summary|building terminated with    |[9/10 Regression] ICE in
                   |-O3                         |vect_get_vec_def_for_operan
                   |                            |d_1, at
                   |                            |tree-vect-stmts.c:1475
                   |                            |since
                   |                            |r9-3644-g4dd7c0dcd87c86aa

--- Comment #5 from Martin Liška <marxin at gcc dot gnu.org> ---
Started with r9-3644-g4dd7c0dcd87c86aa and got fixed on master with
r11-72-gfae545fb03397034.
It's still ICEing on gcc-9 and gcc-10 branches.

Thank you for the report!

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

* [Bug tree-optimization/96513] [9/10 Regression] ICE in vect_get_vec_def_for_operand_1, at tree-vect-stmts.c:1475 since r9-3644-g4dd7c0dcd87c86aa
  2020-08-07  2:31 [Bug c/96513] New: building terminated with -O3 zhenglin.huang at qdreamer dot com
                   ` (5 preceding siblings ...)
  2020-08-12  8:11 ` [Bug tree-optimization/96513] [9/10 Regression] ICE in vect_get_vec_def_for_operand_1, at tree-vect-stmts.c:1475 since r9-3644-g4dd7c0dcd87c86aa marxin at gcc dot gnu.org
@ 2021-04-30  8:08 ` rguenth at gcc dot gnu.org
  2021-04-30  9:05 ` rguenth at gcc dot gnu.org
                   ` (5 subsequent siblings)
  12 siblings, 0 replies; 14+ messages in thread
From: rguenth at gcc dot gnu.org @ 2021-04-30  8:08 UTC (permalink / raw)
  To: gcc-bugs

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Priority|P3                          |P2
           Assignee|unassigned at gcc dot gnu.org      |rguenth at gcc dot gnu.org
             Status|NEW                         |ASSIGNED

--- Comment #6 from Richard Biener <rguenth at gcc dot gnu.org> ---
I will see what to do.

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

* [Bug tree-optimization/96513] [9/10 Regression] ICE in vect_get_vec_def_for_operand_1, at tree-vect-stmts.c:1475 since r9-3644-g4dd7c0dcd87c86aa
  2020-08-07  2:31 [Bug c/96513] New: building terminated with -O3 zhenglin.huang at qdreamer dot com
                   ` (6 preceding siblings ...)
  2021-04-30  8:08 ` rguenth at gcc dot gnu.org
@ 2021-04-30  9:05 ` rguenth at gcc dot gnu.org
  2021-04-30  9:15 ` cvs-commit at gcc dot gnu.org
                   ` (4 subsequent siblings)
  12 siblings, 0 replies; 14+ messages in thread
From: rguenth at gcc dot gnu.org @ 2021-04-30  9:05 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #7 from Richard Biener <rguenth at gcc dot gnu.org> ---
Clearly the old hybrid detection could never have worked with pattern
sequences.

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

* [Bug tree-optimization/96513] [9/10 Regression] ICE in vect_get_vec_def_for_operand_1, at tree-vect-stmts.c:1475 since r9-3644-g4dd7c0dcd87c86aa
  2020-08-07  2:31 [Bug c/96513] New: building terminated with -O3 zhenglin.huang at qdreamer dot com
                   ` (7 preceding siblings ...)
  2021-04-30  9:05 ` rguenth at gcc dot gnu.org
@ 2021-04-30  9:15 ` cvs-commit at gcc dot gnu.org
  2021-04-30  9:16 ` cvs-commit at gcc dot gnu.org
                   ` (3 subsequent siblings)
  12 siblings, 0 replies; 14+ messages in thread
From: cvs-commit at gcc dot gnu.org @ 2021-04-30  9:15 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #8 from CVS Commits <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by Richard Biener <rguenth@gcc.gnu.org>:

https://gcc.gnu.org/g:b9bc4467cc78201f362b5390d53640b0feaa8d40

commit r12-312-gb9bc4467cc78201f362b5390d53640b0feaa8d40
Author: Richard Biener <rguenther@suse.de>
Date:   Fri Apr 30 11:13:42 2021 +0200

    tree-optimization/96513 - add testcase for fixed bug

    This adds a testcase for a bug that was fixed with the
    hybrid SLP detection rewrite.

    2021-04-30  Richard Biener  <rguenther@suse.de>

            PR tree-optimization/96513
            * gcc.dg/torture/pr96513.c: New testcase.

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

* [Bug tree-optimization/96513] [9/10 Regression] ICE in vect_get_vec_def_for_operand_1, at tree-vect-stmts.c:1475 since r9-3644-g4dd7c0dcd87c86aa
  2020-08-07  2:31 [Bug c/96513] New: building terminated with -O3 zhenglin.huang at qdreamer dot com
                   ` (8 preceding siblings ...)
  2021-04-30  9:15 ` cvs-commit at gcc dot gnu.org
@ 2021-04-30  9:16 ` cvs-commit at gcc dot gnu.org
  2021-04-30 11:00 ` cvs-commit at gcc dot gnu.org
                   ` (2 subsequent siblings)
  12 siblings, 0 replies; 14+ messages in thread
From: cvs-commit at gcc dot gnu.org @ 2021-04-30  9:16 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #9 from CVS Commits <cvs-commit at gcc dot gnu.org> ---
The releases/gcc-11 branch has been updated by Richard Biener
<rguenth@gcc.gnu.org>:

https://gcc.gnu.org/g:c5aa0e1416d9a9704e4846ca2ae722403684fec8

commit r11-8334-gc5aa0e1416d9a9704e4846ca2ae722403684fec8
Author: Richard Biener <rguenther@suse.de>
Date:   Fri Apr 30 11:13:42 2021 +0200

    tree-optimization/96513 - add testcase for fixed bug

    This adds a testcase for a bug that was fixed with the
    hybrid SLP detection rewrite.

    2021-04-30  Richard Biener  <rguenther@suse.de>

            PR tree-optimization/96513
            * gcc.dg/torture/pr96513.c: New testcase.

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

* [Bug tree-optimization/96513] [9/10 Regression] ICE in vect_get_vec_def_for_operand_1, at tree-vect-stmts.c:1475 since r9-3644-g4dd7c0dcd87c86aa
  2020-08-07  2:31 [Bug c/96513] New: building terminated with -O3 zhenglin.huang at qdreamer dot com
                   ` (9 preceding siblings ...)
  2021-04-30  9:16 ` cvs-commit at gcc dot gnu.org
@ 2021-04-30 11:00 ` cvs-commit at gcc dot gnu.org
  2021-05-18  7:05 ` [Bug tree-optimization/96513] [9 " cvs-commit at gcc dot gnu.org
  2021-05-18  7:06 ` rguenth at gcc dot gnu.org
  12 siblings, 0 replies; 14+ messages in thread
From: cvs-commit at gcc dot gnu.org @ 2021-04-30 11:00 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #10 from CVS Commits <cvs-commit at gcc dot gnu.org> ---
The releases/gcc-10 branch has been updated by Richard Biener
<rguenth@gcc.gnu.org>:

https://gcc.gnu.org/g:e1a39b7b6c8ea86dee38c8cfd70f5b86d4024a94

commit r10-9782-ge1a39b7b6c8ea86dee38c8cfd70f5b86d4024a94
Author: Richard Biener <rguenther@suse.de>
Date:   Wed Mar 25 14:41:51 2020 +0100

    tree-optimization/96513 - rewrite hybrid SLP detection

    This rewrites hybrid SLP detection to be simpler and cope with
    group size changes in the SLP graph.  In particular detection
    works starting from non-SLP stmts following use->def chains
    rather than walking the SLP graph and following def->use chains.

    This picks a rewrite from GCC 11 for the old code didn't handle
    pattern sequences correctly.

    2020-05-05  Richard Biener  <rguenther@suse.de>

            PR tree-optimization/96513
            * tree-vect-slp.c (struct vdhs_data): New.
            (vect_detect_hybrid_slp): New walker.
            (vect_detect_hybrid_slp): Rewrite.

            * gcc.dg/torture/pr96513.c: New testcase.

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

* [Bug tree-optimization/96513] [9 Regression] ICE in vect_get_vec_def_for_operand_1, at tree-vect-stmts.c:1475 since r9-3644-g4dd7c0dcd87c86aa
  2020-08-07  2:31 [Bug c/96513] New: building terminated with -O3 zhenglin.huang at qdreamer dot com
                   ` (10 preceding siblings ...)
  2021-04-30 11:00 ` cvs-commit at gcc dot gnu.org
@ 2021-05-18  7:05 ` cvs-commit at gcc dot gnu.org
  2021-05-18  7:06 ` rguenth at gcc dot gnu.org
  12 siblings, 0 replies; 14+ messages in thread
From: cvs-commit at gcc dot gnu.org @ 2021-05-18  7:05 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #11 from CVS Commits <cvs-commit at gcc dot gnu.org> ---
The releases/gcc-9 branch has been updated by Richard Biener
<rguenth@gcc.gnu.org>:

https://gcc.gnu.org/g:88f14ec71e3cd2bc1973177ec180aa5605866358

commit r9-9539-g88f14ec71e3cd2bc1973177ec180aa5605866358
Author: Richard Biener <rguenther@suse.de>
Date:   Wed Mar 25 14:41:51 2020 +0100

    tree-optimization/96513 - rewrite hybrid SLP detection

    This rewrites hybrid SLP detection to be simpler and cope with
    group size changes in the SLP graph.  In particular detection
    works starting from non-SLP stmts following use->def chains
    rather than walking the SLP graph and following def->use chains.

    This picks a rewrite from GCC 11 for the old code didn't handle
    pattern sequences correctly.

    2020-05-05  Richard Biener  <rguenther@suse.de>

            PR tree-optimization/96513
            * tree-vect-slp.c (struct vdhs_data): New.
            (vect_detect_hybrid_slp): New walker.
            (vect_detect_hybrid_slp): Rewrite.

            * gcc.dg/torture/pr96513.c: New testcase.

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

* [Bug tree-optimization/96513] [9 Regression] ICE in vect_get_vec_def_for_operand_1, at tree-vect-stmts.c:1475 since r9-3644-g4dd7c0dcd87c86aa
  2020-08-07  2:31 [Bug c/96513] New: building terminated with -O3 zhenglin.huang at qdreamer dot com
                   ` (11 preceding siblings ...)
  2021-05-18  7:05 ` [Bug tree-optimization/96513] [9 " cvs-commit at gcc dot gnu.org
@ 2021-05-18  7:06 ` rguenth at gcc dot gnu.org
  12 siblings, 0 replies; 14+ messages in thread
From: rguenth at gcc dot gnu.org @ 2021-05-18  7:06 UTC (permalink / raw)
  To: gcc-bugs

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
         Resolution|---                         |FIXED
             Status|ASSIGNED                    |RESOLVED

--- Comment #12 from Richard Biener <rguenth at gcc dot gnu.org> ---
Fixed.

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

end of thread, other threads:[~2021-05-18  7:06 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-08-07  2:31 [Bug c/96513] New: building terminated with -O3 zhenglin.huang at qdreamer dot com
2020-08-07  6:03 ` [Bug tree-optimization/96513] " glisse at gcc dot gnu.org
2020-08-07  7:16 ` rguenth at gcc dot gnu.org
2020-08-12  7:39 ` zhenglin.huang at qdreamer dot com
2020-08-12  7:40 ` zhenglin.huang at qdreamer dot com
2020-08-12  7:59 ` glisse at gcc dot gnu.org
2020-08-12  8:11 ` [Bug tree-optimization/96513] [9/10 Regression] ICE in vect_get_vec_def_for_operand_1, at tree-vect-stmts.c:1475 since r9-3644-g4dd7c0dcd87c86aa marxin at gcc dot gnu.org
2021-04-30  8:08 ` rguenth at gcc dot gnu.org
2021-04-30  9:05 ` rguenth at gcc dot gnu.org
2021-04-30  9:15 ` cvs-commit at gcc dot gnu.org
2021-04-30  9:16 ` cvs-commit at gcc dot gnu.org
2021-04-30 11:00 ` cvs-commit at gcc dot gnu.org
2021-05-18  7:05 ` [Bug tree-optimization/96513] [9 " cvs-commit at gcc dot gnu.org
2021-05-18  7:06 ` rguenth 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).