re PR c/18079 (Contradicting function attributes (always_inline vs noinline))
authorMarek Polacek <polacek@redhat.com>
Fri, 25 Apr 2014 11:04:40 +0000 (11:04 +0000)
committerMarek Polacek <mpolacek@gcc.gnu.org>
Fri, 25 Apr 2014 11:04:40 +0000 (11:04 +0000)
commit45484dcfb14634ff30b409c58ecc754e9fd88b5c
treef5afc0c3e26bd0d19bac539f415596cf3bbeea28
parent707d775782ee1a899c86fe2477c5bfabb3231777
re PR c/18079 (Contradicting function attributes (always_inline vs noinline))

PR c/18079
c/
* c-decl.c (diagnose_mismatched_decls): Warn for mismatched
always_inline/noinline and hot/cold attributes.
c-family/
* c-common.c (handle_noinline_attribute): Warn if the attribute
conflicts with always_inline attribute.
(handle_always_inline_attribute): Warn if the attribute conflicts
with noinline attribute.
testsuite/
* gcc.dg/pr18079.c: New test.
* gcc.dg/pr18079-2.c: New test.

From-SVN: r209796
gcc/c-family/ChangeLog
gcc/c-family/c-common.c
gcc/c/ChangeLog
gcc/c/c-decl.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/pr18079-2.c [new file with mode: 0644]
gcc/testsuite/gcc.dg/pr18079.c [new file with mode: 0644]