Closedjeremybennett opened this issue almost 14 years ago
jeremybennett commented almost 14 years ago
<p>
I got the internal compiler error, this is the output message:
</p>
<ul><pre>
[D:\]or32-elf-gcc.exe -Wall -Os -mcmov -c test.c
test.c: In function 'test':
test.c:13:1: internal compiler error: Segmentation fault
Please submit a full bug report,
with preprocessed source if appropriate.
See <http://gcc.gnu.org/bugs.html> for instructions.
</pre></ul>
<p>
It pass the compilation if I assign the optimization level to <tt>-O3</tt>, or do not generate the <tt>l.cmov</tt> instruction by <tt>-mcmov</tt>.
</p>
<p>
Test case:
</p>
<ul><pre>
int func1(int);
int func2(int);
void test(void)
{
int type = func1(3);
if (type >= 0) type =4;
func2(type);
}
</pre></ul>
<p>
Reported by user Kuoping
jeremybennett commented about 13 years ago
<p>
Transferred to OpenRISC bugzilla (<a href="http://bugzilla.opencores.org/show_bug.cgi?id=27">Bug 27</a>).
</p>
<p>
Marking closed in this bugtracker.
</p>