gcc 4.1 claims that mem_data might be used uninitialized,
authorNathan Binkert <binkertn@umich.edu>
Fri, 27 Apr 2007 20:59:17 +0000 (13:59 -0700)
committerNathan Binkert <binkertn@umich.edu>
Fri, 27 Apr 2007 20:59:17 +0000 (13:59 -0700)
though I don't believe that's true.  Placate it anyway.

--HG--
extra : convert_revision : dcd9427af14f0e7a33510054bee4ecbe73e050be

src/arch/sparc/isa/formats/mem/swap.isa

index b71542a2bafca8050608eb5ff9f37e42c3ebd337..f3d15670fb736fc858e3855b09c6f2eb4be171da 100644 (file)
@@ -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;