<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 - Clang takes 15 minutes to compile a single file using the GLI with -O0"
href="https://bugs.llvm.org/show_bug.cgi?id=35198">35198</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>Clang takes 15 minutes to compile a single file using the GLI with -O0
</td>
</tr>
<tr>
<th>Product</th>
<td>clang
</td>
</tr>
<tr>
<th>Version</th>
<td>5.0
</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>enhancement
</td>
</tr>
<tr>
<th>Priority</th>
<td>P
</td>
</tr>
<tr>
<th>Component</th>
<td>-New Bugs
</td>
</tr>
<tr>
<th>Assignee</th>
<td>unassignedclangbugs@nondot.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>d.m.bugs@web.de
</td>
</tr>
<tr>
<th>CC</th>
<td>llvm-bugs@lists.llvm.org
</td>
</tr></table>
<p>
<div>
<pre>Clang takes 15min to compile a simple file with the
GLI (<a href="https://github.com/g-truc/gli">https://github.com/g-truc/gli</a>) library with -O0.
The Problem disappears for all other optimization levels.
To reproduce download the sample code with:
$ git clone --recursive <a href="https://github.com/mensinda/gliClang">https://github.com/mensinda/gliClang</a>
$ cd gliClang
then run ./test.sh or
$ clang++ -o test fullTest.cpp -Igli -Iglm -std=c++14 -O0
g++ with -O0:
real 0m1.242s
user 0m1.176s
sys 0m0.066s
clang++ with -O0
real 15m7.950s
user 15m7.233s
sys 0m0.433s
clang++ with -O1
real 0m1.698s
user 0m1.648s
sys 0m0.047s
$ clang --version
clang version 5.0.0 (tags/RELEASE_500/final)
Target: x86_64-unknown-linux-gnu
Thread model: posix
InstalledDir: /usr/bin</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>