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

Martin Jambor <jamborm at gcc dot gnu.org> changed:

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

--- Comment #5 from Martin Jambor <jamborm at gcc dot gnu.org> ---
It's because we are materializing:

#7  0x00000000010fbcb6 in tree_function_versioning (
    old_decl=<function_decl 0x7ffff74c2700 throwError  uid: 4586>, 
    new_decl=<function_decl 0x7ffff74d5900 throwError.constprop.isra  uid:
4724>, tree_map=0x0, 
    param_adjustments=0x7ffff749fe20, update_clones=true, blocks_to_copy=0x0,
new_entry=0x0)
    at /home/mjambor/gcc/icln/src/gcc/tree-inline.c:6279
6279      copy_body (&id, ENTRY_BLOCK_PTR_FOR_FN (cfun), EXIT_BLOCK_PTR_FOR_FN
(cfun),
(gdb) p new_version_node->debug()
_ZN3KJS10throwErrorEPNS_9ExecStateENS_9ErrorTypeERK7QString.constprop.0.isra.0/1877
(throwError.constprop.isra) @0x7ffff75179a0
  Type: function
  Body removed by symtab_remove_unreachable_nodes

  ^^^^^ this.  And the constprop clone is gone... and we act as if that was the
body from which we create a version... and that does not work.

Reply via email to