< prev index next >

make/solaris/makefiles/gcc.make

Print this page
rev 9666 : 8144695: --disable-warnings-as-errors does not work for HotSpot build
Reviewed-by: duke
rev 9163 : 8140091: remove VMStructs cast_uint64_t workaround for GCC 4.1.1 bug
Reviewed-by: erikj, kvn
rev 7469 : 8065656: Use DWARF debug symbols for Solaris
Reviewed-by: dcubed, huntch, pbk
rev 6848 : 8047952: Remove _FORTIFY_SOURCE from fastdebug and slowdebug builds
Reviewed-by: dholmes
rev 6678 : 8047734: Backout use of -Og
Reviewed-by: iveresov
rev 6565 : 8032045: Enable compiler and linker safety switches for debug builds
Summary: Enable GCC linker protections, runtime bounds checks and stack protection.
Reviewed-by: dholmes, kvn, coleenp
rev 6115 : 8036122: Fix warning 'format not a string literal'
Reviewed-by: mduigou, kvn
rev 6002 : 8030350: Enable additional compiler warnings for GCC
Reviewed-by: dholmes, coleenp, erikj, tbell, ihse
rev 5753 : 8029233: Update copyright year to match last edit in jdk8 hotspot repository for 2013
Summary: Copyright year updated for files modified during 2013
Reviewed-by: twisti, iveresov
rev 4287 : 8008474: Add -Wundef to warning flags.
Summary: Force use of undefined macros to be and error.
Reviewed-by: dholmes, mikael
rev 3909 : 7153050: remove crufty '_g' support from HotSpot repo makefiles
Summary: Phase 1 is removing '_g' support from the Makefiles.
Reviewed-by: dcubed, sspitsyn, coleenp, tbell
Contributed-by: ron.durbin@oracle.com
rev 3718 : 7197424: update copyright year to match last edit in jdk8 hotspot repository
Summary: Update copyright year to 2012 for relevant files
Reviewed-by: dholmes, coleenp
rev 3397 : 7175914: Usage of gcc with precompiled headers produces wrong build dependencies
Summary: Add -fpch-deps flag to gcc builds
Reviewed-by: kamg, coleenp
Contributed-by: volker.simonis@gmail.com
rev 3165 : 7141244: build-infra merge: Include $(SPEC) in makefiles and make variables overridable
Reviewed-by: dholmes, ohrstrom, ohair, jcoomes
rev 3083 : 7141242: build-infra merge: Rename CPP->CXX and LINK->LD
Summary: Cleaned up make variables for compilers and linker to consistently use CXX for C++ compiler, CC for C compiler and LD for linker.
Reviewed-by: dholmes, ohrstrom
rev 2890 : 7116081: USE_PRECOMPILED_HEADER=0 triggers a single threaded build of the JVM
Summary: Changed the conditional to see if the precompiled header has been specified. Also, removed the unused PrecompiledOption.
Reviewed-by: dholmes, brutisso
rev 2794 : 7106766: Move the precompiled header from the src/share/vm directory
Summary: Moved precompiled.hpp to src/share/vm/precompiled
Reviewed-by: coleenp, dholmes
Contributed-by: rbackman <rickard.backman@oracle.com>
rev 1890 : 7003125: precompiled.hpp is included when precompiled headers are not used
Summary: Added an ifndef DONT_USE_PRECOMPILED_HEADER to precompiled.hpp. Set up DONT_USE_PRECOMPILED_HEADER when compiling with Sun Studio or when the user specifies USE_PRECOMPILED_HEADER=0. Fixed broken include dependencies.
Reviewed-by: coleenp, kvn
rev 1879 : 6989984: Use standard include model for Hospot
Summary: Replaced MakeDeps and the includeDB files with more standardized solutions.
Reviewed-by: coleenp, kvn, kamg
rev 1472 : 6941466: Oracle rebranding changes for Hotspot repositories
Summary: Change all the Sun copyrights to Oracle copyright
Reviewed-by: ohair
rev 196 : 6719955: Update copyright year
Summary: Update copyright year for files that have been modified in 2008
Reviewed-by: ohair, tbell
rev 91 : 6583644: Move all managed/SCCS files out of 'build' into 'make' directory
Summary: Moved makefiles out of build and build/closed into make/
Reviewed-by: kvn, ohair


 100 ifeq ($(BUILDARCH), amd64)
 101 ASFLAGS += -march=k8  -march=amd64
 102 LFLAGS += -march=k8
 103 endif
 104 
 105 
 106 # Use C++ Interpreter
 107 ifdef CC_INTERP
 108   CFLAGS += -DCC_INTERP
 109 endif
 110 
 111 # Keep temporary files (.ii, .s)
 112 ifdef NEED_ASM
 113   CFLAGS += -save-temps
 114 else
 115   CFLAGS += -pipe
 116 endif
 117 
 118 
 119 # Compiler warnings are treated as errors
 120 WARNINGS_ARE_ERRORS = -Werror
 121 
 122 # Enable these warnings. See 'info gcc' about details on these options
 123 WARNING_FLAGS = -Wpointer-arith -Wconversion -Wsign-compare -Wundef -Wformat=2
 124 CFLAGS_WARN/DEFAULT = $(WARNINGS_ARE_ERRORS) $(WARNING_FLAGS)
 125 
 126 # Special cases
 127 CFLAGS_WARN/BYFILE = $(CFLAGS_WARN/$@)$(CFLAGS_WARN/DEFAULT$(CFLAGS_WARN/$@))
 128 
 129 # optimization control flags (Used by fastdebug and release variants)
 130 OPT_CFLAGS/NOOPT=-O0
 131 OPT_CFLAGS/DEBUG=-O0
 132 OPT_CFLAGS/SIZE=-Os
 133 OPT_CFLAGS/SPEED=-O3
 134 
 135 OPT_CFLAGS_DEFAULT ?= SPEED
 136 
 137 # Hotspot uses very unstrict aliasing turn this optimization off
 138 # This option is added to CFLAGS rather than OPT_CFLAGS
 139 # so that OPT_CFLAGS overrides get this option too.
 140 CFLAGS += -fno-strict-aliasing




 100 ifeq ($(BUILDARCH), amd64)
 101 ASFLAGS += -march=k8  -march=amd64
 102 LFLAGS += -march=k8
 103 endif
 104 
 105 
 106 # Use C++ Interpreter
 107 ifdef CC_INTERP
 108   CFLAGS += -DCC_INTERP
 109 endif
 110 
 111 # Keep temporary files (.ii, .s)
 112 ifdef NEED_ASM
 113   CFLAGS += -save-temps
 114 else
 115   CFLAGS += -pipe
 116 endif
 117 
 118 
 119 # Compiler warnings are treated as errors
 120 WARNINGS_ARE_ERRORS ?= -Werror
 121 
 122 # Enable these warnings. See 'info gcc' about details on these options
 123 WARNING_FLAGS = -Wpointer-arith -Wconversion -Wsign-compare -Wundef -Wformat=2
 124 CFLAGS_WARN/DEFAULT = $(WARNINGS_ARE_ERRORS) $(WARNING_FLAGS)
 125 
 126 # Special cases
 127 CFLAGS_WARN/BYFILE = $(CFLAGS_WARN/$@)$(CFLAGS_WARN/DEFAULT$(CFLAGS_WARN/$@))
 128 
 129 # optimization control flags (Used by fastdebug and release variants)
 130 OPT_CFLAGS/NOOPT=-O0
 131 OPT_CFLAGS/DEBUG=-O0
 132 OPT_CFLAGS/SIZE=-Os
 133 OPT_CFLAGS/SPEED=-O3
 134 
 135 OPT_CFLAGS_DEFAULT ?= SPEED
 136 
 137 # Hotspot uses very unstrict aliasing turn this optimization off
 138 # This option is added to CFLAGS rather than OPT_CFLAGS
 139 # so that OPT_CFLAGS overrides get this option too.
 140 CFLAGS += -fno-strict-aliasing


< prev index next >