PATCH: New approach to --with-cpu, take 4

Daniel Jacobowitz drow@mvista.com
Fri Aug 2 09:19:00 GMT 2002


On Thu, Aug 01, 2002 at 04:58:06PM -0400, John David Anglin wrote:
> > OK?  More comments?
> 
> There are a couple of new warnings on the PA when no default scheduling
> model is specified:
> 
> gcc -DIN_GCC    -g  -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wtraditional -pedantic -Wno-long-long  -DHAVE_CONFIG_H    -I. -I. -I../../gcc/gcc -I../../gcc/gcc/. -I../../gcc/gcc/config -I../../gcc/gcc/../include \
>   -DSTANDARD_STARTFILE_PREFIX=\"../../../\" -DSTANDARD_EXEC_PREFIX=\"/home/dave/opt/gnu/lib/gcc-lib/\" -DDEFAULT_TARGET_VERSION=\"3.3\" -DDEFAULT_TARGET_MACHINE=\"hppa-linux\" -DSTANDARD_BINDIR_PREFIX=\"/home/dave/opt/gnu/bin/\" -DTOOLDIR_BASE_PREFIX=\"../../../../\" `test "X${SHLIB_LINK}" = "X" || test "yes" != "yes" || echo "-DENABLE_SHARED_LIBGCC"` `test "X${SHLIB_MULTILIB}" = "X" || echo "-DNO_SHARED_LIBGCC_MULTILIB"` \
>   -c ../../gcc/gcc/gcc.c -o gcc.o)
> ../../gcc/gcc/gcc.c:671: warning: string length `536' is greater than the length `509' ISO C89 compilers are required to support
> ../../gcc/gcc/gcc.c: In function `process_command':
> ../../gcc/gcc/gcc.c:3822: warning: comparison between signed and unsigned
> ../../gcc/gcc/gcc.c:3957: warning: comparison between signed and unsigned
> ../../gcc/gcc/gcc.c: At top level:
> ../../gcc/gcc/gcc.c:1002: warning: `option_present' defined but not used
> ../../gcc/gcc/gcc.c:1028: warning: `add_option' defined but not used

What does one do with a static function that is only conditionally
called?  I suppose I could wrap it in all the conditions under which it
might be called, but that seems awkward.

-- 
Daniel Jacobowitz                           Carnegie Mellon University
MontaVista Software                         Debian GNU/Linux Developer



More information about the Gcc-patches mailing list