<html>
    <head>
      <base href="https://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 --- - Binary built with `-flto` errors on ARM"
   href="https://llvm.org/bugs/show_bug.cgi?id=27440">27440</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>Binary built with `-flto` errors on ARM
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>tools
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>3.8
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>Other
          </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>TableGen
          </td>
        </tr>

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

        <tr>
          <th>Reporter</th>
          <td>tulipawn@gmail.com
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>llvm-bugs@lists.llvm.org
          </td>
        </tr>

        <tr>
          <th>Classification</th>
          <td>Unclassified
          </td>
        </tr></table>
      <p>
        <div>
        <pre>Even though I could probably point to the cause of the problem, namely building
with gcc 5.3.0 and -flto, it's still possible the newer gcc has exposed a bug
in tblgen:

llvm[4]: Building PPC.td instruction information with tblgen
/arm-unknown-linux-gnueabihf/llvm/Release/bin/llvm-tblgen -I 
/src/llvm/lib/Target/PowerPC -I  /src/llvm/include -I  /src/llvm/include -I 
/src/llvm/lib/Target -gen-instr-info -o 
/arm-unknown-linux-gnueabihf/llvm/lib/Target/PowerPC/Release/PPCGenInstrInfo.inc.tmp
/src/llvm/lib/Target/PowerPC/PPC.td
Included from /src/llvm/lib/Target/PowerPC/PPC.td:253:
Included from /src/llvm/lib/Target/PowerPC/PPCInstrInfo.td:2817:
/src/llvm/lib/Target/PowerPC/PPCInstrHTM.td:96:1: error: pattern has side
effects, but hasSideEffects isn't set on the output instructions
def : Pat<(int_ppc_tbegin i32:$R),
^
Included from /src/llvm/lib/Target/PowerPC/PPC.td:253:
/src/llvm/lib/Target/PowerPC/PPCInstrInfo.td:1928:1: error: defined here
def XORI  : DForm_4<26, (outs gprc:$dst), (ins gprc:$src1, u16imm:$src2),
^
Included from /src/llvm/lib/Target/PowerPC/PPC.td:16:
/src/llvm/include/llvm/Target/Target.td:798:1: error: defined here
def EXTRACT_SUBREG : Instruction {
^
Included from /src/llvm/lib/Target/PowerPC/PPC.td:253:
Included from /src/llvm/lib/Target/PowerPC/PPCInstrInfo.td:2814:
/src/llvm/lib/Target/PowerPC/PPCInstr64Bit.td:1157:1: error: inferred from
pattern
def : Pat<(i32 (trunc i64:$in)),
^
Included from /src/llvm/lib/Target/PowerPC/PPC.td:253:
Included from /src/llvm/lib/Target/PowerPC/PPCInstrInfo.td:2817:
/src/llvm/lib/Target/PowerPC/PPCInstrHTM.td:30:1: error: defined here
def TBEGIN : XForm_htm0 <31, 654,
^
error:Errors in DAG patterns</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>