public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug lto/114918] New: ICE when building gcl with LTO
@ 2024-05-02  7:26 sjames at gcc dot gnu.org
  2024-05-02  7:27 ` [Bug lto/114918] " sjames at gcc dot gnu.org
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: sjames at gcc dot gnu.org @ 2024-05-02  7:26 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 114918
           Summary: ICE when building gcl with LTO
           Product: gcc
           Version: 14.0
            Status: UNCONFIRMED
          Keywords: ice-checking
          Severity: normal
          Priority: P3
         Component: lto
          Assignee: unassigned at gcc dot gnu.org
          Reporter: sjames at gcc dot gnu.org
  Target Milestone: ---

Originally reported downstream in Gentoo at https://bugs.gentoo.org/931082 by
Agostino Sarubbo. We also had a rep

```
$ gcc -c ./block.i -flto
block.c:123:1: error: type variant has different ‘TREE_TYPE’
  123 | }
      | ^
 <function_type 0x7f1051642dc8
    type <pointer_type 0x7f105165ce70 object
        type <union_type 0x7f105165c930 lispunion VOID
            align:8 warn_if_not_align:0 symtab:0 alias-set 1 canonical-type
0x7f1051e3b540
            pointer_to_this <pointer_type 0x7f105165cbd0>>
        unsigned DI
        size <integer_cst 0x7f1051e02f48 constant 64>
        unit-size <integer_cst 0x7f1051e02f60 constant 8>
        align:64 warn_if_not_align:0 symtab:0 alias-set -1 canonical-type
0x7f1051e3b5e8
        pointer_to_this <pointer_type 0x7f10516711f8>>
    QI
    size <integer_cst 0x7f1051e25048 type <integer_type 0x7f1051e230a8
bitsizetype> constant 8>
    unit-size <integer_cst 0x7f1051e25060 type <integer_type 0x7f1051e23000
sizetype> constant 1>
    align:8 warn_if_not_align:0 symtab:0 alias-set -1 canonical-type
0x7f1051642e70
    arg-types <tree_list 0x7f1051c0c758 value <pointer_type 0x7f105165ce70
object>
        chain <tree_list 0x7f1051c0c730 value <pointer_type 0x7f105165ce70
object>
            chain <tree_list 0x7f1051c0c708 value <pointer_type 0x7f105165ce70
object>
                chain <tree_list 0x7f1051c0c6e0 value <pointer_type
0x7f105165ce70 object>
                    chain <tree_list 0x7f1051c0c6b8 value <integer_type
0x7f1051e3b0a8 ufixnum>>>>>>
    pointer_to_this <pointer_type 0x7f1051656888>>
block.c:123:1: error: type variant’s ‘TREE_TYPE’
 <pointer_type 0x7f105165ce70 object
    type <union_type 0x7f105165c930 lispunion VOID
        align:8 warn_if_not_align:0 symtab:0 alias-set 1 canonical-type
0x7f1051e3b540
        pointer_to_this <pointer_type 0x7f105165cbd0>>
    unsigned DI
    size <integer_cst 0x7f1051e02f48 type <integer_type 0x7f1051e230a8
bitsizetype> constant 64>
    unit-size <integer_cst 0x7f1051e02f60 type <integer_type 0x7f1051e23000
sizetype> constant 8>
    align:64 warn_if_not_align:0 symtab:0 alias-set -1 canonical-type
0x7f1051e3b5e8
    pointer_to_this <pointer_type 0x7f10516711f8>>
block.c:123:1: error: type’s ‘TREE_TYPE’
 <pointer_type 0x7f1051100540 object
    type <union_type 0x7f105165c930 lispunion VOID
        align:8 warn_if_not_align:0 symtab:0 alias-set 1 canonical-type
0x7f1051e3b540
        pointer_to_this <pointer_type 0x7f105165cbd0>>
    unsigned DI
    size <integer_cst 0x7f1051e02f48 type <integer_type 0x7f1051e230a8
