]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
re PR c/38938 (-Wno-all doesn't work on -Wpointer-sign)
authorH.J. Lu <hongjiu.lu@intel.com>
Sat, 24 Jan 2009 16:05:53 +0000 (16:05 +0000)
committerH.J. Lu <hjl@gcc.gnu.org>
Sat, 24 Jan 2009 16:05:53 +0000 (08:05 -0800)
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

gcc/ChangeLog
gcc/c-opts.c

index 0b172fe4111a712ef8961a82397f458f9c3210b3..65d4f0fcbdc27dd8ed73786637fb1b8a9091d6bb 100644 (file)
@@ -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
index 1ec86ec4adc8e5c3dcbe599bc8d89984dc64284b..1c228dd5441f21b29e7238a429a99fe0ca37b75a 100644 (file)
@@ -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: