Bug 6813

Summary: make tooldir=/usr gives errors
Product: binutils Reporter: Wolfgang Messingschlager <w.mess>
Component: gasAssignee: unassigned
Status: RESOLVED FIXED    
Severity: normal CC: bug-binutils
Priority: P2    
Version: 2.17   
Target Milestone: ---   
Host: Linux Target: Linux
Build: Last reconfirmed:

Description Wolfgang Messingschlager 2008-08-02 18:37:26 UTC
I tried to build binutils version 2.17 on a Linux system with an Athlon 2000MHz
CPU. During the make phase I got the problem, that gas/read.c contains several
times the not initilialized variable char stopc;

The command was
gcc -DHAVE_CONFIG_H -I. -I../../binutils-2.17/gas -I. -D_GNU_SOURCE -I.
-I../../binutils-2.17/gas -I..
/bfd -I../../binutils-2.17/gas/config -I../../binutils-2.17/gas/../include
-I../../binutils-2.17/gas/.
. -I../../binutils-2.17/gas/../bfd -I../../binutils-2.17/gas/../intl -I../intl
-DLOCALEDIR="\"/usr/sha
re/locale\""   -W -Wall -Wstrict-prototypes -Wmissing-prototypes -Werror -O3
-march=athlon-xp  -c ../.
./binutils-2.17/gas/read.c

The error was

binutils-2.17/gas/read.c:1810: warning: 'stopc' may be used uninitialized in
this function
Comment 1 Alan Modra 2008-08-03 02:49:36 UTC
This has already been fixed in current sources.