public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c/107224] New: ICE: verify_cgraph_node failed with -Og
@ 2022-10-11 22:24 andres at anarazel dot de
  2022-10-11 23:19 ` [Bug ipa/107224] [13 Regression] " pinskia at gcc dot gnu.org
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: andres at anarazel dot de @ 2022-10-11 22:24 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 107224
           Summary: ICE: verify_cgraph_node failed with -Og
           Product: gcc
           Version: 13.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c
          Assignee: unassigned at gcc dot gnu.org
          Reporter: andres at anarazel dot de
  Target Milestone: ---

Created attachment 53693
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=53693&action=edit
reproducer

Hi,

When building postgres with gcc 13 I get a lot of ICEs. I reproduced this on
today's master (53955284c03) and reduced one of the failing files with cvise.

$ ~/build/gcc-master/install/bin/gcc -Og -c gindatapage.i -o gindatapage.o
[bunch of warnings due to cvise]
 <function_decl 0x7f3b8deebf00 __builtin_trap
    type <function_type 0x7f3b8de315e8
        type <void_type 0x7f3b8de21f18 void VOID
            align:8 warn_if_not_align:0 symtab:0 alias-set -1 canonical-type
0x7f3b8de21f18
            pointer_to_this <pointer_type 0x7f3b8de29000>>
        QI
        size <integer_cst 0x7f3b8de02e58 constant 8>
        unit-size <integer_cst 0x7f3b8de02e70 constant 1>
        align:8 warn_if_not_align:0 symtab:0 alias-set -1 canonical-type
0x7f3b8de315e8
        arg-types <tree_list 0x7f3b8de1dcd0 value <void_type 0x7f3b8de21f18
void>>>
    volatile nothrow public external built-in decl_6 QI <built-in>:0:0
    align:8 warn_if_not_align:0 built-in: BUILT_IN_NORMAL:BUILT_IN_TRAP context
<translation_unit_decl 0x7f3b8de10258 gindatapage.i>
    attributes <tree_list 0x7f3b8deed168
        purpose <identifier_node 0x7f3b8de2dbe0 nothrow>
        chain <tree_list 0x7f3b8deed140
            purpose <identifier_node 0x7f3b8de2dc30 leaf>
            chain <tree_list 0x7f3b8deed118
                purpose <identifier_node 0x7f3b8de2db90 noreturn>
                chain <tree_list 0x7f3b8deed0f0
                    purpose <identifier_node 0x7f3b8de2da00 cold>>>>> chain
<function_decl 0x7f3b8deee000 __builtin_unreachable>>
 Instead of: <function_decl 0x7f3b8df44700 ExceptionalCondition
    type <function_type 0x7f3b8de30930
        type <integer_type 0x7f3b8de215e8 int public SI
            size <integer_cst 0x7f3b8de02fa8 constant 32>
            unit-size <integer_cst 0x7f3b8de02fc0 constant 4>
            align:32 warn_if_not_align:0 symtab:0 alias-set -1 canonical-type
0x7f3b8de215e8 precision:32 min <integer_cst 0x7f3b8de02f60 -2147483648> max
<integer_cst 0x7f3b8de02f78 2147483647>
            pointer_to_this <pointer_type 0x7f3b8de29a80>>
        QI
        size <integer_cst 0x7f3b8de02e58 constant 8>
        unit-size <integer_cst 0x7f3b8de02e70 constant 1>
        align:8 warn_if_not_align:0 symtab:0 alias-set -1 canonical-type
0x7f3b8de30930
        pointer_to_this <pointer_type 0x7f3b8df3fd20>>
    addressable used public external decl_2 decl_5 QI gindatapage.i:3:5 align:8
warn_if_not_align:0 chain <function_decl 0x7f3b8df44900
dataBeginPlaceToPage_maxOldItem>>
ItemPointerSet/0 (ItemPointerSet)
  Type: function definition analyzed
  Visibility: semantic_interposition external public
  References: 
  Referring: 
  Function ItemPointerSet/0 is inline copy in dataBeginPlaceToPage_maxOldItem/1
  Availability: available
  Function flags: body
  Called by: dataBeginPlaceToPage_maxOldItem/1 (inlined) 
  Calls: __builtin_trap/3 (0 (precise),1.00 per call) 
during GIMPLE pass: einline
gindatapage.i:6:3: internal compiler error: verify_cgraph_node failed
0xa35b90 cgraph_node::verify_node()
        /home/andres/src/gcc/gcc/cgraph.cc:3881
0xa25804 symtab_node::verify()
        /home/andres/src/gcc/gcc/symtab.cc:1360
0xf5b0da expand_call_inline
        /home/andres/src/gcc/gcc/tree-inline.cc:4912
0xf5dbd6 gimple_expand_calls_inline
        /home/andres/src/gcc/gcc/tree-inline.cc:5318
0xf5dbd6 optimize_inline_calls(tree_node*)
        /home/andres/src/gcc/gcc/tree-inline.cc:5490
0x1d277ed early_inliner(function*)
        /home/andres/src/gcc/gcc/ipa-inline.cc:3038

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

* [Bug ipa/107224] [13 Regression] ICE: verify_cgraph_node failed with -Og
  2022-10-11 22:24 [Bug c/107224] New: ICE: verify_cgraph_node failed with -Og andres at anarazel dot de
@ 2022-10-11 23:19 ` pinskia at gcc dot gnu.org
  2022-10-11 23:20 ` pinskia at gcc dot gnu.org
  2022-10-11 23:20 ` pinskia at gcc dot gnu.org
  2 siblings, 0 replies; 4+ messages in thread
