Bug 11123 - fails to build on trunk (uninitialized var in opcodes/arm-dis.c)
Summary: fails to build on trunk (uninitialized var in opcodes/arm-dis.c)
Status: RESOLVED FIXED
Alias: None
Product: binutils
Classification: Unclassified
Component: binutils (show other bugs)
Version: 2.21
: P2 normal
Target Milestone: ---
Assignee: unassigned
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-01-01 17:32 UTC by Matthias Klose
Modified: 2010-01-04 10:23 UTC (History)
1 user (show)

See Also:
Host:
Target: arm-linux-gnueabi
Build:
Last reconfirmed:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Matthias Klose 2010-01-01 17:32:14 UTC
trunk 20100101:

gcc -DHAVE_CONFIG_H -I. -I../../opcodes -I. -I../../opcodes -I../bfd
-I../../opcodes/../include -I../../opcodes/../bfd -W -Wall -Wstrict-prototypes
-Wmissing-prototypes -Wshadow -Werror -g -O2 -MT arm-dis.lo -MD -MP -MF
.deps/arm-dis.Tpo -c ../../opcodes/arm-dis.c  -fPIC -DPIC -o .libs/arm-dis.o
cc1: warnings being treated as errors
../../opcodes/arm-dis.c: In function 'print_insn_coprocessor':
../../opcodes/arm-dis.c:1752: error: 'value' may be used uninitialized in this
function
make[5]: *** [arm-dis.lo] Error 1
Comment 1 cvs-commit@gcc.gnu.org 2010-01-04 10:18:45 UTC
Subject: Bug 11123

CVSROOT:	/cvs/src
Module name:	src
Changes by:	nickc@sourceware.org	2010-01-04 10:18:32

Modified files:
	opcodes        : ChangeLog arm-dis.c 

Log message:
	PR 11123
	* arm-dis.c (print_insn_coprocessor): Initialise value.

Patches:
http://sources.redhat.com/cgi-bin/cvsweb.cgi/src/opcodes/ChangeLog.diff?cvsroot=src&r1=1.1538&r2=1.1539
http://sources.redhat.com/cgi-bin/cvsweb.cgi/src/opcodes/arm-dis.c.diff?cvsroot=src&r1=1.119&r2=1.120

Comment 2 Nick Clifton 2010-01-04 10:23:34 UTC
Hi Matthias,
 
  I do not get this error message, but then I am probably using an older version
of gcc to build the binutils than you.  Anyway I have checked in the obvious fix
to initialise the value variable when it is declared, so that should take care
of the problem.

Cheers
  Nick