This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/61564] #pragma GCC optimize ("-fno-lto") causes the compiler to crash
- From: "rguenth at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Tue, 07 Jun 2016 12:42:18 +0000
- Subject: [Bug c++/61564] #pragma GCC optimize ("-fno-lto") causes the compiler to crash
- Auto-submitted: auto-generated
- References: <bug-61564-4 at http dot gcc dot gnu dot org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61564
--- Comment #4 from Richard Biener <rguenth at gcc dot gnu.org> ---
Author: rguenth
Date: Tue Jun 7 12:41:46 2016
New Revision: 237174
URL: https://gcc.gnu.org/viewcvs?rev=237174&root=gcc&view=rev
Log:
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.
Added:
trunk/gcc/testsuite/gcc.dg/Wattributes-4.c
trunk/gcc/testsuite/gcc.dg/Wpragmas-1.c
Modified:
trunk/gcc/ChangeLog
trunk/gcc/c-family/ChangeLog
trunk/gcc/c-family/c-common.c
trunk/gcc/common.opt
trunk/gcc/testsuite/ChangeLog
trunk/gcc/testsuite/gcc.dg/ipa/pr70646.c