<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 LLVM When Aggressive Optimization Flags Are Used"
   href="http://llvm.org/bugs/show_bug.cgi?id=17889">17889</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>Clang Fails to LLVM When Aggressive Optimization Flags Are Used
          </td>
        </tr>

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

        <tr>
          <th>Version</th>
          <td>trunk
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>Macintosh
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>MacOS X
          </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>mathpup@gmail.com
          </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=11523" name="attach_11523" title="log from ./configure">attachment 11523</a> <a href="attachment.cgi?id=11523&action=edit" title="log from ./configure">[details]</a></span>
log from ./configure

I am using recent version of LLVM from svn to build LLVM itself. This time I
decided to try some aggressive optimization settings:

CFLAGS='-O3 -flto -fslp-vectorize-aggressive -mavx'

The build quickly fails with the errors

Intrinsic name not mangled correctly for type arguments!
i64 (i8*, i1)* @llvm.objectsize.i64.p0i8
Broken module found, compilation aborted!
Stack dump:
0.    Running pass 'Function Pass Manager' on module 'ld-temp.o'.
1.    Running pass 'Module Verifier' on function '@p_ere'
clang: error: unable to execute command: Illegal instruction: 4
clang: error: linker command failed due to signal (use -v to see invocation)

I am attaching the config.log and output from the compiler. Let me know if you
need more information.</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>