<html>
    <head>
      <base href="https://bugs.freedesktop.org/">
    </head>
    <body><span class="vcard"><a class="email" href="mailto:octoploid@yandex.com" title="octoploid <octoploid@yandex.com>"> <span class="fn">octoploid</span></a>
</span> changed
          <a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - Tests fail to build when build with LTO on gcc 5.3.0"
   href="https://bugs.freedesktop.org/show_bug.cgi?id=94602">bug 94602</a>
          <br>
             <table border="1" cellspacing="0" cellpadding="8">
          <tr>
            <th>What</th>
            <th>Removed</th>
            <th>Added</th>
          </tr>

         <tr>
           <td style="text-align:right;">CC</td>
           <td>
                
           </td>
           <td>octoploid@yandex.com
           </td>
         </tr></table>
      <p>
        <div>
            <b><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - Tests fail to build when build with LTO on gcc 5.3.0"
   href="https://bugs.freedesktop.org/show_bug.cgi?id=94602#c2">Comment # 2</a>
              on <a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - Tests fail to build when build with LTO on gcc 5.3.0"
   href="https://bugs.freedesktop.org/show_bug.cgi?id=94602">bug 94602</a>
              from <span class="vcard"><a class="email" href="mailto:octoploid@yandex.com" title="octoploid <octoploid@yandex.com>"> <span class="fn">octoploid</span></a>
</span></b>
        <pre>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                                  \
        };                                                      \
                                                                \</pre>
        </div>
      </p>


      <hr>
      <span>You are receiving this mail because:</span>

      <ul>
          <li>You are the assignee for the bug.</li>
      </ul>
    </body>
</html>