<html>
    <head>
      <base href="https://bugs.llvm.org/">
    </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 - Regression in SVN r331337, "new fragment outside of original fragment""
   href="https://bugs.llvm.org/show_bug.cgi?id=37321">37321</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>Regression in SVN r331337, "new fragment outside of original fragment"
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>libraries
          </td>
        </tr>

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

        <tr>
          <th>Hardware</th>
          <td>PC
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>All
          </td>
        </tr>

        <tr>
          <th>Status</th>
          <td>NEW
          </td>
        </tr>

        <tr>
          <th>Severity</th>
          <td>enhancement
          </td>
        </tr>

        <tr>
          <th>Priority</th>
          <td>P
          </td>
        </tr>

        <tr>
          <th>Component</th>
          <td>Common Code Generator Code
          </td>
        </tr>

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

        <tr>
          <th>Reporter</th>
          <td>martin@martin.st
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>llvm-bugs@lists.llvm.org
          </td>
        </tr></table>
      <p>
        <div>
        <pre>Created <span class=""><a href="attachment.cgi?id=20257" name="attach_20257" title="Source reproducing the issue">attachment 20257</a> <a href="attachment.cgi?id=20257&action=edit" title="Source reproducing the issue">[details]</a></span>
Source reproducing the issue

Building the attached source file, with "clang -target i686-w64-mingw32 -c
test.c -O2 -g", triggers assertion failures like these:

