This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
Build problem with gas/dw2gencfi.c
- From: Hans-Peter Nilsson <hans-peter dot nilsson at axis dot com>
- To: mludvig at suse dot cz, amodra at bigpond dot net dot au
- Cc: binutils at sources dot redhat dot com
- Date: Tue, 20 May 2003 12:54:20 +0200
- Subject: Build problem with gas/dw2gencfi.c
My autobuilder complains, starting 2003-05-20 07:43:31 UTC.
It's likely that you don't see this if you use gcc >= 3.0,
because it seems due to use of a C99 construct (declaration
after first statement in a block). Binutils can't have that.
(But perhaps we can use *C89* now that GCC can. ;-)
(Gaah! I want a warning for these C99 constructs so bad I might
just implement it myself! Take warning! ;-)
gcc -DHAVE_CONFIG_H -I. -I/h/hp/binutils/cvs_latest/src/gas -I. -D_GNU_SOURCE -I. -I/h/hp/binutils/cvs_latest/src/gas -I../bfd -I/h/hp/binutils/cvs_latest/src/gas/config -I/h/hp/binutils/cvs_latest/src/gas/../include -I/h/hp/binutils/cvs_latest/src/gas/.. -I/h/hp/binutils/cvs_latest/src/gas/../bfd -I/h/hp/binutils/cvs_latest/src/gas/../intl -I../intl -DLOCALEDIR="\"/usr/local/share/locale\"" -W -Wall -Wstrict-prototypes -Wmissing-prototypes -g -O2 -c /h/hp/binutils/cvs_latest/src/gas/dw2gencfi.c
/h/hp/binutils/cvs_latest/src/gas/dw2gencfi.c: In function `cfi_parse_arg':
/h/hp/binutils/cvs_latest/src/gas/dw2gencfi.c:147: warning: implicit declaration of function `tc_regname_to_dw2regnum'
/h/hp/binutils/cvs_latest/src/gas/dw2gencfi.c: In function `dot_cfi_endproc':
/h/hp/binutils/cvs_latest/src/gas/dw2gencfi.c:656: parse error before `exp'
/h/hp/binutils/cvs_latest/src/gas/dw2gencfi.c:657: `exp' undeclared (first use in this function)
/h/hp/binutils/cvs_latest/src/gas/dw2gencfi.c:657: (Each undeclared identifier is reported only oncemake[3]: Leaving directory `/n/asic_slask/hp/autobinutest/gas'
brgds, H-P