changeset e63321487404 in /z/repo/gem5
details: http://repo.gem5.org/gem5?cmd=changeset;node=e63321487404
description:
        cpu: Avoid including inorder TLBUnit to avoid gcc LTO bug

        This patch comments out the inclusion of the inorder TLBUnit which is
        only used in the 9-stage pipeline. With the TLBUnit present, gcc >=
        4.6 in combination with LTO ends up throwing away the definition of
        the TLBUnit destructor, and consequently fail to link. See
        http://gcc.gnu.org/bugzilla/show_bug.cgi?id=53808 for more details
        about the bug, and http://gcc.gnu.org/ml/gcc/2012-06/msg00397.html for
        the discussion thread that also touches on similar issues seen with
        clang.

diffstat:

 src/cpu/inorder/resources/resource_list.hh |  4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diffs (14 lines):

diff -r b6a47b43f4df -r e63321487404 src/cpu/inorder/resources/resource_list.hh
--- a/src/cpu/inorder/resources/resource_list.hh        Mon Mar 18 11:24:56 
2013 +0100
+++ b/src/cpu/inorder/resources/resource_list.hh        Wed Mar 20 06:41:23 
2013 -0400
@@ -42,7 +42,9 @@
 #include "cpu/inorder/resources/graduation_unit.hh"
 #include "cpu/inorder/resources/inst_buffer.hh"
 #include "cpu/inorder/resources/mult_div_unit.hh"
-#include "cpu/inorder/resources/tlb_unit.hh"
+// The TLBUnit is only needed with the 9-stage pipe and is
+// triggering a gcc LTO bug
+//#include "cpu/inorder/resources/tlb_unit.hh"
 #include "cpu/inorder/resources/use_def.hh"
 
 #endif
_______________________________________________
gem5-dev mailing list
[email protected]
http://m5sim.org/mailman/listinfo/gem5-dev

Reply via email to