PR ipa/92799 - ICE on a weakref function definition followed by a declaration
authorMartin Sebor <msebor@redhat.com>
Wed, 18 Mar 2020 20:47:29 +0000 (14:47 -0600)
committerMartin Sebor <msebor@redhat.com>
Wed, 18 Mar 2020 20:47:29 +0000 (14:47 -0600)
commit3512dc0108afbed3bece2e9fa1719fb3ce1d73d9
treecda4737627e690c9602d88bf15d77ade17d4b108
parent7a5fffa5ed0a8edfca772d43465d2c9b55bb23cc
PR ipa/92799 - ICE on a weakref function definition followed by a declaration

gcc/testsuite/ChangeLog:

PR ipa/92799
* gcc.dg/attr-weakref-5.c: New test.

gcc/ChangeLog:

PR ipa/92799
* cgraphunit.c (process_function_and_variable_attributes): Also
complain about weakref function definitions and drop all effects
of the attribute.
gcc/ChangeLog
gcc/cgraphunit.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/attr-weakref-5.c [new file with mode: 0644]