diff options
author | Manuel López-Ibáñez <manu@gcc.gnu.org> | 2012-10-16 15:31:46 +0000 |
---|---|---|
committer | Manuel López-Ibáñez <manu@gcc.gnu.org> | 2012-10-16 15:31:46 +0000 |
commit | 9286974a64c1dab24db7d326a9b077653551ed75 (patch) | |
tree | 4ce566a273abe5c8b53f22c6bfb4b3a8226b26e0 /gcc/opts.c | |
parent | 51de9df6201e94cccb9350a337f658bb8bdfda5c (diff) |
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.
git-svn-id: https://gcc.gnu.org/svn/gcc/trunk@192502 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/opts.c')
-rw-r--r-- | gcc/opts.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/gcc/opts.c b/gcc/opts.c index ccfe3c70a91..aea0cfc839f 100644 --- a/gcc/opts.c +++ b/gcc/opts.c @@ -37,6 +37,8 @@ along with GCC; see the file COPYING3. If not see #include "insn-attr-common.h" #include "common/common-target.h" +static void set_Wstrict_aliasing (struct gcc_options *opts, int onoff); + /* Indexed by enum debug_info_type. */ const char *const debug_type_names[] = { @@ -1801,7 +1803,7 @@ handle_param (struct gcc_options *opts, struct gcc_options *opts_set, ONOFF is assumed to take value 1 when -Wstrict-aliasing is specified, and 0 otherwise. After calling this function, wstrict_aliasing will be set to the default value of -Wstrict_aliasing=level, currently 3. */ -void +static void set_Wstrict_aliasing (struct gcc_options *opts, int onoff) { gcc_assert (onoff == 0 || onoff == 1); |