Latest CVS: alpha1:PD>uname -a Linux alpha1 2.4.9-40 #1 Mon Sep 23 08:14:02 EDT 2002 alpha unknown alpha1:gcc-obj>g++ -v Reading specs from /usr/local/lib/gcc/alphaev56-unknown-linux-gnu/3.5.0/specs Configured with: ../gcc/configure --verbose --enable-languages=c++ Thread model: posix gcc version 3.5.0 20040207 (experimental) stage1/xgcc -Bstage1/ -B/usr/local/alphaev56-unknown-linux-gnu/bin/ -c -O -DIN_GCC -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -pedantic -Wno-long-long -Wno-variadic-macros -Wold-style-definition -Werror -fno-common -DHAVE_CONFIG_H -I. -I. -I../../gcc/gcc -I../../gcc/gcc/. -I../../gcc/gcc/../include ../../gcc/gcc/builtins.c -o builtins.o ../../gcc/gcc/builtins.c: In function `fold_builtin_cabs': ../../gcc/gcc/builtins.c:5947: warning: unused parameter 'fndecl' gmake[2]: *** [builtins.o] Error 1 gmake[2]: Leaving directory `/usr/home/mckelvey/software/gcc-obj/gcc' gmake[1]: *** [stage2_build] Error 2 gmake[1]: Leaving directory `/usr/home/mckelvey/software/gcc-obj/gcc' gmake: *** [bootstrap] Error 2
Confirmed, but I do not know this does not cause a failure on most other targets even with --enable- werror.
Looks like targeting alphaev56-unknown-linux-gnu, the function, fold_builtin_cabs, is too big to inline so it is emitted instead which causes this warning to show up, there is another bug which I will find/file: static int t(int i) { return 0; } int tt() { return t(0); }
Okay I filed it under PR 15004.
Subject: Bug 14999 CVSROOT: /cvs/gcc Module name: gcc Changes by: pinskia@gcc.gnu.org 2004-04-19 13:03:07 Modified files: gcc : ChangeLog builtins.c bb-reorder.c Log message: 2004-04-19 Andrew PInski <pinskia@physics.uc.edu> PR bootstrap/15009 * bb-reorder.c (fix_up_fall_thru_edges): Init cond_jump. PR bootstrap/14999 * builtins.c (fold_builtin_cabs): Mark fndecl as unused. Patches: http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/ChangeLog.diff?cvsroot=gcc&r1=2.3429&r2=2.3430 http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/builtins.c.diff?cvsroot=gcc&r1=1.309&r2=1.310 http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/bb-reorder.c.diff?cvsroot=gcc&r1=1.70&r2=1.71
Fixed.