clang-7.0: ../lib/IR/DebugInfoMetadata.cpp:836: static
llvm::Optional<llvm::DIExpression*> llvm::DIExpression::createFragmen
tExpression(const llvm::DIExpression*, unsigned int, unsigned int): Assertion
`(OffsetInBits + SizeInBits <= Op.getArg(0) + 
Op.getArg(1)) && "new fragment outside of original fragment"' failed.
Stack dump:
0.      Program arguments: /home/martin/clang-bisect/bin/clang-7.0 -cc1 -triple
i686-w64-windows-gnu -emit-obj -disable-free
 -main-file-name test.c -mrelocation-model static -mthread-model posix
-fmath-errno -masm-verbose -mconstructor-aliases -tar
get-cpu pentium4 -dwarf-column-info -debug-info-kind=limited -dwarf-version=4
-debugger-tuning=gdb -momit-leaf-frame-pointer
 -coverage-notes-file
/home/martin/code/mingw-w64/mingw-w64-crt/build-i686/test.gcno -resource-dir
/home/martin/clang-bisect
/lib/clang/7.0.0 -internal-isystem
/home/martin/clang-bisect/lib/clang/7.0.0/include -internal-isystem
/home/martin/clang-bi
sect/i686-w64-mingw32/sys-root/mingw/include -internal-isystem
/home/martin/clang-bisect/i686-w64-mingw32/include -internal-
isystem /home/martin/clang-bisect/include -O2 -fdebug-compilation-dir
/home/martin/code/mingw-w64/mingw-w64-crt/build-i686 -
ferror-limit 19 -fmessage-length 0 -fno-use-cxa-atexit -fobjc-runtime=gcc
-fdwarf-exceptions -fdiagnostics-show-option -vect
orize-loops -vectorize-slp -o test.o -x c test.c 
1.      <eof> parser at end of file
2.      Code generation
3.      Running pass 'Function Pass Manager' on module 'test.c'.
4.      Running pass 'X86 DAG->DAG Instruction Selection' on function
'@nextafterl'
#0 0x000000000190364a llvm::sys::PrintStackTrace(llvm::raw_ostream&)
(/home/martin/clang-bisect/bin/clang-7.0+0x190364a)
#1 0x00000000019013ee llvm::sys::RunSignalHandlers()
(/home/martin/clang-bisect/bin/clang-7.0+0x19013ee)
#2 0x0000000001901562 SignalHandler(int)
(/home/martin/clang-bisect/bin/clang-7.0+0x1901562)
#3 0x00007f7a5762f390 __restore_rt
(/lib/x86_64-linux-gnu/libpthread.so.0+0x11390)
#4 0x00007f7a563a1428 gsignal
/build/glibc-Cl5G7W/glibc-2.23/signal/../sysdeps/unix/sysv/linux/raise.c:54:0
#5 0x00007f7a563a302a abort /build/glibc-Cl5G7W/glibc-2.23/stdlib/abort.c:91:0
#6 0x00007f7a56399bd7 __assert_fail_base
/build/glibc-Cl5G7W/glibc-2.23/assert/assert.c:92:0
#7 0x00007f7a56399c82 (/lib/x86_64-linux-gnu/libc.so.6+0x2dc82)
#8 0x00000000013faca1 (/home/martin/clang-bisect/bin/clang-7.0+0x13faca1)  
#9 0x000000000212eab1
llvm::SelectionDAGBuilder::visitIntrinsicCall(llvm::CallInst const&, unsigned
int) (/home/martin/clang-bisect/bin/clang-7.0+0x212eab1)  
#10 0x00000000021300d1 llvm::SelectionDAGBuilder::visitCall(llvm::CallInst
const&) (/home/martin/clang-bisect/bin/clang-7.0+0x21300d1)  
#11 0x00000000021375e3 llvm::SelectionDAGBuilder::visit(llvm::Instruction
const&) (/home/martin/clang-bisect/bin/clang-7.0+0x21375e3)  
#12 0x0000000002183fa9
llvm::SelectionDAGISel::SelectBasicBlock(llvm::ilist_iterator<llvm::ilist_detail::node_options<llvm::Instruction,
true, false, void>, false, true>,
llvm::ilist_iterator<llvm::ilist_detail::node_options<llvm::Instruction, true,
false, void>, false, true>, bool&)
(/home/martin/clang-bisect/bin/clang-7.0+0x2183fa9)  
#13 0x000000000218890a
llvm::SelectionDAGISel::SelectAllBasicBlocks(llvm::Function const&)
(/home/martin/clang-bisect/bin/clang-7.0+0x218890a)  
#14 0x000000000218ab2c
llvm::SelectionDAGISel::runOnMachineFunction(llvm::MachineFunction&)
(.part.875.constprop.898) (/home/martin/clang-bisect/bin/clang-7.0+0x218ab2c)  
#15 0x0000000000c9adb4 (anonymous
namespace)::X86DAGToDAGISel::runOnMachineFunction(llvm::MachineFunction&)
(/home/martin/clang-bisect/bin/clang-7.0+0xc9adb4)  
#16 0x00000000010d2415
llvm::MachineFunctionPass::runOnFunction(llvm::Function&)
(/home/martin/clang-bisect/bin/clang-7.0+0x10d2415)  
#17 0x000000000146b633 llvm::FPPassManager::runOnFunction(llvm::Function&)
(/home/martin/clang-bisect/bin/clang-7.0+0x146b633)
#18 0x000000000146b6fc llvm::FPPassManager::runOnModule(llvm::Module&)
(/home/martin/clang-bisect/bin/clang-7.0+0x146b6fc)
#19 0x000000000146b19d llvm::legacy::PassManagerImpl::run(llvm::Module&)
(/home/martin/clang-bisect/bin/clang-7.0+0x146b19d)
#20 0x0000000001ad4aed (anonymous
namespace)::EmitAssemblyHelper::EmitAssembly(clang::BackendAction,
std::unique_ptr<llvm::raw_pwrite_stream,
std::default_delete<llvm::raw_pwrite_stream> >)
(/home/martin/clang-bisect/bin/clang-7.0+0x1ad4aed)  
#21 0x0000000001ad6417 clang::EmitBackendOutput(clang::DiagnosticsEngine&,
clang::HeaderSearchOptions const&, clang::CodeGenOptions const&,
clang::TargetOptions const&, clang::LangOptions const&, llvm::DataLayout
const&, llvm::Module*, clang::BackendAction,
std::unique_ptr<llvm::raw_pwrite_stream,
std::default_delete<llvm::raw_pwrite_stream> >)
(/home/martin/clang-bisect/bin/clang-7.0+0x1ad6417)  
#22 0x000000000224dd37
clang::BackendConsumer::HandleTranslationUnit(clang::ASTContext&)
(/home/martin/clang-bisect/bin/clang-7.0+0x224dd37)
#23 0x0000000002581e90 clang::ParseAST(clang::Sema&, bool, bool)
(/home/martin/clang-bisect/bin/clang-7.0+0x2581e90)
#24 0x000000000224d05f clang::CodeGenAction::ExecuteAction()
(/home/martin/clang-bisect/bin/clang-7.0+0x224d05f)
#25 0x0000000001ef4c6e clang::FrontendAction::Execute()
(/home/martin/clang-bisect/bin/clang-7.0+0x1ef4c6e)  
#26 0x0000000001ebf816
clang::CompilerInstance::ExecuteAction(clang::FrontendAction&)
(/home/martin/clang-bisect/bin/clang-7.0+0x1ebf816)  
#27 0x0000000001f8b38c
clang::ExecuteCompilerInvocation(clang::CompilerInstance*)
(/home/martin/clang-bisect/bin/clang-7.0+0x1f8b38c)  
#28 0x00000000008c2538 cc1_main(llvm::ArrayRef<char const*>, char const*,
void*) (/home/martin/clang-bisect/bin/clang-7.0+0x8c2538)
#29 0x0000000000864cb4 main (/home/martin/clang-bisect/bin/clang-7.0+0x864cb4)
#30 0x00007f7a5638c830 __libc_start_main
/build/glibc-Cl5G7W/glibc-2.23/csu/../csu/libc-start.c:325:0
#31 0x00000000008be6f9 _start
(/home/martin/clang-bisect/bin/clang-7.0+0x8be6f9)</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>