re PR c++/61564 (#pragma GCC optimize ("-fno-lto") causes the compiler to crash)
authorRichard Biener <rguenther@suse.de>
Tue, 7 Jun 2016 12:41:46 +0000 (12:41 +0000)
committerRichard Biener <rguenth@gcc.gnu.org>
Tue, 7 Jun 2016 12:41:46 +0000 (12:41 +0000)
commitbfd67b47314d862a8de101a96b39c6efe543f92e
tree5c06cbe701912bec4befdebe7c3a65237f2f14cc
parent6dc046586724bc68108d481eb0c75238fb641892
re PR c++/61564 (#pragma GCC optimize ("-fno-lto") causes the compiler to crash)

2016-06-07  Richard Biener  <rguenther@suse.de>

PR c/61564
* c-common.c (parse_optimize_options): Only apply CL_OPTIMIZATION
options and warn about others.
* common.opt (ffast-math): Make Optimization.

* gcc.dg/Wpragmas-1.c: New testcase.
* gcc.dg/Wattributes-4.c: Likewise.
* gcc.dg/ipa/pr70646.c: Drop optimize pragma in favor of dg-option
entry.

From-SVN: r237174
gcc/ChangeLog
gcc/c-family/ChangeLog
gcc/c-family/c-common.c
gcc/common.opt
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/Wattributes-4.c [new file with mode: 0644]
gcc/testsuite/gcc.dg/Wpragmas-1.c [new file with mode: 0644]
gcc/testsuite/gcc.dg/ipa/pr70646.c