This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c++/61564] #pragma GCC optimize ("-fno-lto") causes the compiler to crash


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

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]