RFR: 8335283: Build failure due to 'no_sanitize' attribute directive ignored

Matthias Baesken mbaesken at openjdk.org
Fri Jun 28 11:22:33 UTC 2024


The following build error has been reported with old gcc used 
installers/linux/universal/tar/corretto-build/buildRoot/src/hotspot/share/utilities/vmError.cpp:2068:44: error: 'no_sanitize' attribute directive ignored [-Werror=attributes]
 static void ALWAYSINLINE crash_with_sigfpe() {

We can avoid it by not settings the mentioned attribute in case ubsan is not enabled.

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

Commit messages:
 - JDK-8335283

Changes: https://git.openjdk.org/jdk/pull/19937/files
  Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=19937&range=00
  Issue: https://bugs.openjdk.org/browse/JDK-8335283
  Stats: 2 lines in 1 file changed: 2 ins; 0 del; 0 mod
  Patch: https://git.openjdk.org/jdk/pull/19937.diff
  Fetch: git fetch https://git.openjdk.org/jdk.git pull/19937/head:pull/19937

PR: https://git.openjdk.org/jdk/pull/19937


More information about the hotspot-dev mailing list