From: Nathan Binkert Date: Mon, 22 Sep 2008 15:25:57 +0000 (-0700) Subject: gcc: Version 4.3 is pretty anal about shadowing types, placate it. X-Git-Tag: m5_2.0_beta6~35 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=6efb930e19056e3421f3bb1996bf370883873b32;p=gem5.git gcc: Version 4.3 is pretty anal about shadowing types, placate it. In the future, it would be nice to put the O3CPU into its own namespace so that we don't end up hardcoding pointers to the global namespace. --- diff --git a/src/base/varargs.hh b/src/base/varargs.hh index 2ba8c240a..f307e58d1 100644 --- a/src/base/varargs.hh +++ b/src/base/varargs.hh @@ -150,7 +150,7 @@ struct Any : public Base template struct Argument : public RefCountingPtr > { - typedef RefCountingPtr > Base; + typedef RefCountingPtr > Base; Argument() { } Argument(const Null &null) { } @@ -169,7 +169,7 @@ template class List { public: - typedef Argument Argument; + typedef VarArgs::Argument Argument; typedef std::list list; typedef typename list::iterator iterator; typedef typename list::const_iterator const_iterator; diff --git a/src/cpu/o3/cpu_policy.hh b/src/cpu/o3/cpu_policy.hh index 32a0adcf1..c06c9a201 100644 --- a/src/cpu/o3/cpu_policy.hh +++ b/src/cpu/o3/cpu_policy.hh @@ -65,7 +65,7 @@ struct SimpleCPUPolicy /** Typedef for the branch prediction unit (which includes the BP, * RAS, and BTB). */ - typedef BPredUnit BPredUnit; + typedef ::BPredUnit BPredUnit; /** Typedef for the register file. Most classes assume a unified * physical register file. */ @@ -75,15 +75,15 @@ struct SimpleCPUPolicy /** Typedef for the rename map. */ typedef SimpleRenameMap RenameMap; /** Typedef for the ROB. */ - typedef ROB ROB; + typedef ::ROB ROB; /** Typedef for the instruction queue/scheduler. */ typedef InstructionQueue IQ; /** Typedef for the memory dependence unit. */ - typedef MemDepUnit MemDepUnit; + typedef ::MemDepUnit MemDepUnit; /** Typedef for the LSQ. */ - typedef LSQ LSQ; + typedef ::LSQ LSQ; /** Typedef for the thread-specific LSQ units. */ - typedef LSQUnit LSQUnit; + typedef ::LSQUnit LSQUnit; /** Typedef for fetch. */ typedef DefaultFetch Fetch; @@ -109,7 +109,7 @@ struct SimpleCPUPolicy typedef DefaultIEWDefaultCommit IEWStruct; /** The struct for communication within the IEW stage. */ - typedef IssueStruct IssueStruct; + typedef ::IssueStruct IssueStruct; /** The struct for all backwards communication. */ typedef TimeBufStruct TimeStruct;