public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug lto/116460] New: ppc64le: LTO ICE during GIMPLE pass: forwprop
@ 2024-08-22 15:35 ales.astone at gmail dot com
  2024-08-22 15:36 ` [Bug lto/116460] " ales.astone at gmail dot com
                   ` (27 more replies)
  0 siblings, 28 replies; 29+ messages in thread
From: ales.astone at gmail dot com @ 2024-08-22 15:35 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 116460
           Summary: ppc64le: LTO ICE during GIMPLE pass: forwprop
           Product: gcc
           Version: 14.2.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: lto
          Assignee: unassigned at gcc dot gnu.org
          Reporter: ales.astone at gmail dot com
  Target Milestone: ---

When recompiling https://github.com/esri/lerc on Ubuntu 24.10 with gcc-14 we
hit this LTO error:

during GIMPLE pass: forwprop
Lerc.cpp: In function 'EncodeInternal.constprop':
Lerc.cpp:606:9: internal compiler error: in build2, at tree.cc:5097
  606 | ErrCode Lerc::EncodeInternal(const T* pData, int version, int nDepth,
int nCols, int nRows, int nBands,
      |         ^
0x1074e99f internal_error(char const*, ...)
        ???:0
0x1074ead7 fancy_abort(char const*, int, char const*)
        ???:0
0x10887107 build2(tree_code, tree_node*, tree_node*, tree_node*)
        ???:0
0x10c7a91f gimple_assign_rhs_to_tree(gimple*)
        ???:0
0x10b97bd3 insert_debug_temp_for_var_def(gimple_stmt_iterator*, tree_node*)
        ???:0
0x1098a083 insert_debug_temps_for_defs(gimple_stmt_iterator*)
        ???:0
0x1098979f gsi_remove(gimple_stmt_iterator*, bool)
        ???:0
0x10a793eb simple_dce_from_worklist(bitmap_head*, bitmap_head*)
        ???:0

The command-line options required to trigger the error is: `-g -O3 -flto`. All
three must be enabled.

Steps to reproduce:
```
wget -qO- https://github.com/Esri/lerc/archive/refs/tags/v4.0.0.tar.gz | tar
xvz
cd lerc-4.0.0/src/LercLib
g++ -shared -fPIC -g -O3 -flto *.cpp Lerc1Decode/*.cpp
```

I could reproduce with the gcc-14 packages from Ubuntu 24.10 and Fedora 41.
I couldn't reproduce on any architecture but ppc64le.
It can be reproduced both on a ppc64le machine (qemu-user is good enough), or
by cross-compiling to ppc64le.

Attaching intermediate files.

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

end of thread, other threads:[~2024-09-18 12:08 UTC | newest]

Thread overview: 29+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-08-22 15:35 [Bug lto/116460] New: ppc64le: LTO ICE during GIMPLE pass: forwprop ales.astone at gmail dot com
2024-08-22 15:36 ` [Bug lto/116460] " ales.astone at gmail dot com
2024-08-22 15:40 ` [Bug middle-end/116460] " pinskia at gcc dot gnu.org
2024-08-22 15:57 ` ales.astone at gmail dot com
2024-08-22 18:24 ` [Bug tree-optimization/116460] " pinskia at gcc dot gnu.org
2024-08-23  7:28 ` ales.astone at gmail dot com
2024-08-23 22:11 ` pinskia at gcc dot gnu.org
2024-08-23 22:31 ` pinskia at gcc dot gnu.org
2024-08-23 23:25 ` [Bug tree-optimization/116460] [14/15 Regression] LTO ICE with -g " pinskia at gcc dot gnu.org
2024-08-24  7:06 ` pinskia at gcc dot gnu.org
2024-08-24  8:57 ` pinskia at gcc dot gnu.org
2024-08-24  9:31 ` pinskia at gcc dot gnu.org
2024-08-24  9:31 ` pinskia at gcc dot gnu.org
2024-08-25 21:13 ` pinskia at gcc dot gnu.org
2024-08-26  8:01 ` rguenth at gcc dot gnu.org
2024-08-26  8:16 ` rguenth at gcc dot gnu.org
2024-08-26  8:44 ` pinskia at gcc dot gnu.org
2024-08-26  8:50 ` rguenth at gcc dot gnu.org
2024-08-26 11:00 ` rguenth at gcc dot gnu.org
2024-08-26 11:19 ` rguenth at gcc dot gnu.org
2024-08-26 11:49 ` rguenth at gcc dot gnu.org
2024-08-26 12:42 ` cvs-commit at gcc dot gnu.org
2024-08-26 14:56 ` pinskia at gcc dot gnu.org
2024-08-27  7:14 ` cvs-commit at gcc dot gnu.org
2024-08-27  7:15 ` [Bug tree-optimization/116460] [14 " rguenth at gcc dot gnu.org
2024-09-03 13:56 ` ales.astone at gmail dot com
2024-09-03 14:39 ` rguenther at suse dot de
2024-09-18 12:07 ` cvs-commit at gcc dot gnu.org
2024-09-18 12:08 ` 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).