Bug 14999 - [4.0 Regression] Build failure in stage2: unused parameter 'fndecl'
Summary: [4.0 Regression] Build failure in stage2: unused parameter 'fndecl'
Status: RESOLVED FIXED
Alias: None
Product: gcc
Classification: Unclassified
Component: bootstrap (show other bugs)
Version: 4.0.0
: P2 critical
Target Milestone: 4.0.0
Assignee: Not yet assigned to anyone
URL:
Keywords: build
Depends on:
Blocks:
 
Reported: 2004-04-18 02:36 UTC by James McKelvey
Modified: 2004-09-13 14:15 UTC (History)
1 user (show)

See Also:
Host: alphaev56-unknown-linux-gnu
Target: alphaev56-unknown-linux-gnu
Build: alphaev56-unknown-linux-gnu
Known to work:
Known to fail:
Last reconfirmed: 2004-04-18 02:51:04


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description James McKelvey 2004-04-18 02:36:30 UTC
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
Comment 1 Andrew Pinski 2004-04-18 02:51:04 UTC
Confirmed, but I do not know this does not cause a failure on most other targets even with --enable-
werror.
Comment 2 Andrew Pinski 2004-04-18 15:45:18 UTC
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);
}
Comment 3 Andrew Pinski 2004-04-18 15:55:43 UTC
Okay I filed it under PR 15004.
Comment 4 GCC Commits 2004-04-19 13:03:13 UTC
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

Comment 5 Andrew Pinski 2004-04-19 13:03:50 UTC
Fixed.