[Bug c/48088] -Werror=frame-larger-than=100 does not work as expected

jakub at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Tue Dec 8 13:27:00 GMT 2015


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=48088

--- Comment #7 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Author: jakub
Date: Tue Dec  8 13:26:35 2015
New Revision: 231406

URL: https://gcc.gnu.org/viewcvs?rev=231406&root=gcc&view=rev
Log:
        PR c/48088
        PR c/68657
        * common.opt (Wframe-larger-than=): Add Warning.
        * opts.h (control_warning_option): Add ARG argument.
        * opts-common.c (cmdline_handle_error): New function.
        (read_cmdline_option): Use it.
        (control_warning_option): Likewise.  Add ARG argument.
        If non-NULL, decode it if needed and pass through
        to handle_generated_option.  Handle CLVC_ENUM like
        CLVC_BOOLEAN.
        * opts.c (common_handle_option): Adjust control_warning_option
        caller.
        (enable_warning_as_error): Likewise.
c-family/
        * c.opt (Wfloat-conversion, Wsign-conversion): Add Warning.
        * c-pragma.c (handle_pragma_diagnostic): Adjust
        control_warning_option caller.
ada/
        * gcc-interface/trans.c (Pragma_to_gnu): Adjust
        control_warning_option caller.
testsuite/
        * c-c++-common/pr68657-1.c: New test.
        * c-c++-common/pr68657-2.c: New test.
        * c-c++-common/pr68657-3.c: New test.
        * gcc.dg/cpp/warn-normalized-3.c: Use
        -Werror=normalized=nfc instead of -Werror=normalized=
        in dg-options.

Added:
    trunk/gcc/testsuite/c-c++-common/pr68657-1.c
    trunk/gcc/testsuite/c-c++-common/pr68657-2.c
    trunk/gcc/testsuite/c-c++-common/pr68657-3.c
Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/ada/ChangeLog
    trunk/gcc/ada/gcc-interface/trans.c
    trunk/gcc/c-family/ChangeLog
    trunk/gcc/c-family/c-pragma.c
    trunk/gcc/c-family/c.opt
    trunk/gcc/common.opt
    trunk/gcc/opts-common.c
    trunk/gcc/opts.c
    trunk/gcc/opts.h
    trunk/gcc/testsuite/ChangeLog
    trunk/gcc/testsuite/gcc.dg/cpp/warn-normalized-3.c


More information about the Gcc-bugs mailing list