From: Giacomo Travaglini Date: Tue, 15 Oct 2019 11:54:08 +0000 (+0100) Subject: base: Fix gem5.fast compilation X-Git-Tag: v19.0.0.0~439 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=761c3e0cc9bea8a667340601caf0f31432d4e65c;p=gem5.git 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 --- 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