diff options
author | manu <manu@138bc75d-0d04-0410-961f-82ee72b054a4> | 2012-10-16 15:31:46 +0000 |
---|---|---|
committer | manu <manu@138bc75d-0d04-0410-961f-82ee72b054a4> | 2012-10-16 15:31:46 +0000 |
commit | 77b27208e4842b5adb8d007d52ca6bbaa03f0e6d (patch) | |
tree | 4ce566a273abe5c8b53f22c6bfb4b3a8226b26e0 /gcc/flags.h | |
parent | b2a4240a1c8eeb25325a5ba4a8dd68f5406bff6b (diff) | |
download | gcc-77b27208e4842b5adb8d007d52ca6bbaa03f0e6d.tar.gz |
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: svn+ssh://gcc.gnu.org/svn/gcc/trunk@192502 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/flags.h')
-rw-r--r-- | gcc/flags.h | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/gcc/flags.h b/gcc/flags.h index 141185befc7..d56d5411e7b 100644 --- a/gcc/flags.h +++ b/gcc/flags.h @@ -37,14 +37,6 @@ extern int base_of_path (const char *path, const char **base_out); extern bool fast_math_flags_set_p (const struct gcc_options *); extern bool fast_math_flags_struct_set_p (struct cl_optimization *); -/* Used to set the level of -Wstrict-aliasing in OPTS, when no level - is specified. The external way to set the default level is to use - -Wstrict-aliasing=level. - 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. */ - -extern void set_Wstrict_aliasing (struct gcc_options *opts, int onoff); /* Now the symbols that are set with `-f' switches. */ |