gcc: Add extra parens to quell warnings.
authorNathan Binkert <nate@binkert.org>
Sun, 28 Sep 2008 04:03:49 +0000 (21:03 -0700)
committerNathan Binkert <nate@binkert.org>
Sun, 28 Sep 2008 04:03:49 +0000 (21:03 -0700)
commit80d9be86e616e819cc3c9a0bbc8a42a5beb41247
tree311a579c3be054b5dfb603ac6040af3027d416a2
parentcf7ddd8e8ac92cf5b90cd89a028414dd782c645a
gcc: Add extra parens to quell warnings.
Even though we're not incorrect about operator precedence, let's add
some parens in some particularly confusing places to placate GCC 4.3
so that we don't have to turn the warning off.  Agreed that this is a
bit of a pain for those users who get the order of operations correct,
but it is likely to prevent bugs in certain cases.
21 files changed:
src/arch/alpha/ev5.hh
src/arch/alpha/pagetable.hh
src/arch/alpha/utility.hh
src/arch/mips/dsp.cc
src/arch/mips/isa/decoder.isa
src/arch/mips/pagetable.hh
src/arch/mips/utility.cc
src/arch/sparc/faults.cc
src/arch/sparc/isa/formats/mem/util.isa
src/arch/sparc/tlb.cc
src/arch/x86/emulenv.cc
src/arch/x86/insts/microop.cc
src/arch/x86/predecoder.cc
src/arch/x86/regfile.cc
src/base/circlebuf.cc
src/base/intmath.hh
src/base/random_mt.cc
src/base/stats/text.cc
src/cpu/o3/cpu.cc
src/dev/alpha/tsunami_cchip.cc
src/dev/terminal.cc