public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c/53063] New: encode group options in the .opt files
@ 2012-04-21 14:23 manu at gcc dot gnu.org
2012-05-11 12:29 ` [Bug c/53063] " manu at gcc dot gnu.org
` (8 more replies)
0 siblings, 9 replies; 10+ messages in thread
From: manu at gcc dot gnu.org @ 2012-04-21 14:23 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=53063
Bug #: 53063
Summary: encode group options in the .opt files
Classification: Unclassified
Product: gcc
Version: unknown
Status: UNCONFIRMED
Severity: enhancement
Priority: P3
Component: c
AssignedTo: unassigned@gcc.gnu.org
ReportedBy: manu@gcc.gnu.org
Encoding group options in the .opt files will help to delete a lot of code and
fix a lot of bugs in the way options enabled by other options are handled. For
example,
Wall
C ObjC C++ ObjC++ Warning
Enable most warning messages
Enables(Wwhatever, Wfoo=2)
EnablesIf((optimize >= 2), Warray-bounds)
EnablesIf((c_dialect_cxx ()), Wsign-compare, Wreorder, Wnarrowing)
Suggestions on how to implement this are welcome.
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug c/53063] encode group options in the .opt files
2012-04-21 14:23 [Bug c/53063] New: encode group options in the .opt files manu at gcc dot gnu.org
@ 2012-05-11 12:29 ` manu at gcc dot gnu.org
2012-05-13 22:31 ` manu at gcc dot gnu.org
` (7 subsequent siblings)
8 siblings, 0 replies; 10+ messages in thread
From: manu at gcc dot gnu.org @ 2012-05-11 12:29 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=53063
--- Comment #1 from Manuel López-Ibáñez <manu at gcc dot gnu.org> 2012-05-11 12:24:00 UTC ---
Author: manu
Date: Fri May 11 12:23:50 2012
New Revision: 187403
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=187403
Log:
2012-05-11 Manuel López-Ibáñez <manu@gcc.gnu.org>
PR 53063
gcc/
* doc/options.texi (EnabledBy): Document
* opts.c: Include opts.h and options.h before tm.h.
(finish_options): Do not handle some sub-options here...
(common_handle_option): ... instead call common_handle_option_auto here.
* optc-gen.awk: Handle EnabledBy.
* opth-gen.awk: Declare common_handle_option_auto.
* common.opt (Wuninitialized): Use EnabledBy. Delete Init.
(Wmaybe-uninitialized): Likewise.
(Wunused-but-set-variable): Likewise.
(Wunused-function): Likewise.
(Wunused-label): Likewise.
(Wunused-value): Likewise.
(Wunused-variable): Likewise.
* opt-read.awk: Create opt_numbers array.
ada/
* gcc-interface/misc.c (gnat_parse_file): Move before ...
(gnat_handle_option): ... this. Use handle_generated_option.
c-family/
* c-opts.c (c_common_handle_option): Use handle_generated_option
to enable sub-options.
fortran/
* options.c: Include diagnostics.h instead of
diagnostics-core.h.
(set_Wall): Do not see warn_unused here.
(gfc_handle_option): Set it here using handle_generated_option.
Modified:
trunk/gcc/ChangeLog
trunk/gcc/ada/ChangeLog
trunk/gcc/ada/gcc-interface/misc.c
trunk/gcc/c-family/ChangeLog
trunk/gcc/c-family/c-opts.c
trunk/gcc/common.opt
trunk/gcc/doc/options.texi
trunk/gcc/fortran/ChangeLog
trunk/gcc/fortran/options.c
trunk/gcc/opt-read.awk
trunk/gcc/optc-gen.awk
trunk/gcc/opth-gen.awk
trunk/gcc/opts.c
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug c/53063] encode group options in the .opt files
2012-04-21 14:23 [Bug c/53063] New: encode group options in the .opt files manu at gcc dot gnu.org
2012-05-11 12:29 ` [Bug c/53063] " manu at gcc dot gnu.org
@ 2012-05-13 22:31 ` manu at gcc dot gnu.org
2012-05-14 13:34 ` manu at gcc dot gnu.org
` (6 subsequent siblings)
8 siblings, 0 replies; 10+ messages in thread
From: manu at gcc dot gnu.org @ 2012-05-13 22:31 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=53063
--- Comment #2 from Manuel López-Ibáñez <manu at gcc dot gnu.org> 2012-05-13 22:30:34 UTC ---
*** Bug 53072 has been marked as a duplicate of this bug. ***
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug c/53063] encode group options in the .opt files
2012-04-21 14:23 [Bug c/53063] New: encode group options in the .opt files manu at gcc dot gnu.org
2012-05-11 12:29 ` [Bug c/53063] " manu at gcc dot gnu.org
2012-05-13 22:31 ` manu at gcc dot gnu.org
@ 2012-05-14 13:34 ` manu at gcc dot gnu.org
2012-10-16 15:32 ` manu at gcc dot gnu.org
` (5 subsequent siblings)
8 siblings, 0 replies; 10+ messages in thread
From: manu at gcc dot gnu.org @ 2012-05-14 13:34 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=53063
--- Comment #3 from Manuel López-Ibáñez <manu at gcc dot gnu.org> 2012-05-14 13:30:39 UTC ---
Author: manu
Date: Mon May 14 13:30:32 2012
New Revision: 187462
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=187462
Log:
2012-05-14 Manuel López-Ibáñez <manu@gcc.gnu.org>
PR 53063
c-family/
* c.opt (Wc++0X-compat,Wdelete-non-virtual-dtor,Wjump-misses-init,
Wreorder): Use LangEnabledBy.
* c-opts.c (c_common_handle_option): Do not enable them
explicitly. Call lang-specific generated functions.
(c_common_post_options): Do not set them here.
gcc/
* doc/options.texi: (LangEnabledBy): Document it.
* optc-gen.awk: Handle LangEnabledBy.
* opth-gen.awk: Generate declaration for lang-specific functions.
* opt-read.awk: Record lang numbers.
* opt-functions.awk (flag_set_p): Ignore the arguments of flags.
(lang_sanitized_name): New.
ada/
* gcc-interface/misc.c: Include opts.h and options.h before tm.h.
(gnat_handle_option): Call lang-specific generated function.
fortran/
* options.c (gfc_handle_option): Call lang-specific generated function.
Modified:
trunk/gcc/ChangeLog
trunk/gcc/ada/ChangeLog
trunk/gcc/ada/gcc-interface/misc.c
trunk/gcc/c-family/ChangeLog
trunk/gcc/c-family/c-opts.c
trunk/gcc/c-family/c.opt
trunk/gcc/doc/options.texi
trunk/gcc/fortran/ChangeLog
trunk/gcc/fortran/options.c
trunk/gcc/opt-functions.awk
trunk/gcc/opt-read.awk
trunk/gcc/optc-gen.awk
trunk/gcc/opth-gen.awk
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug c/53063] encode group options in the .opt files
2012-04-21 14:23 [Bug c/53063] New: encode group options in the .opt files manu at gcc dot gnu.org
` (2 preceding siblings ...)
2012-05-14 13:34 ` manu at gcc dot gnu.org
@ 2012-10-16 15:32 ` manu at gcc dot gnu.org
2012-10-16 15:40 ` manu at gcc dot gnu.org
` (4 subsequent siblings)
8 siblings, 0 replies; 10+ messages in thread
From: manu at gcc dot gnu.org @ 2012-10-16 15:32 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=53063
--- Comment #4 from Manuel López-Ibáñez <manu at gcc dot gnu.org> 2012-10-16 15:31:53 UTC ---
Author: manu
Date: Tue Oct 16 15:31:46 2012
New Revision: 192502
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=192502
Log:
2012-10-16 Manuel López-Ibáñez <manu@gcc.gnu.org>
PR c/53063
PR c/40989
gcc/
* optc-gen.awk: Handle new form of LangEnabledBy.
* opts.c (set_Wstrict_aliasing): Declare here. Make static.
* common.opt (Wstrict-aliasing=,Wstrict-overflow=): Do not use Init.
* doc/options.texi (LangEnabledBy): Document new form.
* flags.h (set_Wstrict_aliasing): Do not declare.
c-family/
* c.opt (Wstrict-aliasing=,Wstrict-overflow=): Use LangEnabledBy.
* c-opts.c (c_common_handle_option): Do not set them here. Add
comment.
(c_common_post_options): Likewise.
testsuite/
* gcc.dg/Wstrict-overflow-24.c: New.
Added:
trunk/gcc/testsuite/gcc.dg/Wstrict-overflow-24.c
Modified:
trunk/gcc/ChangeLog
trunk/gcc/c-family/ChangeLog
trunk/gcc/c-family/c-opts.c
trunk/gcc/c-family/c.opt
trunk/gcc/common.opt
trunk/gcc/doc/options.texi
trunk/gcc/flags.h
trunk/gcc/optc-gen.awk
trunk/gcc/opts.c
trunk/gcc/testsuite/ChangeLog
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug c/53063] encode group options in the .opt files
2012-04-21 14:23 [Bug c/53063] New: encode group options in the .opt files manu at gcc dot gnu.org
` (3 preceding siblings ...)
2012-10-16 15:32 ` manu at gcc dot gnu.org
@ 2012-10-16 15:40 ` manu at gcc dot gnu.org
2012-10-20 14:17 ` manu at gcc dot gnu.org
` (3 subsequent siblings)
8 siblings, 0 replies; 10+ messages in thread
From: manu at gcc dot gnu.org @ 2012-10-16 15:40 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=53063
--- Comment #5 from Manuel López-Ibáñez <manu at gcc dot gnu.org> 2012-10-16 15:39:09 UTC ---
Author: manu
Date: Tue Oct 16 15:38:58 2012
New Revision: 192503
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=192503
Log:
2012-10-16 Manuel López-Ibáñez <manu@gcc.gnu.org>
PR c/53063
PR c/40989
* doc/options.texi (EnabledBy): Document new form.
* optc-gen.awk: Handle new form of EnabledBy.
* common.opt (Wunused-but-set-parameter): Use EnabledBy.
(Wunused-parameter): Likewise.
* opts.c (finish_options): Do not handle them explicitly.
* opt-functions.awk (search_var_name): New.
Modified:
trunk/gcc/ChangeLog
trunk/gcc/common.opt
trunk/gcc/doc/options.texi
trunk/gcc/opt-functions.awk
trunk/gcc/optc-gen.awk
trunk/gcc/opts.c
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug c/53063] encode group options in the .opt files
2012-04-21 14:23 [Bug c/53063] New: encode group options in the .opt files manu at gcc dot gnu.org
` (4 preceding siblings ...)
2012-10-16 15:40 ` manu at gcc dot gnu.org
@ 2012-10-20 14:17 ` manu at gcc dot gnu.org
2012-11-07 17:55 ` manu at gcc dot gnu.org
` (2 subsequent siblings)
8 siblings, 0 replies; 10+ messages in thread
From: manu at gcc dot gnu.org @ 2012-10-20 14:17 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=53063
--- Comment #6 from Manuel López-Ibáñez <manu at gcc dot gnu.org> 2012-10-20 14:17:14 UTC ---
Author: manu
Date: Sat Oct 20 14:17:08 2012
New Revision: 192635
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=192635
Log:
2012-10-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
PR c/53063
PR c/40989
c-family/
* c.opt (Waddress,Wchar-subscripts,Wsign-conversion,Wimplicit,
Wimplicit-function-declaration,Wimplicit-int,Wsizeof-pointer-memaccess,
Wnarrowing,Wparentheses,Wpointer-sign,Wreturn-type,Wsequence-point,
Wsign-compare,Wuninitialized,Wmaybe-uninitialized,Wunused,
Wvolatile-register-var): Add LangEnabledBy or EnabledBy.
* c-opts.c (c_common_handle_option): Remove explicit handling from
here.
(c_common_post_options): Likewise.
gcc/
* opts.c (finish_options): Remove explicit handling from here.
Modified:
trunk/gcc/ChangeLog
trunk/gcc/c-family/ChangeLog
trunk/gcc/c-family/c-opts.c
trunk/gcc/c-family/c.opt
trunk/gcc/opts.c
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug c/53063] encode group options in the .opt files
2012-04-21 14:23 [Bug c/53063] New: encode group options in the .opt files manu at gcc dot gnu.org
` (5 preceding siblings ...)
2012-10-20 14:17 ` manu at gcc dot gnu.org
@ 2012-11-07 17:55 ` manu at gcc dot gnu.org
2012-11-07 18:27 ` manu at gcc dot gnu.org
2014-08-19 22:38 ` manu at gcc dot gnu.org
8 siblings, 0 replies; 10+ messages in thread
From: manu at gcc dot gnu.org @ 2012-11-07 17:55 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=53063
--- Comment #7 from Manuel López-Ibáñez <manu at gcc dot gnu.org> 2012-11-07 17:54:20 UTC ---
Author: manu
Date: Wed Nov 7 17:54:11 2012
New Revision: 193302
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=193302
Log:
c-family/
2012-11-07 Manuel López-Ibáñez <manu@gcc.gnu.org>
PR c/53063
* c.opt(Warray-bounds,Wdelete-non-virtual-dtor,Wenum-compare,
Wmain,Woverlength-strings, Wunknown-pragmas,Wunused-macros):
Use LangEnabledBy.
(Wswitch,Wswitch-default,Wswitch-enum): Likewise. Move here from
common.opt.
(Wvariadic-macros): Init(1).
* c-opts.c (c_common_handle_option): Do not handle them
explicitly.
(c_common_post_options): Likewise.
(sanitize_cpp_opts): warn_unused_macros is now
cpp_warn_unused_macros.
(push_command_line_include): Likewise.
* c-common.c (warn_unknown_pragmas): Do not define.
* c-common.h (warn_unknown_pragmas): Do not declare.
gcc/
2012-11-07 Manuel López-Ibáñez <manu@gcc.gnu.org>
PR c/53063
* common.opt (Wswitch,Wswitch-default,Wswitch-enum): Move to c.opt.
fortran/
2012-11-07 Manuel López-Ibáñez <manu@gcc.gnu.org>
PR c/53063
* options.c (set_Wall): Do not set warn_switch here.
Modified:
trunk/gcc/ChangeLog
trunk/gcc/c-family/ChangeLog
trunk/gcc/c-family/c-common.c
trunk/gcc/c-family/c-common.h
trunk/gcc/c-family/c-opts.c
trunk/gcc/c-family/c.opt
trunk/gcc/common.opt
trunk/gcc/fortran/ChangeLog
trunk/gcc/fortran/options.c
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug c/53063] encode group options in the .opt files
2012-04-21 14:23 [Bug c/53063] New: encode group options in the .opt files manu at gcc dot gnu.org
` (6 preceding siblings ...)
2012-11-07 17:55 ` manu at gcc dot gnu.org
@ 2012-11-07 18:27 ` manu at gcc dot gnu.org
2014-08-19 22:38 ` manu at gcc dot gnu.org
8 siblings, 0 replies; 10+ messages in thread
From: manu at gcc dot gnu.org @ 2012-11-07 18:27 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=53063
--- Comment #8 from Manuel López-Ibáñez <manu at gcc dot gnu.org> 2012-11-07 18:27:22 UTC ---
Author: manu
Date: Wed Nov 7 18:27:14 2012
New Revision: 193304
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=193304
Log:
gcc/
2012-11-07 Manuel López-Ibáñez <manu@gcc.gnu.org>
PR c/53063
* doc/invoke.texi (Wformat): Update.
c-family/
2012-11-07 Manuel López-Ibáñez <manu@gcc.gnu.org>
PR c/53063
* c.opt (Wformat): Make it Alias Wformat=1.
(Wformat-contains-nul,Wformat-extra-args,Wformat-nonliteral,
Wformat-security,Wformat-y2k,Wformat-zero-length): Use
LangEnabledBy.
(Wformat=): RejectNegative. Use LangEnabledBy.
(Wnonnull): Use LangEnabledBy.
* c-opts.c (c_common_handle_option): Do not handle Wformat here.
* c-format.c (set_Wformat): Delete.
(decode_format_attr): Replace OPT_Wformat with OPT_Wformat_.
(maybe_read_dollar_number): Likewise.
(avoid_dollar_number): Likewise.
(finish_dollar_format_checking): Likewise.
(check_format_info): Likewise.
(check_format_info_main): Likewise.
(check_format_types): Likewise.
(format_type_warning): Likewise.
* c-common.c (int): Likewise.
(check_function_sentinel): Likewise.
* c-common.h (warn_format,set_Wformat): Do not declare here.
testsuite/
2012-11-07 Manuel López-Ibáñez <manu@gcc.gnu.org>
PR c/53063
* gcc.dg/warn-nsstring.c: Use -Wformat explicitly.
Modified:
trunk/gcc/ChangeLog
trunk/gcc/c-family/ChangeLog
trunk/gcc/c-family/c-common.c
trunk/gcc/c-family/c-common.h
trunk/gcc/c-family/c-format.c
trunk/gcc/c-family/c-opts.c
trunk/gcc/c-family/c.opt
trunk/gcc/doc/invoke.texi
trunk/gcc/testsuite/ChangeLog
trunk/gcc/testsuite/gcc.dg/warn-nsstring.c
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug c/53063] encode group options in the .opt files
2012-04-21 14:23 [Bug c/53063] New: encode group options in the .opt files manu at gcc dot gnu.org
` (7 preceding siblings ...)
2012-11-07 18:27 ` manu at gcc dot gnu.org
@ 2014-08-19 22:38 ` manu at gcc dot gnu.org
8 siblings, 0 replies; 10+ messages in thread
From: manu at gcc dot gnu.org @ 2014-08-19 22:38 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=53063
--- Comment #10 from Manuel López-Ibáñez <manu at gcc dot gnu.org> ---
Author: manu
Date: Tue Aug 19 22:37:49 2014
New Revision: 214200
URL: https://gcc.gnu.org/viewcvs?rev=214200&root=gcc&view=rev
Log:
gcc/ChangeLog:
2014-08-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
PR c/60975
PR c/53063
* doc/options.texi (CPP): Document it.
* doc/invoke.texi (Wvariadic-macros): Fix documentation.
* optc-gen.awk: Handle CPP.
* opth-gen.awk: Likewise.
gcc/c-family/ChangeLog:
2014-08-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
PR c/60975
PR c/53063
* c.opt (Wvariadic-macros): Use CPP and LangEnabledBy.
* c-opts.c (c_common_handle_option): Call cpp_handle_option_auto.
(c_common_post_options): Call init_global_opts_from_cpp.
(sanitize_cpp_opts): Do not handle Wvariadic-macros here.
gcc/testsuite/ChangeLog:
2014-08-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
PR c/60975
PR c/53063
* gcc.dg/cpp/Wvariadic-1p.c: New test.
Added:
trunk/gcc/testsuite/gcc.dg/cpp/Wvariadic-1p.c
Modified:
trunk/gcc/ChangeLog
trunk/gcc/c-family/ChangeLog
trunk/gcc/c-family/c-opts.c
trunk/gcc/c-family/c.opt
trunk/gcc/doc/invoke.texi
trunk/gcc/doc/options.texi
trunk/gcc/optc-gen.awk
trunk/gcc/opth-gen.awk
trunk/gcc/testsuite/ChangeLog
>From gcc-bugs-return-458815-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Aug 19 22:38:39 2014
Return-Path: <gcc-bugs-return-458815-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 23863 invoked by alias); 19 Aug 2014 22:38:37 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 23805 invoked by uid 55); 19 Aug 2014 22:38:29 -0000
From: "manu at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug preprocessor/60975] -Wvariadic-macros does not print warning
Date: Tue, 19 Aug 2014 22:38:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: preprocessor
X-Bugzilla-Version: 4.8.2
X-Bugzilla-Keywords:
X-Bugzilla-Severity: minor
X-Bugzilla-Who: manu at gcc dot gnu.org
X-Bugzilla-Status: UNCONFIRMED
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-60975-4-EUaFqtYrAD@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-60975-4@http.gcc.gnu.org/bugzilla/>
References: <bug-60975-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2014-08/txt/msg01312.txt.bz2
Content-length: 1439
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=60975
--- Comment #4 from Manuel López-Ibáñez <manu at gcc dot gnu.org> ---
Author: manu
Date: Tue Aug 19 22:37:49 2014
New Revision: 214200
URL: https://gcc.gnu.org/viewcvs?rev=214200&root=gcc&view=rev
Log:
gcc/ChangeLog:
2014-08-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
PR c/60975
PR c/53063
* doc/options.texi (CPP): Document it.
* doc/invoke.texi (Wvariadic-macros): Fix documentation.
* optc-gen.awk: Handle CPP.
* opth-gen.awk: Likewise.
gcc/c-family/ChangeLog:
2014-08-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
PR c/60975
PR c/53063
* c.opt (Wvariadic-macros): Use CPP and LangEnabledBy.
* c-opts.c (c_common_handle_option): Call cpp_handle_option_auto.
(c_common_post_options): Call init_global_opts_from_cpp.
(sanitize_cpp_opts): Do not handle Wvariadic-macros here.
gcc/testsuite/ChangeLog:
2014-08-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
PR c/60975
PR c/53063
* gcc.dg/cpp/Wvariadic-1p.c: New test.
Added:
trunk/gcc/testsuite/gcc.dg/cpp/Wvariadic-1p.c
Modified:
trunk/gcc/ChangeLog
trunk/gcc/c-family/ChangeLog
trunk/gcc/c-family/c-opts.c
trunk/gcc/c-family/c.opt
trunk/gcc/doc/invoke.texi
trunk/gcc/doc/options.texi
trunk/gcc/optc-gen.awk
trunk/gcc/opth-gen.awk
trunk/gcc/testsuite/ChangeLog
>From gcc-bugs-return-458817-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Aug 19 22:46:58 2014
Return-Path: <gcc-bugs-return-458817-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 28108 invoked by alias); 19 Aug 2014 22:46:58 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 28059 invoked by uid 48); 19 Aug 2014 22:46:53 -0000
From: "manu at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug preprocessor/60975] -Wvariadic-macros does not print warning
Date: Tue, 19 Aug 2014 22:46:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: preprocessor
X-Bugzilla-Version: 4.8.2
X-Bugzilla-Keywords:
X-Bugzilla-Severity: minor
X-Bugzilla-Who: manu at gcc dot gnu.org
X-Bugzilla-Status: RESOLVED
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_status resolution
Message-ID: <bug-60975-4-ixlWmwsvJC@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-60975-4@http.gcc.gnu.org/bugzilla/>
References: <bug-60975-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2014-08/txt/msg01314.txt.bz2
Content-length: 475
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=60975
Manuel López-Ibáñez <manu at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Resolution|--- |FIXED
--- Comment #5 from Manuel López-Ibáñez <manu at gcc dot gnu.org> ---
FIXED in GCC 5.0
>From gcc-bugs-return-458818-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Aug 19 22:52:38 2014
Return-Path: <gcc-bugs-return-458818-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 30710 invoked by alias); 19 Aug 2014 22:52:38 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 30680 invoked by uid 55); 19 Aug 2014 22:52:34 -0000
From: "manu at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug preprocessor/51303] -Wmissing-include-dirs warnings reported as [enabled by default]
Date: Tue, 19 Aug 2014 22:52:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: preprocessor
X-Bugzilla-Version: 4.6.2
X-Bugzilla-Keywords: diagnostic
X-Bugzilla-Severity: minor
X-Bugzilla-Who: manu at gcc dot gnu.org
X-Bugzilla-Status: NEW
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-51303-4-HT1GtLHj10@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-51303-4@http.gcc.gnu.org/bugzilla/>
References: <bug-51303-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2014-08/txt/msg01315.txt.bz2
Content-length: 1078
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=51303
--- Comment #3 from Manuel López-Ibáñez <manu at gcc dot gnu.org> ---
Author: manu
Date: Tue Aug 19 22:52:02 2014
New Revision: 214201
URL: https://gcc.gnu.org/viewcvs?rev=214201&root=gcc&view=rev
Log:
gcc/ChangeLog:
2014-08-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
PR preprocessor/51303
* incpath.c (remove_duplicates): Use cpp_warning.
gcc/c-family/ChangeLog:
2014-08-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
PR preprocessor/51303
* c-common.c (struct reason_option_codes_t option_codes):
Add CPP_W_MISSING_INCLUDE_DIRS. Sort alphabetically.
gcc/testsuite/ChangeLog:
2014-08-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
PR preprocessor/51303
* gcc.dg/cpp/Wmissingdirs.c: Test for the warning option.
Modified:
trunk/gcc/ChangeLog
trunk/gcc/c-family/ChangeLog
trunk/gcc/c-family/c-common.c
trunk/gcc/incpath.c
trunk/gcc/testsuite/ChangeLog
trunk/gcc/testsuite/gcc.dg/cpp/Wmissingdirs.c
>From gcc-bugs-return-458819-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Aug 19 22:54:42 2014
Return-Path: <gcc-bugs-return-458819-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 32712 invoked by alias); 19 Aug 2014 22:54:42 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 32670 invoked by uid 48); 19 Aug 2014 22:54:39 -0000
From: "manu at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug preprocessor/51303] -Wmissing-include-dirs warnings reported as [enabled by default]
Date: Tue, 19 Aug 2014 22:54:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: preprocessor
X-Bugzilla-Version: 4.6.2
X-Bugzilla-Keywords: diagnostic
X-Bugzilla-Severity: minor
X-Bugzilla-Who: manu at gcc dot gnu.org
X-Bugzilla-Status: RESOLVED
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_status resolution
Message-ID: <bug-51303-4-s0MXf675hw@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-51303-4@http.gcc.gnu.org/bugzilla/>
References: <bug-51303-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2014-08/txt/msg01316.txt.bz2
Content-length: 476
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=51303
Manuel López-Ibáñez <manu at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution|--- |FIXED
--- Comment #4 from Manuel López-Ibáñez <manu at gcc dot gnu.org> ---
FIXED for GCC 5.0
>From gcc-bugs-return-458820-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Aug 20 00:28:30 2014
Return-Path: <gcc-bugs-return-458820-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 25472 invoked by alias); 20 Aug 2014 00:28:29 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 25449 invoked by uid 48); 20 Aug 2014 00:28:26 -0000
From: "pangbw at gmail dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/62196] New: running time segment fault with valarray
Date: Wed, 20 Aug 2014 00:28:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: new
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: c++
X-Bugzilla-Version: 4.9.1
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: pangbw at gmail dot com
X-Bugzilla-Status: UNCONFIRMED
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter
Message-ID: <bug-62196-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: 7bit
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2014-08/txt/msg01317.txt.bz2
Content-length: 1145
https://gcc.gnu.org/bugzilla/show_bug.cgi?idb196
Bug ID: 62196
Summary: running time segment fault with valarray
Product: gcc
Version: 4.9.1
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c++
Assignee: unassigned at gcc dot gnu.org
Reporter: pangbw at gmail dot com
The code would segment fault at running time, I see the same result with G++
4.6.3(which comes with Ubuntu 12.04) and 4.9.1:
#include <iostream>
#include <valarray>
int main(int argc, char *argv[])
{
const char vl[] = {"abcdefghijklmnopqrstuvwxyz"};
const char vu[] = {"ABCDEFGHIJKLMNOPQRSTUVWXYZ"};
const std::valarray<char> v0(vl, 27), vm6(vu, 6);
const bool vb[] = {false, false, true, true, false, true};
const std::valarray<bool> vmask(vb, 6);
std::valarray<char> x = v0;
for(int i = 0; i < x.size(); i++)
std::cout << x[i];
std::cout << std::endl;
x[vmask] = vm6;
for(int i = 0; i < x.size(); i++)
std::cout << x[i];
std::cout << std::endl;
return 0;
}
The command line is just simply as:
g++ -std=c++0x x.cpp
^ permalink raw reply [flat|nested] 10+ messages in thread
end of thread, other threads:[~2014-08-19 22:38 UTC | newest]
Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-04-21 14:23 [Bug c/53063] New: encode group options in the .opt files manu at gcc dot gnu.org
2012-05-11 12:29 ` [Bug c/53063] " manu at gcc dot gnu.org
2012-05-13 22:31 ` manu at gcc dot gnu.org
2012-05-14 13:34 ` manu at gcc dot gnu.org
2012-10-16 15:32 ` manu at gcc dot gnu.org
2012-10-16 15:40 ` manu at gcc dot gnu.org
2012-10-20 14:17 ` manu at gcc dot gnu.org
2012-11-07 17:55 ` manu at gcc dot gnu.org
2012-11-07 18:27 ` manu at gcc dot gnu.org
2014-08-19 22:38 ` manu at gcc dot gnu.org
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).