diff options
author | H.J. Lu <hongjiu.lu@intel.com> | 2009-01-24 16:05:53 +0000 |
---|---|---|
committer | H.J. Lu <hjl@gcc.gnu.org> | 2009-01-24 08:05:53 -0800 |
commit | 8c6843007dc2a380bf8b386a4ca69e3597b76cf7 (patch) | |
tree | 4f414457e46182fd3501a3c26698b86060596fe1 | |
parent | 8cd9b95149b51d14f99c7c0e948873da8443eb64 (diff) | |
download | gcc-8c6843007dc2a380bf8b386a4ca69e3597b76cf7.zip gcc-8c6843007dc2a380bf8b386a4ca69e3597b76cf7.tar.gz gcc-8c6843007dc2a380bf8b386a4ca69e3597b76cf7.tar.bz2 |
re PR c/38938 (-Wno-all doesn't work on -Wpointer-sign)
2009-01-24 H.J. Lu <hongjiu.lu@intel.com>
PR c/38938
* c-opts.c (c_common_handle_option): Upate warn_pointer_sign
properly.
From-SVN: r143648
-rw-r--r-- | gcc/ChangeLog | 6 | ||||
-rw-r--r-- | gcc/c-opts.c | 4 |
2 files changed, 8 insertions, 2 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 0b172fe..65d4f0f 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,9 @@ +2009-01-24 H.J. Lu <hongjiu.lu@intel.com> + + PR c/38938 + * c-opts.c (c_common_handle_option): Upate warn_pointer_sign + properly. + 2009-01-24 Sebastian Pop <sebastian.pop@amd.com> PR tree-optimization/38953 diff --git a/gcc/c-opts.c b/gcc/c-opts.c index 1ec86ec..1c228dd 100644 --- a/gcc/c-opts.c +++ b/gcc/c-opts.c @@ -1,5 +1,5 @@ /* C/ObjC/C++ command line option handling. - Copyright (C) 2002, 2003, 2004, 2005, 2006, 2007, 2008 + Copyright (C) 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation, Inc. Contributed by Neil Booth. @@ -423,7 +423,7 @@ c_common_handle_option (size_t scode, const char *arg, int value) cpp_opts->warn_num_sign_change = value; if (warn_pointer_sign == -1) - warn_pointer_sign = 1; + warn_pointer_sign = value; break; case OPT_Wbuiltin_macro_redefined: |