This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
Fix GCC4 warnings
- From: Andreas Schwab <schwab at suse dot de>
- To: binutils at sources dot redhat dot com
- Date: Wed, 20 Apr 2005 15:30:03 +0200
- Subject: Fix GCC4 warnings
This patch fixes these warnings:
/cvs/binutils/gas/config/tc-ia64.c: In function âspecify_resourceâ:
/cvs/binutils/gas/config/tc-ia64.c:8197: warning: âtmpl.pathâ is used uninitialized in this function
/cvs/binutils/gas/config/tc-ia64.c:8197: warning: âtmpl.lineâ is used uninitialized in this function
/cvs/binutils/gas/config/tc-ia64.c:8197: warning: âtmpl.fileâ is used uninitialized in this function
/cvs/binutils/gas/config/tc-ia64.c:8197: warning: âtmpl.depindâ is used uninitialized in this function
/cvs/binutils/gas/config/tc-ia64.c:8197: warning: âtmpl.mem_offset.baseâ is used uninitialized in this function
/cvs/binutils/gas/config/tc-ia64.c:8197: warning: âtmpl.mem_offset.offsetâ is used uninitialized in this function
Installed as obvious.
Andreas.
2005-04-20 Andreas Schwab <schwab@suse.de>
* config/tc-ia64.c (specify_resource): Initialize all of tmpl.
--- gas/config/tc-ia64.c.~1.154.~ 2005-04-20 12:51:53.000000000 +0200
+++ gas/config/tc-ia64.c 2005-04-20 15:23:57.000000000 +0200
@@ -8171,9 +8171,15 @@ specify_resource (dep, idesc, type, spec
tmpl.qp_regno = CURR_SLOT.qp_regno;
tmpl.link_to_qp_branch = 1;
tmpl.mem_offset.hint = 0;
+ tmpl.mem_offset.offset = 0;
+ tmpl.mem_offset.base = 0;
tmpl.specific = 1;
tmpl.index = -1;
tmpl.cmp_type = CMP_NONE;
+ tmpl.depind = 0;
+ tmpl.file = NULL;
+ tmpl.line = 0;
+ tmpl.path = 0;
#define UNHANDLED \
as_warn (_("Unhandled dependency %s for %s (%s), note %d"), \
--
Andreas Schwab, SuSE Labs, schwab@suse.de
SuSE Linux Products GmbH, MaxfeldstraÃe 5, 90409 NÃrnberg, Germany
Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5
"And now for something completely different."