Changeset 124


Ignore:
Timestamp:
Aug 31, 2010, 3:26:34 PM (15 years ago)
Author:
dmik
Message:

hotspot/make: Hotspot uses very unstrict aliasing, turn this optimization off. This solves crashes in the release build of JVM.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/openjdk/hotspot/make/os2/makefiles/compile.make

    r120 r124  
    3333endif
    3434
     35# Hotspot uses very unstrict aliasing turn this optimization off
     36OPT_CFLAGS = -fno-strict-aliasing
     37
    3538# Compile for space above time.
    3639ifeq ($(Variant),kernel)
    37 PRODUCT_OPT_OPTION   = -s -Os
    38 FASTDEBUG_OPT_OPTION = -s -Os
     40PRODUCT_OPT_OPTION   = -s -Os $(OPT_CFLAGS)
     41FASTDEBUG_OPT_OPTION = -s -Os $(OPT_CFLAGS)
    3942DEBUG_OPT_OPTION     = -g
    4043else
    41 PRODUCT_OPT_OPTION   = -s -O3
    42 FASTDEBUG_OPT_OPTION = -s -O3
     44PRODUCT_OPT_OPTION   = -s -O3 $(OPT_CFLAGS)
     45FASTDEBUG_OPT_OPTION = -s -O3 $(OPT_CFLAGS)
    4346DEBUG_OPT_OPTION     = -g
    4447endif
Note: See TracChangeset for help on using the changeset viewer.