From: H.J. Lu Date: Sat, 24 Jan 2009 16:05:53 +0000 (+0000) Subject: re PR c/38938 (-Wno-all doesn't work on -Wpointer-sign) X-Git-Tag: releases/gcc-4.4.0~755 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8c6843007dc2a380bf8b386a4ca69e3597b76cf7;p=thirdparty%2Fgcc.git re PR c/38938 (-Wno-all doesn't work on -Wpointer-sign) 2009-01-24 H.J. Lu PR c/38938 * c-opts.c (c_common_handle_option): Upate warn_pointer_sign properly. From-SVN: r143648 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 0b172fe4111a..65d4f0fcbdc2 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,9 @@ +2009-01-24 H.J. Lu + + PR c/38938 + * c-opts.c (c_common_handle_option): Upate warn_pointer_sign + properly. + 2009-01-24 Sebastian Pop PR tree-optimization/38953 diff --git a/gcc/c-opts.c b/gcc/c-opts.c index 1ec86ec4adc8..1c228dd5441f 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: