[aarch64-port-dev ] Patch for uninitialized variables

Andrew Haley aph at redhat.com
Wed Nov 18 17:00:48 UTC 2015


On 11/18/2015 04:48 PM, Daniel Stewart wrote:
> The latest jdk9 doesn't build due to uninitialized variables. It appears
> that warnings as errors was recently turned on. This patch initializes the
> variables that were causing issues, allowing hotspot to build.
> 
> Patch at:
> http://people.linaro.org/~daniel.stewart/uninitialized.patch

This is a patch for upstream, so it will have to be submitted there
along with a bug report.  However, I would note that the warnings I've
looked at are all bogus, and doing stuff just to shut the compiler up
doesn't strike me as very helpful.

We might be able to define ShouldNotReachHere so that it is treated by
the compiler as __attribute__((noreturn)).  I'm not sure that this
will fix everything but IMHO it's better than a bunch of unnecessary
code.

BTW, I guess you know you can build with --disable-warnings-as-errors.

Andrew.


More information about the aarch64-port-dev mailing list