From 761c3e0cc9bea8a667340601caf0f31432d4e65c Mon Sep 17 00:00:00 2001 From: Giacomo Travaglini Date: Tue, 15 Oct 2019 12:54:08 +0100 Subject: [PATCH] base: Fix gem5.fast compilation Change-Id: I86c83e8622ae5a88ff802ccb1cb919194c1251ef Signed-off-by: Giacomo Travaglini Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/21820 Reviewed-by: Jason Lowe-Power Reviewed-by: Bobby R. Bruce Maintainer: Jason Lowe-Power Tested-by: kokoro --- src/base/loader/aout_object.cc | 2 +- src/base/loader/ecoff_object.cc | 2 +- src/base/loader/elf_object.cc | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/base/loader/aout_object.cc b/src/base/loader/aout_object.cc index 47f3021b7..99713d911 100644 --- a/src/base/loader/aout_object.cc +++ b/src/base/loader/aout_object.cc @@ -76,7 +76,7 @@ AoutObject::buildImage() const MemoryImage::Segment{ "bss", N_BSSADDR(*execHdr), execHdr->bsize} }); - for (auto &seg: image.segments()) + for (auto M5_VAR_USED &seg: image.segments()) DPRINTFR(Loader, "%s\n", seg); return image; diff --git a/src/base/loader/ecoff_object.cc b/src/base/loader/ecoff_object.cc index 2f534311a..7af2c7aec 100644 --- a/src/base/loader/ecoff_object.cc +++ b/src/base/loader/ecoff_object.cc @@ -89,7 +89,7 @@ EcoffObject::buildImage() const { "bss", aoutHdr->bss_start, aoutHdr->bsize } }); - for (auto &seg: image.segments()) + for (auto M5_VAR_USED &seg: image.segments()) DPRINTFR(Loader, "%s\n", seg); return image; diff --git a/src/base/loader/elf_object.cc b/src/base/loader/elf_object.cc index e35c28bd0..33aa2d8d1 100644 --- a/src/base/loader/elf_object.cc +++ b/src/base/loader/elf_object.cc @@ -131,7 +131,7 @@ ElfObject::ElfObject(ImageFileDataPtr ifd) : ObjectFile(ifd) "No loadable segments in '%s'. ELF file corrupted?\n", imageData->filename()); - for (auto &seg: image.segments()) + for (auto M5_VAR_USED &seg: image.segments()) DPRINTFR(Loader, "%s\n", seg); // We will actually read the sections when we need to load them -- 2.30.2