OpenCores
Issue List
-mcmov failure with GCC 4.5.1rc1 #135
Closed jeremybennett opened this issue over 13 years ago
jeremybennett commented over 13 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 over 12 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>
jeremybennett was assigned over 12 years ago
jeremybennett closed this over 12 years ago

Assignee
jeremybennett
Labels
Bug