Request for review

Joe Provino joseph.provino at oracle.com
Sun Sep 30 09:37:00 PDT 2012


The problem this fixes is that OPT_EXTRAS gets lost when anyone 
overrides OPT_CFLAGS
by doing OPT_CFLAGS/<file>.o = ...

The change is to make/{bsd,linux}/gcc.make:

# Hotspot uses very unstrict aliasing turn this optimization off
# This option is added to CFLAGS rather than OPT_CFLAGS or OPT_EXTRAS
# so that OPT_CFLAGS overrides get this option too.
CFLAGS += -fno-strict-aliasing

gcc.make used to have this:

# Hotspot uses very unstrict aliasing turn this optimization off
OPT_EXTRAS += -fno-strict-aliasing


More information about the hotspot-runtime-dev mailing list