[jdk11u-dev] RFR: 8274860: gcc 10.2.1 produces an uninitialized warning in sharedRuntimeTrig.cpp

Joshua Cao github.com+33404808+caojoshua at openjdk.java.net
Mon Oct 11 13:32:23 UTC 2021


Fix the warning by initializing `fq` to an array of zeroes.

Warning suppressed in tip https://github.com/openjdk/jdk/blob/master/make/hotspot/lib/CompileJvm.gmk#L83, but not suppressed in JDK11.

-------------

Commit messages:
 - Merge branch 'openjdk:master' into gcc-10.2.1
 - Fix uninitialized warnings with GCC-10.2.1.

Changes: https://git.openjdk.java.net/jdk11u-dev/pull/489/files
 Webrev: https://webrevs.openjdk.java.net/?repo=jdk11u-dev&pr=489&range=00
  Issue: https://bugs.openjdk.java.net/browse/JDK-8274860
  Stats: 1 line in 1 file changed: 0 ins; 0 del; 1 mod
  Patch: https://git.openjdk.java.net/jdk11u-dev/pull/489.diff
  Fetch: git fetch https://git.openjdk.java.net/jdk11u-dev pull/489/head:pull/489

PR: https://git.openjdk.java.net/jdk11u-dev/pull/489


More information about the jdk-updates-dev mailing list