http://gcc.gnu.org/bugzilla/show_bug.cgi?id=18079
--- Comment #5 from Marek Polacek <mpolacek at gcc dot gnu.org> --- Author: mpolacek Date: Fri Apr 25 11:04:40 2014 New Revision: 209796 URL: http://gcc.gnu.org/viewcvs?rev=209796&root=gcc&view=rev Log: 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. Added: trunk/gcc/testsuite/gcc.dg/pr18079-2.c trunk/gcc/testsuite/gcc.dg/pr18079.c Modified: trunk/gcc/c-family/ChangeLog trunk/gcc/c-family/c-common.c trunk/gcc/c/ChangeLog trunk/gcc/c/c-decl.c trunk/gcc/testsuite/ChangeLog