bitsizetype> constant 64>
    unit-size <integer_cst 0x7f1051e02f60 type <integer_type 0x7f1051e23000
sizetype> constant 8>
    align:64 warn_if_not_align:0 symtab:0 alias-set -1 canonical-type
0x7f1051e3b5e8>
 <function_type 0x7f1051363a80
    type <pointer_type 0x7f1051100540 object
        type <union_type 0x7f105165c930 lispunion VOID
            align:8 warn_if_not_align:0 symtab:0 alias-set 1 canonical-type
0x7f1051e3b540
            pointer_to_this <pointer_type 0x7f105165cbd0>>
        unsigned DI
        size <integer_cst 0x7f1051e02f48 constant 64>
        unit-size <integer_cst 0x7f1051e02f60 constant 8>
        align:64 warn_if_not_align:0 symtab:0 alias-set -1 canonical-type
0x7f1051e3b5e8>
    volatile QI
    size <integer_cst 0x7f1051e25048 type <integer_type 0x7f1051e230a8
bitsizetype> constant 8>
    unit-size <integer_cst 0x7f1051e25060 type <integer_type 0x7f1051e23000
sizetype> constant 1>
    align:8 warn_if_not_align:0 symtab:0 alias-set -1 canonical-type
0x7f1051363b28
    arg-types <tree_list 0x7f1051c0c758
        value <pointer_type 0x7f105165ce70 object type <union_type
0x7f105165c930 lispunion>
            unsigned DI size <integer_cst 0x7f1051e02f48 64> unit-size
<integer_cst 0x7f1051e02f60 8>
            align:64 warn_if_not_align:0 symtab:0 alias-set -1 canonical-type
0x7f1051e3b5e8
            pointer_to_this <pointer_type 0x7f10516711f8>>
        chain <tree_list 0x7f1051c0c730 value <pointer_type 0x7f105165ce70
object>
            chain <tree_list 0x7f1051c0c708 value <pointer_type 0x7f105165ce70
object>
                chain <tree_list 0x7f1051c0c6e0 value <pointer_type
0x7f105165ce70 object>
                    chain <tree_list 0x7f1051c0c6b8 value <integer_type
0x7f1051e3b0a8 ufixnum>>>>>>
    pointer_to_this <pointer_type 0x7f1051363bd0>>
during IPA pass: *free_lang_data
block.c:123:1: internal compiler error: ‘verify_type’ failed
0x55c100d66912 verify_type(tree_node const*)
       
/usr/src/debug/sys-devel/gcc-14.0.1_pre20240430/gcc-14.1.0-RC-20240430/gcc/tree.cc:14395
0x55c102ce246b free_lang_data
       
/usr/src/debug/sys-devel/gcc-14.0.1_pre20240430/gcc-14.1.0-RC-20240430/gcc/ipa-free-lang-data.cc:1134
0x55c102ce246b execute
       
/usr/src/debug/sys-devel/gcc-14.0.1_pre20240430/gcc-14.1.0-RC-20240430/gcc/ipa-free-lang-data.cc:1176
Please submit a full bug report, with preprocessed source (by using
-freport-bug).
Please include the complete backtrace with any bug report.
See <https://bugs.gentoo.org/> for instructions.
```

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

* [Bug lto/114918] ICE when building gcl with LTO
  2024-05-02  7:26 [Bug lto/114918] New: ICE when building gcl with LTO sjames at gcc dot gnu.org
@ 2024-05-02  7:27 ` sjames at gcc dot gnu.org
  2024-05-02  7:27 ` sjames at gcc dot gnu.org
                   ` (3 subsequent siblings)
  4 siblings, 0 replies; 6+ messages in thread
From: sjames at gcc dot gnu.org @ 2024-05-02  7:27 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #1 from Sam James <sjames at gcc dot gnu.org> ---
Created attachment 58082
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=58082&action=edit
block.i.xz

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

