<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 --- - clang-3.8 frontend w/ -flto Segmentation fault (AArch64 target & host)"
   href="https://llvm.org/bugs/show_bug.cgi?id=28085">28085</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>clang-3.8 frontend w/ -flto Segmentation fault (AArch64 target & host)
          </td>
        </tr>

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

        <tr>
          <th>Version</th>
          <td>unspecified
          </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>Frontend
          </td>
        </tr>

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

        <tr>
          <th>Reporter</th>
          <td>anthony.louis.eden@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>While compiling QEMU 2.6.0 with -flto on AArch64 (debian jessie), the clang
frontend segfaults. Note that this same build configuration has been tested and
working on X86 host & target.

#0 0x0000002001155fec llvm::sys::PrintStackTrace(llvm::raw_ostream&)
(/usr/local/bin/../lib/libLLVM-3.8.so+0x1127fec)
Stack dump:
0.      Program arguments: /usr/local/bin/clang-3.8 -cc1 -triple
aarch64-unknown-linux-gnu -emit-llvm-bc -flto -disable-free -main-file-name
io.c -mrelocation-model static -mthread-model posix -mdisable-fp-elim
-relaxed-aliasing -fmath-errno -masm-verbose -mconstructor-aliases
-fuse-init-array -target-cpu generic -target-feature +neon -target-abi aapcs
-dwarf-column-info -debug-info-kind=limited -dwarf-version=4
-debugger-tuning=gdb -coverage-file /home/aeden/qemu-2.6.0-build/block/io.o
-resource-dir /usr/local/bin/../lib/clang/3.8.0 -dependency-file block/io.d -MP
-MT block/io.o -I /home/aeden/qemu-2.6.0/tcg -I
/home/aeden/qemu-2.6.0/tcg/aarch64 -I /home/aeden/qemu-2.6.0/linux-headers -I
/home/aeden/qemu-2.6.0-build/linux-headers -I . -I /home/aeden/qemu-2.6.0 -I
/home/aeden/qemu-2.6.0/include -I /home/aeden/qemu-2.6.0/block -I block -I
/usr/include/pixman-1 -D _GNU_SOURCE -D _FILE_OFFSET_BITS=64 -D
_LARGEFILE_SOURCE -I /home/aeden/qemu-2.6.0/tests -I /usr/include/glib-2.0 -I
/usr/lib/aarch64-linux-gnu/glib-2.0/include -internal-isystem
/usr/local/include -internal-isystem /usr/local/bin/../lib/clang/3.8.0/include
-internal-externc-isystem /usr/include/aarch64-linux-gnu
-internal-externc-isystem /include -internal-externc-isystem /usr/include
-Wstrict-prototypes -Wredundant-decls -Wall -Wundef -Wwrite-strings
-Wmissing-prototypes -Wno-string-plus-int -Wno-initializer-overrides
-Wendif-labels -Wmissing-include-dirs -Wempty-body -Wnested-externs
-Wformat-security -Wformat-y2k -Winit-self -Wignored-qualifiers
-Wold-style-definition -Wtype-limits -fconst-strings -fdebug-compilation-dir
/home/aeden/qemu-2.6.0-build -ferror-limit 19 -fmessage-length
239 -pthread -stack-protector 2 -fallow-half-arguments-and-returns
-fno-signed-char -fno-inline -fobjc-runtime=gcc -fno-common
-fdiagnostics-show-option -fcolor-diagnostics -o block/io.o -x c
/home/aeden/qemu-2.6.0/block/io.c
1.      <eof> parser at end of file
2.      Per-file LLVM IR generation
3.      /home/aeden/qemu-2.6.0/block/io.c:2077:24: Generating code for
declaration 'bdrv_em_aiocb_info'
clang-3.8: error: unable to execute command: Segmentation fault
clang-3.8: error: clang frontend command failed due to signal (use -v to see
invocation)
clang version 3.8.0 (tags/RELEASE_380/final)
Target: aarch64-unknown-linux-gnu
Thread model: posix
InstalledDir: /usr/local/bin
clang-3.8: note: diagnostic msg: PLEASE submit a bug report to
<a href="http://llvm.org/bugs/">http://llvm.org/bugs/</a> and include the crash backtrace, preprocessed source, and
associated run script.
clang-3.8: note: diagnostic msg:
********************

PLEASE ATTACH THE FOLLOWING FILES TO THE BUG REPORT:
Preprocessed source(s) and associated run script(s) are located at:
clang-3.8: note: diagnostic msg: /tmp/io-0acadc.c
clang-3.8: note: diagnostic msg: /tmp/io-0acadc.sh
clang-3.8: note: diagnostic msg:

********************</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>