PR middle-end/81824 - Warn for missing attributes with function aliases
authorMartin Sebor <msebor@redhat.com>
Tue, 13 Nov 2018 19:57:51 +0000 (19:57 +0000)
committerMartin Sebor <msebor@gcc.gnu.org>
Tue, 13 Nov 2018 19:57:51 +0000 (12:57 -0700)
commitf9731de3db4c59ff0a241ce2c3d6f80aca5b5c28
treea1212b5c29022147c933bf559db408eba9345157
parentee8393f465b6b06cc16499f7f7cfcbc3dc797d9b
PR middle-end/81824 - Warn for missing attributes with function aliases

gcc/c-family/ChangeLog:

* c-attribs.c (handle_copy_attribute): Exclude inlining attributes.
(handle_tls_model_attribute): Improve diagnostics.

gcc/testsuite/ChangeLog:

* gcc.dg/attr-copy-5.c: New test.
* gcc.dg/tls/diag-6.c: Adjust expected diagnostics.

From-SVN: r266084
gcc/c-family/ChangeLog
gcc/c-family/c-attribs.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/attr-copy-5.c [new file with mode: 0644]
gcc/testsuite/gcc.dg/tls/diag-6.c