public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/104533] New: [12 Regression] ICE in update_vtable_references, at ipa-visibility.cc:383
@ 2022-02-14 19:55 gscfq@t-online.de
  2022-02-15  8:03 ` [Bug ipa/104533] " rguenth at gcc dot gnu.org
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: gscfq@t-online.de @ 2022-02-14 19:55 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 104533
           Summary: [12 Regression] ICE in update_vtable_references, at
                    ipa-visibility.cc:383
           Product: gcc
           Version: 12.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: gscfq@t-online.de
  Target Milestone: ---

Started between 20211114 and 20211121 :


$ cat z1.cc
struct B {
  virtual ~B();
};
__attribute__((target_clones("avx")))
B::~B() = default;


$ cat z2.cc
struct B {
  virtual ~B();
};
__attribute__((target_clones("sse","avx")))
B::~B() = default;


$ g++-12-20220213 -c z1.cc -fPIC -Ofast
during IPA pass: visibility
z1.cc:5:18: internal compiler error: Segmentation fault
    5 | B::~B() = default;
      |                  ^
0xda1fdf crash_signal
        ../../gcc/toplev.cc:322
0x19be64f update_vtable_references
        ../../gcc/ipa-visibility.cc:383
0x1029952 walk_tree_1(tree_node**, tree_node* (*)(tree_node**, int*, void*),
void*, hash_set<tree_node*, false, default_hash_traits<tree_node*> >*,
tree_node* (*)(tree_node**, int*, tree_node* (*)(tree_node**, int*, void*),
void*, hash_set<tree_node*, false, default_hash_traits<tree_node*> >*))
        ../../gcc/tree.cc:11070
0x1029b9c walk_tree_1(tree_node**, tree_node* (*)(tree_node**, int*, void*),
void*, hash_set<tree_node*, false, default_hash_traits<tree_node*> >*,
tree_node* (*)(tree_node**, int*, tree_node* (*)(tree_node**, int*, void*),
void*, hash_set<tree_node*, false, default_hash_traits<tree_node*> >*))
        ../../gcc/tree.cc:11157
0x19bf549 function_and_variable_visibility
        ../../gcc/ipa-visibility.cc:868

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

* [Bug ipa/104533] [12 Regression] ICE in update_vtable_references, at ipa-visibility.cc:383
  2022-02-14 19:55 [Bug c++/104533] New: [12 Regression] ICE in update_vtable_references, at ipa-visibility.cc:383 gscfq@t-online.de
@ 2022-02-15  8:03 ` rguenth at gcc dot gnu.org
  2022-02-16 10:06 ` pinskia at gcc dot gnu.org
                   ` (3 subsequent siblings)
  4 siblings, 0 replies; 6+ messages in thread
From: rguenth at gcc dot gnu.org @ 2022-02-15  8:03 UTC (permalink / raw)
  To: gcc-bugs

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
          Component|c++                         |ipa
   Target Milestone|---                         |12.0
                 CC|                            |marxin at gcc dot gnu.org

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

* [Bug ipa/104533] [12 Regression] ICE in update_vtable_references, at ipa-visibility.cc:383
  2022-02-14 19:55 [Bug c++/104533] New: [12 Regression] ICE in update_vtable_references, at ipa-visibility.cc:383 gscfq@t-online.de
  2022-02-15  8:03 ` [Bug ipa/104533] " rguenth at gcc dot gnu.org
@ 2022-02-16 10:06 ` pinskia at gcc dot gnu.org
  2022-02-22 10:12 ` [Bug ipa/104533] [12 Regression] ICE in update_vtable_references, at ipa-visibility.cc:383 since r12-2900-gfa28520fadb9405f marxin at gcc dot gnu.org
                   ` (2 subsequent siblings)
  4 siblings, 0 replies; 6+ messages in thread
From: pinskia at gcc dot gnu.org @ 2022-02-16 10:06 UTC (permalink / raw)
  To: gcc-bugs

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
     Ever confirmed|0                           |1
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2022-02-16
           Keywords|                            |ice-on-invalid-code

--- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
This is invalid code:
<source>:6:1: error: clones for 'target_clones' attribute cannot be created
    6 | B::~B(){}
      | ^
<source>:6:1: note: 'target_clones' cannot be combined with 'alias' attribute
<source>: In function '_ZN1BD0Ev.resolver':
<source>:6:9: sorry, unimplemented: virtual function multiversioning not
supported
    6 | B::~B(){}
      |         ^
<source>:6:9: sorry, unimplemented: virtual function multiversioning not
supported
<source>:6:9: sorry, unimplemented: virtual function multiversioning not
supported


Note I notice clang accepts the code but emits completely wrong stuff.

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

