<div dir="ltr">Let Matt Arsenault take a look at this.  GCC is probably trying to generate code to call __memcpy_chk with LLVM's objectsize intrinsic.</div><div class="gmail_extra"><br><br><div class="gmail_quote">On Mon, Feb 10, 2014 at 1:23 PM, Scott Pakin <span dir="ltr"><<a href="mailto:pakin@lanl.gov" target="_blank">pakin@lanl.gov</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">It took a while to track down, but it looks like revision 192117<br>
(dated 2013-10-07) is the source of a DragonEgg segfault I've been<br>
fighting with for quite some time.  For details and a reproducer (less<br>
than a page of C++ code) please see my Bugzilla report:<br>
<br>
    Bug 18358 - "internal compiler error: Segmentation fault" on C++ code<br>
    <a href="http://llvm.org/bugs/show_bug.cgi?id=18358" target="_blank">http://llvm.org/bugs/show_bug.cgi?id=18358</a><br>
<br>
The real code that this affects is my Byfl tool,<br>
<a href="https://github.com/losalamos/Byfl" target="_blank">https://github.com/losalamos/Byfl</a>, which compiles with LLVM revision<br>
192116 and earlier but not with revision 192117 and later.<br>
<br>
I must admit I don't understand exactly what r192117 is doing, but<br>
I've attached a patch that simply and stupidly reverses the changes<br>
performed by r192117.  Applying this patch to trunk (r201101) gets<br>
Byfl and my reproducer compiling again.<br>
<br>
Any chance this patch -- or, even better, a "real" fix for whatever<br>
problem r192117 is introducing -- can make it into LLVM?  (I've never<br>
submitted a patch before and don't know what the formal procedure is.)<br>
<br>
Thanks,<br>
-- Scott<br>
<br>_______________________________________________<br>
LLVM Developers mailing list<br>
<a href="mailto:LLVMdev@cs.uiuc.edu">LLVMdev@cs.uiuc.edu</a>         <a href="http://llvm.cs.uiuc.edu" target="_blank">http://llvm.cs.uiuc.edu</a><br>
<a href="http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev" target="_blank">http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev</a><br>
<br></blockquote></div><br></div>