[aarch64-port-dev ] OpenJDK builds fails on AARCH64 with Ubuntu 1604

Andrew Haley aph at redhat.com
Sat Mar 18 08:25:45 UTC 2017


On 17/03/17 22:20, White, Derek wrote:

> I didn't see a code change here. Did the compiler change on Jenkins?
> Can you report the gcc version used?
> 
> Could also be change in compiler warning maybe-uninitialized (but I
> couldn't find one).

We had to fix a few of these before.  I added code like this:

static jlong as_long(LIR_Opr data) {
  jlong result;
  switch (data->type()) {
  case T_INT:
    result = (data->as_jint());
    break;
  case T_LONG:
    result = (data->as_jlong());
    break;
  default:
    ShouldNotReachHere();
    result = 0;  // unreachable
  }
  return result;
}

I hate having to do this.  We can't tell GCC that ShouldNotReachHere
is noreturn because then it doesn't generate backtrace information,
and we need that for debugging.

Andrew.


More information about the aarch64-port-dev mailing list