* [Bug ipa/104533] [12 Regression] ICE in update_vtable_references, at ipa-visibility.cc:383 since r12-2900-gfa28520fadb9405f
  2022-02-14 19:55 [Bug c++/104533] New: [12 Regression] ICE in update_vtable_references, at ipa-visibility.cc:383 gscfq@t-online.de
  2022-02-15  8:03 ` [Bug ipa/104533] " rguenth at gcc dot gnu.org
  2022-02-16 10:06 ` pinskia at gcc dot gnu.org
@ 2022-02-22 10:12 ` marxin at gcc dot gnu.org
  2022-03-01  9:10 ` cvs-commit at gcc dot gnu.org
  2022-03-01  9:11 ` marxin at gcc dot gnu.org
  4 siblings, 0 replies; 6+ messages in thread
From: marxin at gcc dot gnu.org @ 2022-02-22 10:12 UTC (permalink / raw)
  To: gcc-bugs

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
            Summary|[12 Regression] ICE in      |[12 Regression] ICE in
                   |update_vtable_references,   |update_vtable_references,
                   |at ipa-visibility.cc:383    |at ipa-visibility.cc:383
                   |                            |since
                   |                            |r12-2900-gfa28520fadb9405f
             Status|NEW                         |ASSIGNED
           Assignee|unassigned at gcc dot gnu.org      |marxin at gcc dot gnu.org

--- Comment #2 from Martin Liška <marxin at gcc dot gnu.org> ---
With:

g++ pr104533.C -c -fPIC -Ofast -fno-semantic-interposition

it crashes since r12-2900-gfa28520fadb9405f. I can take a look.

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

* [Bug ipa/104533] [12 Regression] ICE in update_vtable_references, at ipa-visibility.cc:383 since r12-2900-gfa28520fadb9405f
  2022-02-14 19:55 [Bug c++/104533] New: [12 Regression] ICE in update_vtable_references, at ipa-visibility.cc:383 gscfq@t-online.de
                   ` (2 preceding siblings ...)
  2022-02-22 10:12 ` [Bug ipa/104533] [12 Regression] ICE in update_vtable_references, at ipa-visibility.cc:383 since r12-2900-gfa28520fadb9405f marxin at gcc dot gnu.org
@ 2022-03-01  9:10 ` cvs-commit at gcc dot gnu.org
  2022-03-01  9:11 ` marxin at gcc dot gnu.org
  4 siblings, 0 replies; 6+ messages in thread
From: cvs-commit at gcc dot gnu.org @ 2022-03-01  9:10 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #3 from CVS Commits <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by Martin Liska <marxin@gcc.gnu.org>:

https://gcc.gnu.org/g:6df0c8d417fb33ea130e2957755a60483e9fd692

commit r12-7427-g6df0c8d417fb33ea130e2957755a60483e9fd692
Author: Martin Liska <mliska@suse.cz>
Date:   Mon Feb 28 13:27:22 2022 +0100

    ipa: Improve error handling for target_clone single value

            PR ipa/104533

    gcc/c-family/ChangeLog:

            * c-attribs.cc (handle_target_clones_attribute): Use
            get_target_clone_attr_len and report warning soon.

    gcc/ChangeLog:

            * multiple_target.cc (get_attr_len): Move to tree.c.
            (expand_target_clones): Remove single value checking.
            * tree.cc (get_target_clone_attr_len): New fn.
            * tree.h (get_target_clone_attr_len): Likewise.

    gcc/testsuite/ChangeLog:

            * g++.target/i386/pr104533.C: New test.

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

* [Bug ipa/104533] [12 Regression] ICE in update_vtable_references, at ipa-visibility.cc:383 since r12-2900-gfa28520fadb9405f
  2022-02-14 19:55 [Bug c++/104533] New: [12 Regression] ICE in update_vtable_references, at ipa-visibility.cc:383 gscfq@t-online.de
                   ` (3 preceding siblings ...)
  2022-03-01  9:10 ` cvs-commit at gcc dot gnu.org
@ 2022-03-01  9:11 ` marxin at gcc dot gnu.org
  4 siblings, 0 replies; 6+ messages in thread
From: marxin at gcc dot gnu.org @ 2022-03-01  9:11 UTC (permalink / raw)
  To: gcc-bugs

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

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

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

--- Comment #4 from Martin Liška <marxin at gcc dot gnu.org> ---
Fixed on master.

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

end of thread, other threads:[~2022-03-01  9:11 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-02-14 19:55 [Bug c++/104533] New: [12 Regression] ICE in update_vtable_references, at ipa-visibility.cc:383 gscfq@t-online.de
2022-02-15  8:03 ` [Bug ipa/104533] " rguenth at gcc dot gnu.org
2022-02-16 10:06 ` pinskia at gcc dot gnu.org
2022-02-22 10:12 ` [Bug ipa/104533] [12 Regression] ICE in update_vtable_references, at ipa-visibility.cc:383 since r12-2900-gfa28520fadb9405f marxin at gcc dot gnu.org
2022-03-01  9:10 ` cvs-commit at gcc dot gnu.org
2022-03-01  9:11 ` marxin 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).