hotspot/make/solaris/makefiles/sparcWorks.make
changeset 4493 9204129f065e
parent 3261 c7d5aae8d3f7
child 5542 be05c5ffe905
equal deleted inserted replaced
4492:63c49e60fc25 4493:9204129f065e
   279 OPT_CFLAGS=-xO3 $(EXTRA_OPT_CFLAGS)
   279 OPT_CFLAGS=-xO3 $(EXTRA_OPT_CFLAGS)
   280 else
   280 else
   281 OPT_CFLAGS=-xO4 $(EXTRA_OPT_CFLAGS)
   281 OPT_CFLAGS=-xO4 $(EXTRA_OPT_CFLAGS)
   282 endif
   282 endif
   283 
   283 
   284 CFLAGS += $(GAMMADIR)/src/os_cpu/solaris_sparc/vm/solaris_sparc.il
       
   285 
       
   286 endif # sparc
   284 endif # sparc
   287 
   285 
   288 ifeq ("${Platform_arch_model}", "x86_32")
   286 ifeq ("${Platform_arch_model}", "x86_32")
   289 
   287 
   290 OPT_CFLAGS=-xtarget=pentium $(EXTRA_OPT_CFLAGS)
   288 OPT_CFLAGS=-xtarget=pentium $(EXTRA_OPT_CFLAGS)
   291 
   289 
   292 # SC5.0 tools on x86 are flakey at -xO4
   290 # SC5.0 tools on x86 are flakey at -xO4
   293 # [phh] Is this still true for 6.1?
   291 # [phh] Is this still true for 6.1?
   294 OPT_CFLAGS+=-xO3
   292 OPT_CFLAGS+=-xO3
   295 
   293 
   296 CFLAGS += $(GAMMADIR)/src/os_cpu/solaris_x86/vm/solaris_x86_32.il
       
   297 
       
   298 endif # 32bit x86
   294 endif # 32bit x86
   299 
   295 
   300 # no more exceptions
   296 # no more exceptions
   301 CFLAGS/NOEX=-noex
   297 CFLAGS/NOEX=-noex
       
   298 
       
   299 # Inline functions
       
   300 CFLAGS += $(GAMMADIR)/src/os_cpu/solaris_${Platform_arch}/vm/solaris_${Platform_arch_model}.il
   302 
   301 
   303 # Reduce code bloat by reverting back to 5.0 behavior for static initializers
   302 # Reduce code bloat by reverting back to 5.0 behavior for static initializers
   304 CFLAGS += -Qoption ccfe -one_static_init
   303 CFLAGS += -Qoption ccfe -one_static_init
   305 
   304 
   306 # PIC is safer for SPARC, and is considerably slower
   305 # PIC is safer for SPARC, and is considerably slower
   309 PICFLAG/DEFAULT = $(PICFLAG)
   308 PICFLAG/DEFAULT = $(PICFLAG)
   310 # [RGV] Need to figure which files to remove to get link to work
   309 # [RGV] Need to figure which files to remove to get link to work
   311 #PICFLAG/BETTER  = -pic
   310 #PICFLAG/BETTER  = -pic
   312 PICFLAG/BETTER  = $(PICFLAG/DEFAULT)
   311 PICFLAG/BETTER  = $(PICFLAG/DEFAULT)
   313 PICFLAG/BYFILE  = $(PICFLAG/$@)$(PICFLAG/DEFAULT$(PICFLAG/$@))
   312 PICFLAG/BYFILE  = $(PICFLAG/$@)$(PICFLAG/DEFAULT$(PICFLAG/$@))
       
   313 
       
   314 # Use $(MAPFLAG:FILENAME=real_file_name) to specify a map file.
       
   315 MAPFLAG = -M FILENAME
       
   316 
       
   317 # Use $(SONAMEFLAG:SONAME=soname) to specify the intrinsic name of a shared obj
       
   318 SONAMEFLAG = -h SONAME
       
   319 
       
   320 # Build shared library
       
   321 SHARED_FLAG = -G
   314 
   322 
   315 # Would be better if these weren't needed, since we link with CC, but
   323 # Would be better if these weren't needed, since we link with CC, but
   316 # at present removing them causes run-time errors
   324 # at present removing them causes run-time errors
   317 LFLAGS += -library=Crun
   325 LFLAGS += -library=Crun
   318 LIBS   += -library=Crun -lCrun
   326 LIBS   += -library=Crun -lCrun