re PR c/70255 (change of the order of summation of floating point numbers despite...
authorMarek Polacek <polacek@redhat.com>
Tue, 10 May 2016 10:22:16 +0000 (10:22 +0000)
committerMarek Polacek <mpolacek@gcc.gnu.org>
Tue, 10 May 2016 10:22:16 +0000 (10:22 +0000)
commitcf68d92c7bb339d89426558cae2ad731ae8f0508
tree2484ab32479d623f763dc2a8064fdd7d61b77910
parentbf1abda157fc40b9020da82ea35c087f2a442a95
re PR c/70255 (change of the order of summation of floating point numbers despite no-associative-math)

PR c/70255
* c-decl.c (diagnose_mismatched_decls): Warn for optimize attribute
on a declaration following the definition.

* gcc.dg/attr-opt-1.c: New test.

From-SVN: r236071
gcc/c/ChangeLog
gcc/c/c-decl.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/attr-opt-1.c [new file with mode: 0644]