This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Convert libiberty to use ISO C prototype style 3/n


Andreas Jaeger <aj@suse.de> writes:

> I know get tons of warnings in libiberty like the following:
> /cvs/gcc/libiberty/cp-demangle.c:2609: warning: traditional C rejects ISO C styl
> e function definitions
>
> I propose to remove the "-Wtraditional -pedantic" flags from the
> CFLAGS, they are currently set in configure.ac:
>
>   ac_libiberty_warn_cflags='-W -Wall -Wtraditional -pedantic'
>
> Here's a patch.  I'm currently testing on x86-64-linux-gnu.  Ok to
> commit if bootstrap passes?

I just noticed that we use in the gcc subdir itself -pedantic.  Is this patch ok
with just the removal of -Wtraditional?

We could even add some more warn flags but that's some others should
look into,

Andreas




> Andreas
>
> 2005-03-27  Andreas Jaeger  <aj@suse.de>
>
> 	* configure.ac (ac_c_preproc_warn_flag): Remove -Wtraditional
> 	-pedantic flags.
> 	* configure: Regenerated.
>
> ============================================================
> Index: libiberty/configure.ac
> --- libiberty/configure.ac	25 Mar 2005 04:41:38 -0000	1.16
> +++ libiberty/configure.ac	27 Mar 2005 10:17:30 -0000
> @@ -114,7 +114,7 @@ AC_PROG_CC
>  AC_PROG_CPP_WERROR
>  
>  if test x$GCC = xyes; then
> -  ac_libiberty_warn_cflags='-W -Wall -Wtraditional -pedantic'
> +  ac_libiberty_warn_cflags='-W -Wall'
>  fi
>  AC_SUBST(ac_libiberty_warn_cflags)

Andreas
-- 
 Andreas Jaeger, aj@suse.de, http://www.suse.de/~aj
  SUSE Linux Products GmbH, Maxfeldstr. 5, 90409 Nürnberg, Germany
   GPG fingerprint = 93A3 365E CE47 B889 DF7F  FED1 389A 563C C272 A126

Attachment: pgp00000.pgp
Description: PGP signature


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]