annotate make/jprt.config @ 435:b1d6a3e95810

6766316: assert(!nocreate,"Cannot build a phi for a block already parsed.") Summary: Don't use the invariant local information if there are irreducible loops. Reviewed-by: never
author kvn
date Tue, 18 Nov 2008 12:40:28 -0800
parents d1605aabd0a1
children 4961a8a726a4
rev   line source
duke@0 1 #!echo "This is not a shell script"
duke@0 2 #
xdono@196 3 # Copyright 2006-2008 Sun Microsystems, Inc. All Rights Reserved.
duke@0 4 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
duke@0 5 #
duke@0 6 # This code is free software; you can redistribute it and/or modify it
duke@0 7 # under the terms of the GNU General Public License version 2 only, as
duke@0 8 # published by the Free Software Foundation.
duke@0 9 #
duke@0 10 # This code is distributed in the hope that it will be useful, but WITHOUT
duke@0 11 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
duke@0 12 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
duke@0 13 # version 2 for more details (a copy is included in the LICENSE file that
duke@0 14 # accompanied this code).
duke@0 15 #
duke@0 16 # You should have received a copy of the GNU General Public License version
duke@0 17 # 2 along with this work; if not, write to the Free Software Foundation,
duke@0 18 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
duke@0 19 #
duke@0 20 # Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,
duke@0 21 # CA 95054 USA or visit www.sun.com if you need additional information or
duke@0 22 # have any questions.
duke@0 23 #
duke@0 24 #
duke@0 25
duke@0 26 #############################################################################
duke@0 27 # Error
duke@0 28 error() # message
duke@0 29 {
duke@0 30 echo "ERROR: $1"
duke@0 31 exit 6
duke@0 32 }
duke@0 33 # Directory must exist
duke@0 34 dirMustExist() # dir name
duke@0 35 {
duke@0 36 if [ ! -d "$1" ] ; then
duke@0 37 error "Directory for $2 does not exist: $1"
duke@0 38 fi
duke@0 39 }
duke@0 40 # File must exist
duke@0 41 fileMustExist() # dir name
duke@0 42 {
duke@0 43 if [ ! -f "$1" ] ; then
duke@0 44 error "File for $2 does not exist: $1"
duke@0 45 fi
duke@0 46 }
duke@0 47 #############################################################################
duke@0 48
duke@0 49 # Should be set by JPRT as the 3 basic inputs
duke@0 50 bootdir="${ALT_BOOTDIR}"
duke@0 51 slashjava="${ALT_SLASH_JAVA}"
duke@0 52 jdk_import="${ALT_JDK_IMPORT_PATH}"
duke@0 53
duke@0 54 # Check input
duke@0 55 dirMustExist "${bootdir}" ALT_BOOTDIR
duke@0 56 dirMustExist "${slashjava}" ALT_SLASH_JAVA
duke@0 57 dirMustExist "${jdk_import}" ALT_JDK_IMPORT_PATH
duke@0 58
duke@0 59 # Uses 'uname -s', but only expect SunOS or Linux, assume Windows otherwise.
duke@0 60 osname=`uname -s`
duke@0 61 if [ "${osname}" = SunOS ] ; then
duke@0 62
duke@0 63 # SOLARIS: Sparc or X86
duke@0 64 osarch=`uname -p`
duke@0 65 if [ "${osarch}" = sparc ] ; then
duke@0 66 solaris_arch=sparc
duke@0 67 else
duke@0 68 solaris_arch=i386
duke@0 69 fi
duke@0 70
ohair@158 71 if [ "${JPRT_SOLARIS_COMPILER_NAME}" != "" ] ; then
ohair@158 72 compiler_name=${JPRT_SOLARIS_COMPILER_NAME}
ohair@158 73 else
ohair@158 74 if [ "${JPRT_JOB_PRODUCT_RELEASE}" = "jdk6" -o \
ohair@158 75 "${JPRT_JOB_PRODUCT_RELEASE}" = "jdk6u10" -o \
ohair@158 76 "${JPRT_JOB_PRODUCT_RELEASE}" = "jdk6perf" ] ; then
ohair@158 77 # All jdk6 builds use SS11
ohair@158 78 compiler_name=SS11
ohair@158 79 else
ohair@278 80 compiler_name=SS12
ohair@158 81 fi
ohair@158 82 fi
ohair@158 83
ohair@158 84 # Get into path (make sure it matches ALT setting)
ohair@158 85 compiler_path=${slashjava}/devtools/${solaris_arch}/SUNWspro/${compiler_name}/bin
duke@0 86 dirMustExist "${compiler_path}" COMPILER_PATH
duke@0 87 path4sdk=${compiler_path}
duke@0 88
duke@0 89 # Add basic solaris system paths
duke@0 90 path4sdk=${path4sdk}:/usr/ccs/bin:/usr/ccs/lib:/usr/bin:/bin:/usr/sfw/bin
duke@0 91
duke@0 92 # Get the previous JDK to be used to bootstrap the build
duke@0 93 path4sdk=${bootdir}/bin:${path4sdk}
duke@0 94
duke@0 95 # Find GNU make
duke@0 96 make=/usr/sfw/bin/gmake
duke@0 97 if [ ! -f ${make} ] ; then
duke@0 98 make=/opt/sfw/bin/gmake
duke@0 99 if [ ! -f ${make} ] ; then
duke@0 100 make=${slashjava}/devtools/${solaris_arch}/bin/gnumake
duke@0 101 fi
duke@0 102 fi
duke@0 103 fileMustExist "${make}" make
duke@0 104
duke@0 105 # File creation mask
duke@0 106 umask 002
duke@0 107
duke@0 108 elif [ "${osname}" = Linux ] ; then
duke@0 109
duke@0 110 # LINUX: X86, AMD64
duke@0 111 osarch=`uname -m`
duke@0 112 if [ "${osarch}" = i686 ] ; then
duke@0 113 linux_arch=i586
duke@0 114 elif [ "${osarch}" = x86_64 ] ; then
duke@0 115 linux_arch=amd64
duke@0 116 fi
duke@0 117
duke@0 118 # Get the compilers into path (make sure it matches ALT setting)
duke@0 119 compiler_path=/usr/bin
duke@0 120 dirMustExist "${compiler_path}" COMPILER_PATH
duke@0 121 path4sdk=${compiler_path}
duke@0 122
duke@0 123 # Add basic paths
duke@0 124 path4sdk=${path4sdk}:/usr/bin:/bin:/usr/sbin:/sbin
duke@0 125
duke@0 126 # Get the previous JDK to be used to bootstrap the build
duke@0 127 path4sdk=${bootdir}/bin:${path4sdk}
duke@0 128
duke@0 129 # Find GNU make
duke@0 130 make=/usr/bin/make
duke@0 131 fileMustExist "${make}" make
duke@0 132
duke@0 133 umask 002
duke@0 134
duke@0 135 else
duke@0 136
duke@0 137 # Windows: Differs on CYGWIN vs. MKS, and the compiler available.
duke@0 138 # Also, blanks in pathnames gives GNU make headaches, so anything placed
duke@0 139 # in any ALT_* variable should be the short windows dosname.
duke@0 140
duke@0 141 # WINDOWS: Install and use MKS or CYGWIN (should have already been done)
duke@0 142 # Assumption here is that you are in a shell window via MKS or cygwin.
duke@0 143 # MKS install should have defined the environment variable ROOTDIR.
duke@0 144 # We also need to figure out which one we have: X86, AMD64
duke@0 145 if [ "`echo ${PROCESSOR_IDENTIFIER} | fgrep AMD64`" != "" ] ; then
duke@0 146 windows_arch=amd64
duke@0 147 else
duke@0 148 windows_arch=i586
duke@0 149 fi
duke@0 150
duke@0 151 # We need to determine if we are running a CYGWIN shell or an MKS shell
duke@0 152 # (if uname isn't available, then it will be unix_toolset=unknown)
duke@0 153 unix_toolset=unknown
duke@0 154 if [ "`uname -a | fgrep Cygwin`" = "" -a -d "${ROOTDIR}" ] ; then
duke@0 155 # We kind of assume ROOTDIR is where MKS is and it's ok
duke@0 156 unix_toolset=MKS
duke@0 157 mkshome=`dosname -s "${ROOTDIR}"`
duke@0 158 # Utility to convert to short pathnames without spaces
duke@0 159 dosname="${mkshome}/mksnt/dosname -s"
duke@0 160 # Most unix utilities are in the mksnt directory of ROOTDIR
duke@0 161 unixcommand_path="${mkshome}/mksnt"
duke@0 162 path4sdk="${unixcommand_path}"
duke@0 163 dirMustExist "${unixcommand_path}" UNIXCOMMAND_PATH
duke@0 164 devtools_path="${slashjava}/devtools/win32/bin"
duke@0 165 path4sdk="${devtools_path};${path4sdk}"
duke@0 166 dirMustExist "${devtools_path}" DEVTOOLS_PATH
duke@0 167 # Find GNU make
duke@0 168 make="${devtools_path}/gnumake.exe"
duke@0 169 fileMustExist "${make}" make
duke@0 170 elif [ "`uname -a | fgrep Cygwin`" != "" -a -f /bin/cygpath ] ; then
duke@0 171 # For CYGWIN, uname will have "Cygwin" in it, and /bin/cygpath should exist
duke@0 172 unix_toolset=CYGWIN
duke@0 173 # Utility to convert to short pathnames without spaces
duke@0 174 dosname="/usr/bin/cygpath -a -m -s"
duke@0 175 # Most unix utilities are in the /usr/bin
duke@0 176 unixcommand_path="/usr/bin"
duke@0 177 path4sdk="${unixcommand_path}"
duke@0 178 dirMustExist "${unixcommand_path}" UNIXCOMMAND_PATH
duke@0 179 # Find GNU make
duke@0 180 make="${unixcommand_path}/make.exe"
duke@0 181 fileMustExist "${make}" make
duke@0 182 else
duke@0 183 echo "WARNING: Cannot figure out if this is MKS or CYGWIN"
duke@0 184 fi
duke@0 185
duke@0 186 # WINDOWS: Compiler setup (nasty part)
duke@0 187 # NOTE: You can use vcvars32.bat to set PATH, LIB, and INCLUDE.
duke@0 188 # NOTE: CYGWIN has a link.exe too, make sure the compilers are first
duke@0 189 if [ "${windows_arch}" = i586 ] ; then
duke@0 190 # 32bit Windows compiler settings
duke@0 191 # VisualStudio .NET 2003 VC++ 7.1 (VS71COMNTOOLS should be defined)
duke@0 192 vs_root=`${dosname} "${VS71COMNTOOLS}/../.."`
duke@0 193 # Fill in PATH, LIB, and INCLUDE (unset all others to make sure)
duke@0 194 vc7_root="${vs_root}/Vc7"
duke@0 195 compiler_path="${vc7_root}/bin"
duke@0 196 platform_sdk="${vc7_root}/PlatformSDK"
duke@0 197 # LIB and INCLUDE must use ; as a separator
duke@0 198 include4sdk="${vc7_root}/atlmfc/include"
duke@0 199 include4sdk="${include4sdk};${vc7_root}/include"
duke@0 200 include4sdk="${include4sdk};${platform_sdk}/include/prerelease"
duke@0 201 include4sdk="${include4sdk};${platform_sdk}/include"
duke@0 202 include4sdk="${include4sdk};${vs_root}/SDK/v1.1/include"
duke@0 203 lib4sdk="${vc7_root}/atlmfc/lib"
duke@0 204 lib4sdk="${lib4sdk};${vc7_root}/lib"
duke@0 205 lib4sdk="${lib4sdk};${platform_sdk}/lib/prerelease"
duke@0 206 lib4sdk="${lib4sdk};${platform_sdk}/lib"
duke@0 207 lib4sdk="${lib4sdk};${vs_root}/SDK/v1.1/lib"
duke@0 208 # Search path and DLL locating path
duke@0 209 # WARNING: CYGWIN has a link.exe too, make sure compilers are first
duke@0 210 path4sdk="${vs_root}/Common7/Tools/bin;${path4sdk}"
duke@0 211 path4sdk="${vs_root}/SDK/v1.1/bin;${path4sdk}"
duke@0 212 path4sdk="${vs_root}/Common7/Tools;${path4sdk}"
duke@0 213 path4sdk="${vs_root}/Common7/Tools/bin/prerelease;${path4sdk}"
duke@0 214 path4sdk="${vs_root}/Common7/IDE;${path4sdk}"
duke@0 215 path4sdk="${compiler_path};${path4sdk}"
duke@0 216 elif [ "${windows_arch}" = amd64 ] ; then
duke@0 217 # AMD64 64bit Windows compiler settings
duke@0 218 if [ "${MSSDK}" != "" ] ; then
duke@0 219 platform_sdk="${MSSDK}"
duke@0 220 else
duke@0 221 platform_sdk=`${dosname} "C:/Program Files/Microsoft Platform SDK/"`
duke@0 222 fi
duke@0 223 compiler_path="${platform_sdk}/Bin/win64/x86/AMD64"
duke@0 224 # LIB and INCLUDE must use ; as a separator
duke@0 225 include4sdk="${platform_sdk}/Include"
duke@0 226 include4sdk="${include4sdk};${platform_sdk}/Include/crt/sys"
duke@0 227 include4sdk="${include4sdk};${platform_sdk}/Include/mfc"
duke@0 228 include4sdk="${include4sdk};${platform_sdk}/Include/atl"
duke@0 229 include4sdk="${include4sdk};${platform_sdk}/Include/crt"
duke@0 230 lib4sdk="${platform_sdk}/Lib/AMD64"
duke@0 231 lib4sdk="${lib4sdk};${platform_sdk}/Lib/AMD64/atlmfc"
duke@0 232 # Search path and DLL locating path
duke@0 233 # WARNING: CYGWIN has a link.exe too, make sure compilers are first
duke@0 234 path4sdk="${platform_sdk}/bin;${path4sdk}"
duke@0 235 path4sdk="${compiler_path};${path4sdk}"
duke@0 236 fi
duke@0 237 # Export LIB and INCLUDE
duke@0 238 unset lib
duke@0 239 unset Lib
duke@0 240 LIB="${lib4sdk}"
duke@0 241 export LIB
duke@0 242 unset include
duke@0 243 unset Include
duke@0 244 INCLUDE="${include4sdk}"
duke@0 245 export INCLUDE
duke@0 246 # Set the ALT variable
duke@0 247 dirMustExist "${compiler_path}" COMPILER_PATH
duke@0 248
duke@0 249 # WINDOWS: Get the previous JDK to be used to bootstrap the build
duke@0 250 path4sdk="${bootdir}/bin;${path4sdk}"
duke@0 251
duke@0 252 # Turn all \\ into /, remove duplicates and trailing /
duke@0 253 slash_path="`echo ${path4sdk} | sed -e 's@\\\\@/@g' -e 's@//@/@g' -e 's@/$@@' -e 's@/;@;@g'`"
duke@0 254
duke@0 255 # For windows, it's hard to know where the system is, so we just add this
duke@0 256 # to PATH.
duke@0 257 path4sdk="${slash_path};${PATH}"
duke@0 258
duke@0 259 # Convert path4sdk to cygwin style
duke@0 260 if [ "${unix_toolset}" = CYGWIN ] ; then
duke@0 261 path4sdk="`/usr/bin/cygpath -p ${path4sdk}`"
duke@0 262 fi
duke@0 263
duke@0 264 fi
duke@0 265
duke@0 266 # Export PATH setting
duke@0 267 PATH="${path4sdk}"
duke@0 268 export PATH
duke@0 269
duke@0 270 # Unset certain vars
duke@0 271 unset LD_LIBRARY_PATH
duke@0 272 unset LD_LIBRARY_PATH_32
duke@0 273 unset LD_LIBRARY_PATH_64
duke@0 274