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: PATCH: New approach to --with-cpu, take 4


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


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