From: pinskia at gcc dot gnu.org @ 2022-10-11 23:19 UTC (permalink / raw)
  To: gcc-bugs

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
            Summary|ICE: verify_cgraph_node     |[13 Regression] ICE:
                   |failed with -Og             |verify_cgraph_node failed
                   |                            |with -Og
   Target Milestone|---                         |13.0

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

* [Bug ipa/107224] [13 Regression] ICE: verify_cgraph_node failed with -Og
  2022-10-11 22:24 [Bug c/107224] New: ICE: verify_cgraph_node failed with -Og andres at anarazel dot de
  2022-10-11 23:19 ` [Bug ipa/107224] [13 Regression] " pinskia at gcc dot gnu.org
@ 2022-10-11 23:20 ` pinskia at gcc dot gnu.org
  2022-10-11 23:20 ` pinskia at gcc dot gnu.org
  2 siblings, 0 replies; 4+ messages in thread
From: pinskia at gcc dot gnu.org @ 2022-10-11 23:20 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
The full ICE is:
<source>: In function 'dataBeginPlaceToPage_maxOldItem':
<source>:6:3: error: edge points to wrong declaration:
    6 |   ItemPointerSet(dataBeginPlaceToPage_maxOldItem);
      |   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
 <function_decl 0x7f6525e97f00 __builtin_trap
    type <function_type 0x7f6525ddd690
        type <void_type 0x7f6525dcdf18 void VOID
            align:8 warn_if_not_align:0 symtab:0 alias-set -1 canonical-type
0x7f6525dcdf18
            pointer_to_this <pointer_type 0x7f6525dd5000>>
        QI
        size <integer_cst 0x7f6525daee58 constant 8>
        unit-size <integer_cst 0x7f6525daee70 constant 1>
        align:8 warn_if_not_align:0 symtab:0 alias-set -1 canonical-type
0x7f6525ddd690
        arg-types <tree_list 0x7f6525dc9cd0 value <void_type 0x7f6525dcdf18
void>>>
    volatile nothrow public external built-in decl_6 QI <built-in>:0:0
    align:8 warn_if_not_align:0 built-in: BUILT_IN_NORMAL:BUILT_IN_TRAP context
<translation_unit_decl 0x7f6525dbcc30 <source>>
    attributes <tree_list 0x7f6525e99168
        purpose <identifier_node 0x7f6525dd9c30 nothrow>
        chain <tree_list 0x7f6525e99140
            purpose <identifier_node 0x7f6525dd9c80 leaf>
            chain <tree_list 0x7f6525e99118
                purpose <identifier_node 0x7f6525dd9be0 noreturn>
                chain <tree_list 0x7f6525e990f0
                    purpose <identifier_node 0x7f6525dd9a50 cold>>>>> chain
<function_decl 0x7f6525e9a000 __builtin_unreachable>>
 Instead of: <function_decl 0x7f6525ef0700 ExceptionalCondition
    type <function_type 0x7f6525dda9d8
        type <integer_type 0x7f6525dcd5e8 int asm_written public SI
            size <integer_cst 0x7f6525daefa8 constant 32>
            unit-size <integer_cst 0x7f6525daefc0 constant 4>
            align:32 warn_if_not_align:0 symtab:636507872 alias-set -1
canonical-type 0x7f6525dcd5e8 precision:32 min <integer_cst 0x7f6525daef60
-2147483648> max <integer_cst 0x7f6525daef78 2147483647>
            pointer_to_this <pointer_type 0x7f6525dd5a80>>
        QI
        size <integer_cst 0x7f6525daee58 constant 8>
        unit-size <integer_cst 0x7f6525daee70 constant 1>
        align:8 warn_if_not_align:0 symtab:0 alias-set -1 canonical-type
0x7f6525dda9d8
        pointer_to_this <pointer_type 0x7f6525efa3f0>>
    addressable used public external decl_2 decl_5 QI <source>:3:5 align:8
warn_if_not_align:0 chain <function_decl 0x7f6525ef0900
dataBeginPlaceToPage_maxOldItem>>
ItemPointerSet/0 (ItemPointerSet)
  Type: function definition analyzed
  Visibility: semantic_interposition external public
  References: 
  Referring: 
  Function ItemPointerSet/0 is inline copy in dataBeginPlaceToPage_maxOldItem/1
  Availability: available
  Function flags: body
  Called by: dataBeginPlaceToPage_maxOldItem/1 (inlined) 
  Calls: __builtin_trap/3 (0 (precise),1.00 per call) 
during GIMPLE pass: einline
<source>:6:3: internal compiler error: verify_cgraph_node failed
0x204ebde internal_error(char const*, ...)
        ???:0
0xb69ba7 cgraph_node::verify_node()
        ???:0
0xb57e0c symtab_node::verify()
        ???:0
0x10cc531 optimize_inline_calls(tree_node*)
        ???:0
0x1eb22d6 early_inliner(function*)
        ???:0
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.
ASM generation compiler returned: 1
<source>: In function 'dataBeginPlaceToPage_maxOldItem':
<source>:6:3: error: edge points to wrong declaration:
    6 |   ItemPointerSet(dataBeginPlaceToPage_maxOldItem);
      |   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
 <function_decl 0x7f568b641f00 __builtin_trap
    type <function_type 0x7f568b587690
        type <void_type 0x7f568b577f18 void VOID
            align:8 warn_if_not_align:0 symtab:0 alias-set -1 canonical-type
0x7f568b577f18
            pointer_to_this <pointer_type 0x7f568b57f000>>
        QI
        size <integer_cst 0x7f568b558e58 constant 8>
        unit-size <integer_cst 0x7f568b558e70 constant 1>
        align:8 warn_if_not_align:0 symtab:0 alias-set -1 canonical-type
0x7f568b587690
        arg-types <tree_list 0x7f568b573cd0 value <void_type 0x7f568b577f18
void>>>
    volatile nothrow public external built-in decl_6 QI <built-in>:0:0
    align:8 warn_if_not_align:0 built-in: BUILT_IN_NORMAL:BUILT_IN_TRAP context
<translation_unit_decl 0x7f568b566c30 <source>>
    attributes <tree_list 0x7f568b643168
        purpose <identifier_node 0x7f568b583c30 nothrow>
        chain <tree_list 0x7f568b643140
            purpose <identifier_node 0x7f568b583c80 leaf>
            chain <tree_list 0x7f568b643118
                purpose <identifier_node 0x7f568b583be0 noreturn>
                chain <tree_list 0x7f568b6430f0
                    purpose <identifier_node 0x7f568b583a50 cold>>>>> chain
<function_decl 0x7f568b644000 __builtin_unreachable>>
 Instead of: <function_decl 0x7f568b69a700 ExceptionalCondition
    type <function_type 0x7f568b5849d8
        type <integer_type 0x7f568b5775e8 int asm_written public SI
            size <integer_cst 0x7f568b558fa8 constant 32>
            unit-size <integer_cst 0x7f568b558fc0 constant 4>
            align:32 warn_if_not_align:0 symtab:-1955924256 alias-set -1
canonical-type 0x7f568b5775e8 precision:32 min <integer_cst 0x7f568b558f60
-2147483648> max <integer_cst 0x7f568b558f78 2147483647>
            pointer_to_this <pointer_type 0x7f568b57fa80>>
        QI
        size <integer_cst 0x7f568b558e58 constant 8>
        unit-size <integer_cst 0x7f568b558e70 constant 1>
        align:8 warn_if_not_align:0 symtab:0 alias-set -1 canonical-type
0x7f568b5849d8
        pointer_to_this <pointer_type 0x7f568b6a43f0>>
    addressable used public external decl_2 decl_5 QI <source>:3:5 align:8
warn_if_not_align:0 chain <function_decl 0x7f568b69a900
dataBeginPlaceToPage_maxOldItem>>
ItemPointerSet/0 (ItemPointerSet)
  Type: function definition analyzed
  Visibility: semantic_interposition external public
  References: 
  Referring: 
  Function ItemPointerSet/0 is inline copy in dataBeginPlaceToPage_maxOldItem/1
  Availability: available
  Function flags: body
  Called by: dataBeginPlaceToPage_maxOldItem/1 (inlined) 
  Calls: __builtin_trap/3 (0 (precise),1.00 per call) 
during GIMPLE pass: einline
<source>:6:3: internal compiler error: verify_cgraph_node failed
0x204ebde internal_error(char const*, ...)
        ???:0
0xb69ba7 cgraph_node::verify_node()
        ???:0
0xb57e0c symtab_node::verify()
        ???:0
0x10cc531 optimize_inline_calls(tree_node*)
        ???:0
0x1eb22d6 early_inliner(function*)
        ???:0
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.
Execution build compiler returned: 1

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

* [Bug ipa/107224] [13 Regression] ICE: verify_cgraph_node failed with -Og
  2022-10-11 22:24 [Bug c/107224] New: ICE: verify_cgraph_node failed with -Og andres at anarazel dot de
  2022-10-11 23:19 ` [Bug ipa/107224] [13 Regression] " pinskia at gcc dot gnu.org
  2022-10-11 23:20 ` pinskia at gcc dot gnu.org
@ 2022-10-11 23:20 ` pinskia at gcc dot gnu.org
  2 siblings, 0 replies; 4+ messages in thread
From: pinskia at gcc dot gnu.org @ 2022-10-11 23:20 UTC (permalink / raw)
  To: gcc-bugs

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|---                         |DUPLICATE

--- Comment #2 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
And that is a dup of bug 106061.

*** This bug has been marked as a duplicate of bug 106061 ***

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

end of thread, other threads:[~2022-10-11 23:20 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-10-11 22:24 [Bug c/107224] New: ICE: verify_cgraph_node failed with -Og andres at anarazel dot de
2022-10-11 23:19 ` [Bug ipa/107224] [13 Regression] " pinskia at gcc dot gnu.org
2022-10-11 23:20 ` pinskia at gcc dot gnu.org
2022-10-11 23:20 ` pinskia 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).