Stefan Kristiansson
2014-10-01 03:03:08 UTC
Hi,
we get an Internal Compiler Error (ICE) from the or1k 4.9 and 4.8 GCC when
trying to compile C++ code that makes use of inheritance and virtual
functions. The ICE only occurs if optimization is enabled (-O1 and above),
it does *not* happen with -O0. The code also compiles fine on a regular
Ubuntu 14.04 x86_64 GCC 4.8 (probably heavily patched though).
I reduced the attached testcase down to a minimum (it's code from Fiasco.OC)
to show the ICE, but I have no clue what exactly triggers the problem. Could
possibly anybody with more experience in the compiler field have a look at
what might cause the error?
That's a nicely reduced testcase at least, that will help in trying towe get an Internal Compiler Error (ICE) from the or1k 4.9 and 4.8 GCC when
trying to compile C++ code that makes use of inheritance and virtual
functions. The ICE only occurs if optimization is enabled (-O1 and above),
it does *not* happen with -O0. The code also compiles fine on a regular
Ubuntu 14.04 x86_64 GCC 4.8 (probably heavily patched though).
I reduced the attached testcase down to a minimum (it's code from Fiasco.OC)
to show the ICE, but I have no clue what exactly triggers the problem. Could
possibly anybody with more experience in the compiler field have a look at
what might cause the error?
track it down.
I'll try to figure out what's up, but so far, I tested with earlier
versions (4.8.0) of the toolchain, and they fail too.
So, it's pretty certain that it's a or1k specific bug.
Stefan