From: Nathan Binkert Date: Fri, 27 Apr 2007 20:59:17 +0000 (-0700) Subject: gcc 4.1 claims that mem_data might be used uninitialized, X-Git-Tag: m5_2.0_beta3~21^2 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=69d259b6ae97b9f6803a34c794baec752977d611;p=gem5.git gcc 4.1 claims that mem_data might be used uninitialized, though I don't believe that's true. Placate it anyway. --HG-- extra : convert_revision : dcd9427af14f0e7a33510054bee4ecbe73e050be --- diff --git a/src/arch/sparc/isa/formats/mem/swap.isa b/src/arch/sparc/isa/formats/mem/swap.isa index b71542a2b..f3d15670f 100644 --- a/src/arch/sparc/isa/formats/mem/swap.isa +++ b/src/arch/sparc/isa/formats/mem/swap.isa @@ -39,7 +39,7 @@ def template SwapExecute {{ Addr EA; %(fp_enable_check)s; %(op_decl)s; - uint64_t mem_data; + uint64_t mem_data = 0; %(op_rd)s; %(ea_code)s;