* [Bug lto/114918] ICE when building gcl with LTO
  2024-05-02  7:26 [Bug lto/114918] New: ICE when building gcl with LTO sjames at gcc dot gnu.org
  2024-05-02  7:27 ` [Bug lto/114918] " sjames at gcc dot gnu.org
@ 2024-05-02  7:27 ` sjames at gcc dot gnu.org
  2024-05-02  7:56 ` sjames at gcc dot gnu.org
                   ` (2 subsequent siblings)
  4 siblings, 0 replies; 6+ messages in thread
From: sjames at gcc dot gnu.org @ 2024-05-02  7:27 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #2 from Sam James <sjames at gcc dot gnu.org> ---
oops:
> We also had a rep

We had another report of this, curiously again lisp, for ecl with
https://bugs.gentoo.org/931081. I haven't investigated that at all though.
Maybe it's a bundled copy of gcl in there or something.

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

* [Bug lto/114918] ICE when building gcl with LTO
  2024-05-02  7:26 [Bug lto/114918] New: ICE when building gcl with LTO sjames at gcc dot gnu.org
  2024-05-02  7:27 ` [Bug lto/114918] " sjames at gcc dot gnu.org
  2024-05-02  7:27 ` sjames at gcc dot gnu.org
@ 2024-05-02  7:56 ` sjames at gcc dot gnu.org
  2024-05-02  8:41 ` sjames at gcc dot gnu.org
  2024-05-02 11:33 ` rguenth at gcc dot gnu.org
  4 siblings, 0 replies; 6+ messages in thread
From: sjames at gcc dot gnu.org @ 2024-05-02  7:56 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #3 from Sam James <sjames at gcc dot gnu.org> ---
Reduced (!):
```
typedef struct lispunion *object;
struct lispunion {};
object Icall_gen_error_handler_noreturn() __attribute__((noreturn));
volatile object sLblock;
void(Fblock)(volatile object) { Icall_gen_error_handler_noreturn(); }
```

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

* [Bug lto/114918] ICE when building gcl with LTO
  2024-05-02  7:26 [Bug lto/114918] New: ICE when building gcl with LTO sjames at gcc dot gnu.org
                   ` (2 preceding siblings ...)
  2024-05-02  7:56 ` sjames at gcc dot gnu.org
@ 2024-05-02  8:41 ` sjames at gcc dot gnu.org
  2024-05-02 11:33 ` rguenth at gcc dot gnu.org
  4 siblings, 0 replies; 6+ messages in thread
From: sjames at gcc dot gnu.org @ 2024-05-02  8:41 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #4 from Sam James <sjames at gcc dot gnu.org> ---
*** Bug 114919 has been marked as a duplicate of this bug. ***

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

* [Bug lto/114918] ICE when building gcl with LTO
  2024-05-02  7:26 [Bug lto/114918] New: ICE when building gcl with LTO sjames at gcc dot gnu.org
                   ` (3 preceding siblings ...)
  2024-05-02  8:41 ` sjames at gcc dot gnu.org
@ 2024-05-02 11:33 ` rguenth at gcc dot gnu.org
  4 siblings, 0 replies; 6+ messages in thread
From: rguenth at gcc dot gnu.org @ 2024-05-02 11:33 UTC (permalink / raw)
  To: gcc-bugs

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
     Ever confirmed|0                           |1
   Last reconfirmed|                            |2024-05-02
             Status|UNCONFIRMED                 |NEW

--- Comment #5 from Richard Biener <rguenth at gcc dot gnu.org> ---
Note this requires -flto only because we don't reliably call verify_type on all
types.  -g doesn't help (dwarf2out also calls verify_type).

Confirmed.

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

end of thread, other threads:[~2024-05-02 11:33 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-05-02  7:26 [Bug lto/114918] New: ICE when building gcl with LTO sjames at gcc dot gnu.org
2024-05-02  7:27 ` [Bug lto/114918] " sjames at gcc dot gnu.org
2024-05-02  7:27 ` sjames at gcc dot gnu.org
2024-05-02  7:56 ` sjames at gcc dot gnu.org
2024-05-02  8:41 ` sjames at gcc dot gnu.org
2024-05-02 11:33 ` 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).