https://llvm.org/bugs/show_bug.cgi?id=27056
Bug ID: 27056
Summary: clang-cl: The unwind destination does not have an
exception handling instruction!
Product: clang
Version: trunk
Hardware: All
OS: All
Status: NEW
Severity: normal
Priority: P
Component: -New Bugs
Assignee: [email protected]
Reporter: [email protected]
CC: [email protected]
Classification: Unclassified
Created attachment 16083
--> https://llvm.org/bugs/attachment.cgi?id=16083&action=edit
reproducer
At least with recent trunk r264249, running
clang-cl --target=x86_64-pc-windows-mscv -EHsc -Oxs -c PREPROC.cc
on the attached PREPROC.cc fails with
> The unwind destination does not have an exception handling instruction!
> %call.i.i.i.i20 = invoke %"struct.STD::vector.1"*
> @"\01??0?$vector@H@STD@@QEAA@AEBU01@@Z"(%"struct.STD::vector.1"* %scevgep47,
> %"struct.STD::vector.1"* dereferenceable(8) %scevgep) #3
> to label %call.i.i.i.i.noexc unwind label %catch.dispatch
> CatchSwitchInst not the first non-PHI instruction in the block.
> %8 = catchswitch within none [label %catch] unwind to caller
> fatal error: error in backend: Broken function found, compilation aborted!
> clang-3.9: error: clang frontend command failed with exit code 70 (use -v to
> see invocation)
> clang version 3.9.0 (http://llvm.org/git/clang.git
> d2ff6d87678662b1692b85f8d803a98e8343ffc9) (http://llvm.org/git/llvm.git
> 66d1cd513035b7d48d0fb08d71b31884c5f85308)
> Target: x86_64-pc-windows-msvc
> Thread model: posix
> InstalledDir: /home/sbergman/clang/git/inst/bin
> clang-3.9: note: diagnostic msg: PLEASE submit a bug report to
> http://llvm.org/bugs/ and include the crash backtrace, preprocessed source,
> and associated run script.
> clang-3.9: 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.9: note: diagnostic msg: /tmp/PREPROC-ce219e.cpp
> clang-3.9: note: diagnostic msg: /tmp/PREPROC-ce219e.sh
> clang-3.9: note: diagnostic msg:
>
> ********************
(The content of /tmp/PREPROC-ce219e.sh being
> # Crash reproducer for clang version 3.9.0 (http://llvm.org/git/clang.git
> d2ff6d87678662b1692b85f8d803a98e8343ffc9) (http://llvm.org/git/llvm.git
> 66d1cd513035b7d48d0fb08d71b31884c5f85308)
> # Driver args: "--driver-mode=cl" "--target=x86_64-pc-windows-mscv" "-EHsc"
> "-Oxs" "-c" "PREPROC.cc"
> # Original command: "/home/sbergman/clang/git/inst/bin/clang-3.9" "-cc1"
> "-triple" "x86_64-pc-windows-msvc18.0.0" "-emit-obj"
> "-mincremental-linker-compatible" "-disable-free" "-main-file-name"
> "PREPROC.cc" "-mrelocation-model" "pic" "-pic-level" "2" "-mthread-model"
> "posix" "-relaxed-aliasing" "-fmath-errno" "-masm-verbose"
> "-mconstructor-aliases" "-munwind-tables" "-target-cpu" "x86-64" "-D_MT"
> "--dependent-lib=libcmt" "--dependent-lib=oldnames" "-fcxx-exceptions"
> "-fexceptions" "-fexternc-nounwind" "-fms-volatile" "-fdiagnostics-format"
> "msvc" "-momit-leaf-frame-pointer" "-dwarf-column-info"
> "-debugger-tuning=gdb" "-coverage-file" "/home/sbergman/TMP/PREPROC.cc"
> "-resource-dir" "/home/sbergman/clang/git/inst/bin/../lib/clang/3.9.0"
> "-internal-isystem"
> "/home/sbergman/clang/git/inst/bin/../lib/clang/3.9.0/include"
> "-internal-isystem" "C:/Program Files/Microsoft Visual Studio
> 10.0/VC/include" "-internal-isystem" "C:/Program Files/Microsoft Visual
> Studio 9.0/VC/include" "-internal
-isystem" "C:/Program Files/Microsoft Visual Studio
9.0/VC/PlatformSDK/Include" "-internal-isystem" "C:/Program Files/Microsoft
Visual Studio 8/VC/include" "-internal-isystem" "C:/Program Files/Microsoft
Visual Studio 8/VC/PlatformSDK/Include" "-Os" "-fdeprecated-macro"
"-fdebug-compilation-dir" "/home/sbergman/TMP" "-ferror-limit" "19"
"-fmessage-length" "165" "-fms-extensions" "-fms-compatibility"
"-fms-compatibility-version=18" "-std=c++11" "-fno-threadsafe-statics"
"-fdelayed-template-parsing" "-fobjc-runtime=gcc" "-fdiagnostics-show-option"
"-fcolor-diagnostics" "-vectorize-loops" "-vectorize-slp" "-o" "PREPROC.obj"
"-x" "c++" "PREPROC.cc"
> "/home/sbergman/clang/git/inst/bin/clang-3.9" "-cc1" "-triple"
> "x86_64-pc-windows-msvc18.0.0" "-emit-obj" "-mincremental-linker-compatible"
> "-disable-free" "-main-file-name" "PREPROC.cc" "-mrelocation-model" "pic"
> "-pic-level" "2" "-mthread-model" "posix" "-relaxed-aliasing" "-fmath-errno"
> "-masm-verbose" "-mconstructor-aliases" "-munwind-tables" "-target-cpu"
> "x86-64" "-D_MT" "--dependent-lib=libcmt" "--dependent-lib=oldnames"
> "-fcxx-exceptions" "-fexceptions" "-fexternc-nounwind" "-fms-volatile"
> "-fdiagnostics-format" "msvc" "-momit-leaf-frame-pointer"
> "-dwarf-column-info" "-debugger-tuning=gdb" "-Os" "-fdeprecated-macro"
> "-ferror-limit" "19" "-fmessage-length" "165" "-fms-extensions"
> "-fms-compatibility" "-fms-compatibility-version=18" "-std=c++11"
> "-fno-threadsafe-statics" "-fdelayed-template-parsing" "-fobjc-runtime=gcc"
> "-fdiagnostics-show-option" "-fcolor-diagnostics" "-vectorize-loops"
> "-vectorize-slp" "-x" "c++" "PREPROC-ce219e.cpp"
)
--
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
llvm-bugs mailing list
[email protected]
http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs