Fix GCC4 warnings
Andreas Schwab
schwab@suse.de
Wed Apr 20 13:31:00 GMT 2005
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."
More information about the Binutils
mailing list