[Wayland-bugs] [Bug 94602] Tests fail to build when build with LTO on gcc 5.3.0
bugzilla-daemon at freedesktop.org
bugzilla-daemon at freedesktop.org
Wed Apr 12 06:22:11 UTC 2017
https://bugs.freedesktop.org/show_bug.cgi?id=94602
octoploid <octoploid at yandex.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |octoploid at yandex.com
--- Comment #2 from octoploid <octoploid at yandex.com> ---
Sure:
diff --git a/tests/test-runner.h b/tests/test-runner.h
index 64f8d4c6aa4f..600d77c93833 100644
--- a/tests/test-runner.h
+++ b/tests/test-runner.h
@@ -41,7 +41,7 @@ struct test {
static void name(void); \
\
const struct test test##name \
- __attribute__ ((section ("test_section"))) = { \
+ __attribute__ ((used, section ("test_section"))) = { \
#name, name, 0 \
}; \
\
@@ -51,7 +51,7 @@ struct test {
static void name(void); \
\
const struct test test##name \
- __attribute__ ((section ("test_section"))) = { \
+ __attribute__ ((used, section ("test_section"))) = { \
#name, name, 1 \
}; \
\
--
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/wayland-bugs/attachments/20170412/7d38882f/attachment.html>
More information about the wayland-bugs
mailing list