[llvm-bugs] [Bug 37330] New: clang6 segfaults with -mcpu=power9
via llvm-bugs
llvm-bugs at lists.llvm.org
Thu May 3 12:05:42 PDT 2018
https://bugs.llvm.org/show_bug.cgi?id=37330
Bug ID: 37330
Summary: clang6 segfaults with -mcpu=power9
Product: clang
Version: 6.0
Hardware: Other
OS: FreeBSD
Status: NEW
Severity: enhancement
Priority: P
Component: -New Bugs
Assignee: unassignedclangbugs at nondot.org
Reporter: kennethsalerno at yahoo.com
CC: llvm-bugs at lists.llvm.org
Created attachment 20259
--> https://bugs.llvm.org/attachment.cgi?id=20259&action=edit
source file to reproduce error
The same compilation without "-mcpu=power9" succeeds.
# Crash reproducer for clang version 6.0.0 (tags/RELEASE_600/final)
# Driver args:
"-B" "/usr/local/bin/powerpc64-unknown-freebsd11.1-" \
"--target=powerpc64-unknown-freebsd11.1" \
"--sysroot=/usr/obj/powerpc.powerpc64/usr/src/tmp" \
"-B" "/usr/obj/powerpc.powerpc64/usr/src/tmp/usr/bin" \
"-O2" \
"-fomit-frame-pointer" \
"-pipe" \
"-fno-stack-protector" \
"-D" "_FORTIFY_SOURCE=0" \
"-fno-asynchronous-unwind-tables" \
"-mcpu=power9" \
"-mtune=power9" \
"-m32" \
"-I" "." \
"-I" "/usr/src/sys/boot/libstand32/../../../lib/libstand" \
"-D" "BZ_NO_STDIO" \
"-D" "BZ_NO_COMPRESS" \
"-D" "HAVE_MEMCPY" \
"-I"
"/usr/src/sys/boot/libstand32/../../../lib/libstand/../../contrib/zlib" \
"-ffreestanding" \
"-Wformat" \
"-msoft-float" \
"-D" "_STANDALONE" \
"-MD" \
"-MF" ".depend.adler32.o" \
"-MT" "adler32.o" \
"-std=gnu99" \
"-Wno-pointer-sign" \
"-Wno-empty-body" \
"-Wno-string-plus-int" \
"-Wno-unused-const-variable" \
"-Wno-tautological-compare" \
"-Wno-unused-value" \
"-Wno-parentheses-equality" \
"-Wno-unused-function" \
"-Wno-enum-conversion" \
"-Wno-unused-local-typedef" \
"-Wno-address-of-packed-member" \
"-Wno-switch" \
"-Wno-switch-enum" \
"-Wno-knr-promoted-parameter" \
"-Wno-parentheses" \
"-Qunused-arguments" \
"-c" \
"/usr/src/sys/boot/libstand32/../../../lib/libstand/../../contrib/zlib/adler32.c"
\
"-o" "adler32.o"
# Original command:
"/usr/local/llvm60/bin/clang-6.0" \
"-cc1" \
"-triple" "powerpc-unknown-freebsd11.1" \
"-emit-obj" \
"-disable-free" \
"-main-file-name" "adler32.c" \
"-mrelocation-model" "static" \
"-mthread-model" "posix" \
"-masm-verbose" \
"-mconstructor-aliases" \
"-ffreestanding" \
"-target-cpu" "pwr9" \
"-target-feature" \
"-hard-float" \
"-msoft-float" \
"-mfloat-abi" "soft" \
"-dwarf-column-info" \
"-debugger-tuning=gdb" \
"-coverage-notes-file"
"/usr/obj/powerpc.powerpc64/usr/src/sys/boot/libstand32/adler32.gcno" \
"-resource-dir" "/usr/local/llvm60/lib/clang/6.0.0" \
"-dependency-file" ".depend.adler32.o" \
"-sys-header-deps" \
"-MT" "adler32.o" \
"-D" "_FORTIFY_SOURCE=0" \
"-I" "." \
"-I" "/usr/src/sys/boot/libstand32/../../../lib/libstand" \
"-D" "BZ_NO_STDIO" \
"-D" "BZ_NO_COMPRESS" \
"-D" "HAVE_MEMCPY" \
"-I"
"/usr/src/sys/boot/libstand32/../../../lib/libstand/../../contrib/zlib" \
"-D" "_STANDALONE" \
"-isysroot" "/usr/obj/powerpc.powerpc64/usr/src/tmp" \
"-O2" \
"-Wformat" \
"-Wno-pointer-sign" \
"-Wno-empty-body" \
"-Wno-string-plus-int" \
"-Wno-unused-const-variable" \
"-Wno-tautological-compare" \
"-Wno-unused-value" \
"-Wno-parentheses-equality" \
"-Wno-unused-function" \
"-Wno-enum-conversion" \
"-Wno-unused-local-typedef" \
"-Wno-address-of-packed-member" \
"-Wno-switch" \
"-Wno-switch-enum" \
"-Wno-knr-promoted-parameter" \
"-Wno-parentheses" \
"-std=gnu99" \
"-fdebug-compilation-dir" \
"/usr/obj/powerpc.powerpc64/usr/src/sys/boot/libstand32" \
"-ferror-limit" "19" \
"-fmessage-length" "0" \
"-fno-signed-char" \
"-fobjc-runtime=gnustep" \
"-fdiagnostics-show-option" \
"-vectorize-loops" \
"-vectorize-slp" \
"-o" "adler32.o" \
"-x" "c" \
"/usr/src/sys/boot/libstand32/../../../lib/libstand/../../contrib/zlib/adler32.c"
\
"/usr/local/llvm60/bin/clang-6.0" \
"-cc1" \
"-triple" "powerpc-unknown-freebsd11.1" \
"-emit-obj" \
"-disable-free" \
"-main-file-name" "adler32.c" \
"-mrelocation-model" "static" \
"-mthread-model" "posix" \
"-masm-verbose" \
"-mconstructor-aliases" \
"-ffreestanding" \
"-target-cpu" "pwr9" \
"-target-feature" \
"-hard-float" \
"-msoft-float" \
"-mfloat-abi" "soft" \
"-dwarf-column-info" \
"-debugger-tuning=gdb" \
"-coverage-notes-file"
"/usr/obj/powerpc.powerpc64/usr/src/sys/boot/libstand32/adler32.gcno" \
"-sys-header-deps" \
"-D" "_FORTIFY_SOURCE=0" \
"-D" "BZ_NO_STDIO" \
"-D" "BZ_NO_COMPRESS" \
"-D" "HAVE_MEMCPY" \
"-D" "_STANDALONE" \
"-O2" \
"-Wformat" \
"-Wno-pointer-sign" \
"-Wno-empty-body" \
"-Wno-string-plus-int" \
"-Wno-unused-const-variable" \
"-Wno-tautological-compare" \
"-Wno-unused-value" \
"-Wno-parentheses-equality" \
"-Wno-unused-function" \
"-Wno-enum-conversion" \
"-Wno-unused-local-typedef" \
"-Wno-address-of-packed-member" \
"-Wno-switch" \
"-Wno-switch-enum" \
"-Wno-knr-promoted-parameter" \
"-Wno-parentheses" \
"-std=gnu99" \
"-ferror-limit" "19" \
"-fmessage-length" "0" \
"-fno-signed-char" \
"-fobjc-runtime=gnustep" \
"-fdiagnostics-show-option" \
"-vectorize-loops" \
"-vectorize-slp" \
"-x" "c" \
"adler32-be93c8.c" \
--
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20180503/d8ab617d/attachment.html>
More information about the llvm-bugs
mailing list