RFR: 8046765: (s) disable FORTIFY_SOURCE for files with optimization disabled.

Mike Duigou mike.duigou at oracle.com
Wed Jul 16 17:13:18 UTC 2014

Hello all;

In some GCC distributions the FORTIFY_SOURCE option is incompatible with the -O0. This change disables FORTIFY sources for the files we know have optimizations disabled.

jbsbug: https://bugs.openjdk.java.net/browse/JDK-8047952
webrev: http://cr.openjdk.java.net/~mduigou/JDK-8047952/0/webrev/

Unfortunately I don't have a Fedora 19 setup to test the change on the reported platform but I did verify that the compiler command line is correct, that fortify is disabled and the resulting build still works on a number of platforms. Additional verifications on other platforms is encouraged.

The changeset will be pushed via hotspot-rt forest unless otherwise requested.


More information about the hotspot-dev mailing list