Bug 6813 - make tooldir=/usr gives errors
Summary: make tooldir=/usr gives errors
Status: RESOLVED FIXED
Alias: None
Product: binutils
Classification: Unclassified
Component: gas (show other bugs)
Version: 2.17
: P2 normal
Target Milestone: ---
Assignee: unassigned
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-08-02 18:37 UTC by Wolfgang Messingschlager
Modified: 2008-08-03 02:49 UTC (History)
1 user (show)

See Also:
Host: Linux
Target: Linux
Build:
Last reconfirmed:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.