changeset 11174:356023276b17

8215435: Warn on usage of trampolines with gcc Reviewed-by: jvos
author kcr
date Wed, 16 Jan 2019 11:34:26 -0800
parents 1a7f16bc4f71
children ba2286ffd9cb
files buildSrc/linux.gradle modules/javafx.media/src/main/native/gstreamer/projects/linux/avplugin/Makefile modules/javafx.media/src/main/native/gstreamer/projects/linux/fxplugins/Makefile modules/javafx.media/src/main/native/gstreamer/projects/linux/gstreamer-lite/Makefile modules/javafx.media/src/main/native/jfxmedia/projects/linux/Makefile
diffstat 5 files changed, 6 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/buildSrc/linux.gradle	Fri Jan 11 07:51:13 2019 -0800
+++ b/buildSrc/linux.gradle	Wed Jan 16 11:34:26 2019 -0800
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2013, 2018, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2013, 2019, Oracle and/or its affiliates. All rights reserved.
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
  *
  * This code is free software; you can redistribute it and/or modify it
@@ -43,7 +43,7 @@
 def commonFlags = [
         "-fno-strict-aliasing", "-fPIC", "-fno-omit-frame-pointer", // optimization flags
         "-fstack-protector",
-        "-Wextra", "-Wall", "-Wformat-security", "-Wno-unused", "-Wno-parentheses", "-Werror=implicit-function-declaration"] // warning flags
+        "-Wextra", "-Wall", "-Wformat-security", "-Wno-unused", "-Wno-parentheses", "-Werror=implicit-function-declaration", "-Werror=trampolines"] // warning flags
 
 if (!IS_64) {
     commonFlags += "-m32"
--- a/modules/javafx.media/src/main/native/gstreamer/projects/linux/avplugin/Makefile	Fri Jan 11 07:51:13 2019 -0800
+++ b/modules/javafx.media/src/main/native/gstreamer/projects/linux/avplugin/Makefile	Wed Jan 16 11:34:26 2019 -0800
@@ -23,6 +23,7 @@
          -Wformat-security       \
          -fstack-protector       \
          -Werror=implicit-function-declaration \
+         -Werror=trampolines     \
          -msse2                  \
          -fbuiltin               \
          -DHAVE_STDINT_H         \
--- a/modules/javafx.media/src/main/native/gstreamer/projects/linux/fxplugins/Makefile	Fri Jan 11 07:51:13 2019 -0800
+++ b/modules/javafx.media/src/main/native/gstreamer/projects/linux/fxplugins/Makefile	Wed Jan 16 11:34:26 2019 -0800
@@ -20,6 +20,7 @@
          -Wformat-security       \
          -fstack-protector       \
          -Werror=implicit-function-declaration \
+         -Werror=trampolines     \
          -msse2                  \
          -fbuiltin               \
          -DHAVE_STDINT_H         \
--- a/modules/javafx.media/src/main/native/gstreamer/projects/linux/gstreamer-lite/Makefile	Fri Jan 11 07:51:13 2019 -0800
+++ b/modules/javafx.media/src/main/native/gstreamer/projects/linux/gstreamer-lite/Makefile	Wed Jan 16 11:34:26 2019 -0800
@@ -43,6 +43,7 @@
         -Wformat-security       \
         -fstack-protector       \
         -Werror=implicit-function-declaration \
+        -Werror=trampolines     \
         -D_GNU_SOURCE           \
         -DGST_REMOVE_DEPRECATED \
         -DGSTREAMER_LITE        \
--- a/modules/javafx.media/src/main/native/jfxmedia/projects/linux/Makefile	Fri Jan 11 07:51:13 2019 -0800
+++ b/modules/javafx.media/src/main/native/jfxmedia/projects/linux/Makefile	Wed Jan 16 11:34:26 2019 -0800
@@ -42,6 +42,7 @@
                   -Wformat-security \
                   -fstack-protector \
                   -Werror=implicit-function-declaration \
+                  -Werror=trampolines \
 		  -msse2 \
 	          -DGSTREAMER_LITE