<html>
    <head>
      <base href="http://llvm.org/bugs/" />
    </head>
    <body><table border="1" cellspacing="0" cellpadding="8">
        <tr>
          <th>Bug ID</th>
          <td><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW --- - clang fails to compile code with LTO: gold complains: “atomic store operand must be power-of-two byte-sized integer”"
   href="http://llvm.org/bugs/show_bug.cgi?id=16998">16998</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>clang fails to compile code with LTO: gold complains: “atomic store operand must be power-of-two byte-sized integer”
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>clang
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>3.3
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>PC
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>Linux
          </td>
        </tr>

        <tr>
          <th>Status</th>
          <td>NEW
          </td>
        </tr>

        <tr>
          <th>Severity</th>
          <td>normal
          </td>
        </tr>

        <tr>
          <th>Priority</th>
          <td>P
          </td>
        </tr>

        <tr>
          <th>Component</th>
          <td>-New Bugs
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>unassignedclangbugs@nondot.org
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>florian.weber@sfz-bw.de
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>llvmbugs@cs.uiuc.edu
          </td>
        </tr>

        <tr>
          <th>Classification</th>
          <td>Unclassified
          </td>
        </tr></table>
      <p>
        <div>
        <pre>Created <span class=""><a href="attachment.cgi?id=11096" name="attach_11096" title="the code that makes gold abort">attachment 11096</a> <a href="attachment.cgi?id=11096&action=edit" title="the code that makes gold abort">[details]</a></span>
the code that makes gold abort

At first I want to apologize for the huge minimal-example with
boost-dependency, but I have not been able to reduce it any further. Removing
any line I tried resulted in the bug disappearing.


If I try to compile the attached code, clang (or to be precise: gold) aborts
with the following error-message during linking:

atomic store operand must be power-of-two byte-sized integer
  store atomic i1 true, i1* @_ZL11debug_level.0 seq_cst, align 1
 i1Broken module found, compilation aborted!
Stack dump:
0.      Running pass 'Function Pass Manager' on module 'ld-temp.o'.
1.      Running pass 'Module Verifier' on function '@main'
clang: error: unable to execute command: Aborted (core dumped)
clang: error: linker command failed due to signal (use -v to see invocation)
make: *** [a.out] Fehler 254

This could be produced on two completely independent systems (Archlinux x86_64
and Fedora).</pre>
        </div>
      </p>
      <hr>
      <span>You are receiving this mail because:</span>
      
      <ul>
          <li>You are on the CC list for the bug.</li>
      </ul>
    </body>
</html>