diff options
author | Clifford Wolf <clifford@clifford.at> | 2014-11-07 20:58:08 +0100 |
---|---|---|
committer | Clifford Wolf <clifford@clifford.at> | 2014-11-07 20:58:08 +0100 |
commit | 89be7bf52785c9a3058a0049481388ad44459174 (patch) | |
tree | b41a2e656d3fe56ec442ffd53455f2d55c26e32b /kernel | |
parent | c5dbb1aa28f5fb10ebbc0696545ede6fa76ce20b (diff) | |
download | yosys-89be7bf52785c9a3058a0049481388ad44459174.tar.gz yosys-89be7bf52785c9a3058a0049481388ad44459174.tar.bz2 yosys-89be7bf52785c9a3058a0049481388ad44459174.zip |
Added "used" attribute to entries in yosys_cover_list
http://www.reddit.com/r/yosys/comments/2kw479/fyi_clang_350_build_error/cltgwyc
http://llvm.org/bugs/show_bug.cgi?id=19474
Diffstat (limited to 'kernel')
-rw-r--r-- | kernel/log.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/log.h b/kernel/log.h index 707497a99..93e8144a0 100644 --- a/kernel/log.h +++ b/kernel/log.h @@ -90,7 +90,7 @@ static inline void log_assert_worker(bool cond, const char *expr, const char *fi #ifdef YOSYS_ENABLE_COVER #define cover(_id) do { \ - static CoverData __d __attribute__((section("yosys_cover_list"), aligned(1))) = { __FILE__, __FUNCTION__, _id, __LINE__, 0 }; \ + static CoverData __d __attribute__((section("yosys_cover_list"), aligned(1), used)) = { __FILE__, __FUNCTION__, _id, __LINE__, 0 }; \ __d.counter++; \ } while (0) |