annotate test/jprt.config @ 4181:319860ae697a

Simplify FrameMap: make offsets of spill slots and outgoing parameters independent so that they can be allocated at the same time, eliminating the separate phases. This makes the separate StackBlock unnecesary. Change CiStackSlot to use byte offsets instead of spill slot index. This makes CiTarget.spillSlotSize unnecessary.
author Christian Wimmer <Christian.Wimmer@Oracle.com>
date Mon, 02 Jan 2012 14:16:08 -0800
parents f08d439fab8c
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
a61af66fc99e Initial load
duke
parents:
diff changeset
1 #!echo "This is not a shell script"
a61af66fc99e Initial load
duke
parents:
diff changeset
2 #############################################################################
a61af66fc99e Initial load
duke
parents:
diff changeset
3 #
1552
c18cbe5936b8 6941466: Oracle rebranding changes for Hotspot repositories
trims
parents: 0
diff changeset
4 # Copyright (c) 2006, 2007, Oracle and/or its affiliates. All rights reserved.
0
a61af66fc99e Initial load
duke
parents:
diff changeset
5 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
a61af66fc99e Initial load
duke
parents:
diff changeset
6 #
a61af66fc99e Initial load
duke
parents:
diff changeset
7 # This code is free software; you can redistribute it and/or modify it
a61af66fc99e Initial load
duke
parents:
diff changeset
8 # under the terms of the GNU General Public License version 2 only, as
a61af66fc99e Initial load
duke
parents:
diff changeset
9 # published by the Free Software Foundation.
a61af66fc99e Initial load
duke
parents:
diff changeset
10 #
a61af66fc99e Initial load
duke
parents:
diff changeset
11 # This code is distributed in the hope that it will be useful, but WITHOUT
a61af66fc99e Initial load
duke
parents:
diff changeset
12 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
a61af66fc99e Initial load
duke
parents:
diff changeset
13 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
a61af66fc99e Initial load
duke
parents:
diff changeset
14 # version 2 for more details (a copy is included in the LICENSE file that
a61af66fc99e Initial load
duke
parents:
diff changeset
15 # accompanied this code).
a61af66fc99e Initial load
duke
parents:
diff changeset
16 #
a61af66fc99e Initial load
duke
parents:
diff changeset
17 # You should have received a copy of the GNU General Public License version
a61af66fc99e Initial load
duke
parents:
diff changeset
18 # 2 along with this work; if not, write to the Free Software Foundation,
a61af66fc99e Initial load
duke
parents:
diff changeset
19 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
a61af66fc99e Initial load
duke
parents:
diff changeset
20 #
1552
c18cbe5936b8 6941466: Oracle rebranding changes for Hotspot repositories
trims
parents: 0
diff changeset
21 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
c18cbe5936b8 6941466: Oracle rebranding changes for Hotspot repositories
trims
parents: 0
diff changeset
22 # or visit www.oracle.com if you need additional information or have any
c18cbe5936b8 6941466: Oracle rebranding changes for Hotspot repositories
trims
parents: 0
diff changeset
23 # questions.
0
a61af66fc99e Initial load
duke
parents:
diff changeset
24 #
a61af66fc99e Initial load
duke
parents:
diff changeset
25 #############################################################################
a61af66fc99e Initial load
duke
parents:
diff changeset
26
a61af66fc99e Initial load
duke
parents:
diff changeset
27 #############################################################################
a61af66fc99e Initial load
duke
parents:
diff changeset
28 #
a61af66fc99e Initial load
duke
parents:
diff changeset
29 # JPRT shell configuration for testing.
a61af66fc99e Initial load
duke
parents:
diff changeset
30 #
a61af66fc99e Initial load
duke
parents:
diff changeset
31 # Input environment variables:
a61af66fc99e Initial load
duke
parents:
diff changeset
32 # Windows Only:
a61af66fc99e Initial load
duke
parents:
diff changeset
33 # PATH
a61af66fc99e Initial load
duke
parents:
diff changeset
34 # ROOTDIR
a61af66fc99e Initial load
duke
parents:
diff changeset
35 #
a61af66fc99e Initial load
duke
parents:
diff changeset
36 # Output variable settings:
a61af66fc99e Initial load
duke
parents:
diff changeset
37 # make Full path to GNU make
a61af66fc99e Initial load
duke
parents:
diff changeset
38 #
a61af66fc99e Initial load
duke
parents:
diff changeset
39 # Output environment variables:
a61af66fc99e Initial load
duke
parents:
diff changeset
40 # PATH
a61af66fc99e Initial load
duke
parents:
diff changeset
41 #
a61af66fc99e Initial load
duke
parents:
diff changeset
42 #############################################################################
a61af66fc99e Initial load
duke
parents:
diff changeset
43
a61af66fc99e Initial load
duke
parents:
diff changeset
44 #############################################################################
a61af66fc99e Initial load
duke
parents:
diff changeset
45 # Error
a61af66fc99e Initial load
duke
parents:
diff changeset
46 error() # message
a61af66fc99e Initial load
duke
parents:
diff changeset
47 {
a61af66fc99e Initial load
duke
parents:
diff changeset
48 echo "ERROR: $1"
a61af66fc99e Initial load
duke
parents:
diff changeset
49 exit 6
a61af66fc99e Initial load
duke
parents:
diff changeset
50 }
a61af66fc99e Initial load
duke
parents:
diff changeset
51 # Directory must exist
a61af66fc99e Initial load
duke
parents:
diff changeset
52 dirMustExist() # dir name
a61af66fc99e Initial load
duke
parents:
diff changeset
53 {
a61af66fc99e Initial load
duke
parents:
diff changeset
54 if [ ! -d "$1" ] ; then
a61af66fc99e Initial load
duke
parents:
diff changeset
55 error "Directory for $2 does not exist: $1"
a61af66fc99e Initial load
duke
parents:
diff changeset
56 fi
a61af66fc99e Initial load
duke
parents:
diff changeset
57 }
a61af66fc99e Initial load
duke
parents:
diff changeset
58 # File must exist
a61af66fc99e Initial load
duke
parents:
diff changeset
59 fileMustExist() # dir name
a61af66fc99e Initial load
duke
parents:
diff changeset
60 {
a61af66fc99e Initial load
duke
parents:
diff changeset
61 if [ ! -f "$1" ] ; then
a61af66fc99e Initial load
duke
parents:
diff changeset
62 error "File for $2 does not exist: $1"
a61af66fc99e Initial load
duke
parents:
diff changeset
63 fi
a61af66fc99e Initial load
duke
parents:
diff changeset
64 }
a61af66fc99e Initial load
duke
parents:
diff changeset
65 #############################################################################
a61af66fc99e Initial load
duke
parents:
diff changeset
66
a61af66fc99e Initial load
duke
parents:
diff changeset
67 # Should be set by JPRT as the 3 basic inputs
a61af66fc99e Initial load
duke
parents:
diff changeset
68 slashjava="${ALT_SLASH_JAVA}"
a61af66fc99e Initial load
duke
parents:
diff changeset
69 if [ "${slashjava}" = "" ] ; then
a61af66fc99e Initial load
duke
parents:
diff changeset
70 slashjava=/java
a61af66fc99e Initial load
duke
parents:
diff changeset
71 fi
a61af66fc99e Initial load
duke
parents:
diff changeset
72
a61af66fc99e Initial load
duke
parents:
diff changeset
73 # Check input
a61af66fc99e Initial load
duke
parents:
diff changeset
74 dirMustExist "${slashjava}" ALT_SLASH_JAVA
a61af66fc99e Initial load
duke
parents:
diff changeset
75
a61af66fc99e Initial load
duke
parents:
diff changeset
76 # Uses 'uname -s', but only expect SunOS or Linux, assume Windows otherwise.
a61af66fc99e Initial load
duke
parents:
diff changeset
77 osname=`uname -s`
3960
f08d439fab8c 7089790: integrate bsd-port changes
never
parents: 1552
diff changeset
78 case "${osname}" in
f08d439fab8c 7089790: integrate bsd-port changes
never
parents: 1552
diff changeset
79 SunOS )
0
a61af66fc99e Initial load
duke
parents:
diff changeset
80 # SOLARIS: Sparc or X86
a61af66fc99e Initial load
duke
parents:
diff changeset
81 osarch=`uname -p`
a61af66fc99e Initial load
duke
parents:
diff changeset
82 if [ "${osarch}" = sparc ] ; then
a61af66fc99e Initial load
duke
parents:
diff changeset
83 solaris_arch=sparc
a61af66fc99e Initial load
duke
parents:
diff changeset
84 else
a61af66fc99e Initial load
duke
parents:
diff changeset
85 solaris_arch=i386
a61af66fc99e Initial load
duke
parents:
diff changeset
86 fi
a61af66fc99e Initial load
duke
parents:
diff changeset
87
a61af66fc99e Initial load
duke
parents:
diff changeset
88 # Add basic solaris system paths
a61af66fc99e Initial load
duke
parents:
diff changeset
89 path4sdk=/usr/ccs/bin:/usr/ccs/lib:/usr/bin:/bin:/usr/sfw/bin
a61af66fc99e Initial load
duke
parents:
diff changeset
90
a61af66fc99e Initial load
duke
parents:
diff changeset
91 # Find GNU make
a61af66fc99e Initial load
duke
parents:
diff changeset
92 make=/usr/sfw/bin/gmake
a61af66fc99e Initial load
duke
parents:
diff changeset
93 if [ ! -f ${make} ] ; then
a61af66fc99e Initial load
duke
parents:
diff changeset
94 make=/opt/sfw/bin/gmake
a61af66fc99e Initial load
duke
parents:
diff changeset
95 if [ ! -f ${make} ] ; then
a61af66fc99e Initial load
duke
parents:
diff changeset
96 make=${slashjava}/devtools/${solaris_arch}/bin/gnumake
a61af66fc99e Initial load
duke
parents:
diff changeset
97 fi
a61af66fc99e Initial load
duke
parents:
diff changeset
98 fi
a61af66fc99e Initial load
duke
parents:
diff changeset
99 fileMustExist "${make}" make
a61af66fc99e Initial load
duke
parents:
diff changeset
100
a61af66fc99e Initial load
duke
parents:
diff changeset
101 # File creation mask
a61af66fc99e Initial load
duke
parents:
diff changeset
102 umask 002
3960
f08d439fab8c 7089790: integrate bsd-port changes
never
parents: 1552
diff changeset
103 ;;
0
a61af66fc99e Initial load
duke
parents:
diff changeset
104
3960
f08d439fab8c 7089790: integrate bsd-port changes
never
parents: 1552
diff changeset
105 Linux | Darwin )
0
a61af66fc99e Initial load
duke
parents:
diff changeset
106 # Add basic paths
a61af66fc99e Initial load
duke
parents:
diff changeset
107 path4sdk=/usr/bin:/bin:/usr/sbin:/sbin
a61af66fc99e Initial load
duke
parents:
diff changeset
108
a61af66fc99e Initial load
duke
parents:
diff changeset
109 # Find GNU make
a61af66fc99e Initial load
duke
parents:
diff changeset
110 make=/usr/bin/make
a61af66fc99e Initial load
duke
parents:
diff changeset
111 fileMustExist "${make}" make
a61af66fc99e Initial load
duke
parents:
diff changeset
112
a61af66fc99e Initial load
duke
parents:
diff changeset
113 umask 002
3960
f08d439fab8c 7089790: integrate bsd-port changes
never
parents: 1552
diff changeset
114 ;;
0
a61af66fc99e Initial load
duke
parents:
diff changeset
115
3960
f08d439fab8c 7089790: integrate bsd-port changes
never
parents: 1552
diff changeset
116 FreeBSD | OpenBSD )
f08d439fab8c 7089790: integrate bsd-port changes
never
parents: 1552
diff changeset
117 # Add basic paths
f08d439fab8c 7089790: integrate bsd-port changes
never
parents: 1552
diff changeset
118 path4sdk=/usr/bin:/bin:/usr/sbin:/sbin
f08d439fab8c 7089790: integrate bsd-port changes
never
parents: 1552
diff changeset
119
f08d439fab8c 7089790: integrate bsd-port changes
never
parents: 1552
diff changeset
120 # Find GNU make
f08d439fab8c 7089790: integrate bsd-port changes
never
parents: 1552
diff changeset
121 make=/usr/local/bin/gmake
f08d439fab8c 7089790: integrate bsd-port changes
never
parents: 1552
diff changeset
122 fileMustExist "${make}" make
f08d439fab8c 7089790: integrate bsd-port changes
never
parents: 1552
diff changeset
123
f08d439fab8c 7089790: integrate bsd-port changes
never
parents: 1552
diff changeset
124 umask 002
f08d439fab8c 7089790: integrate bsd-port changes
never
parents: 1552
diff changeset
125 ;;
0
a61af66fc99e Initial load
duke
parents:
diff changeset
126
3960
f08d439fab8c 7089790: integrate bsd-port changes
never
parents: 1552
diff changeset
127 NetBSD )
f08d439fab8c 7089790: integrate bsd-port changes
never
parents: 1552
diff changeset
128 # Add basic paths
f08d439fab8c 7089790: integrate bsd-port changes
never
parents: 1552
diff changeset
129 path4sdk=/usr/bin:/bin:/usr/sbin:/sbin
f08d439fab8c 7089790: integrate bsd-port changes
never
parents: 1552
diff changeset
130
f08d439fab8c 7089790: integrate bsd-port changes
never
parents: 1552
diff changeset
131 # Find GNU make
f08d439fab8c 7089790: integrate bsd-port changes
never
parents: 1552
diff changeset
132 make=/usr/pkg/bin/gmake
f08d439fab8c 7089790: integrate bsd-port changes
never
parents: 1552
diff changeset
133 fileMustExist "${make}" make
f08d439fab8c 7089790: integrate bsd-port changes
never
parents: 1552
diff changeset
134
f08d439fab8c 7089790: integrate bsd-port changes
never
parents: 1552
diff changeset
135 umask 002
f08d439fab8c 7089790: integrate bsd-port changes
never
parents: 1552
diff changeset
136 ;;
f08d439fab8c 7089790: integrate bsd-port changes
never
parents: 1552
diff changeset
137
f08d439fab8c 7089790: integrate bsd-port changes
never
parents: 1552
diff changeset
138 * )
0
a61af66fc99e Initial load
duke
parents:
diff changeset
139 # Windows: Differs on CYGWIN vs. MKS.
a61af66fc99e Initial load
duke
parents:
diff changeset
140
a61af66fc99e Initial load
duke
parents:
diff changeset
141 # We need to determine if we are running a CYGWIN shell or an MKS shell
a61af66fc99e Initial load
duke
parents:
diff changeset
142 # (if uname isn't available, then it will be unix_toolset=unknown)
a61af66fc99e Initial load
duke
parents:
diff changeset
143 unix_toolset=unknown
a61af66fc99e Initial load
duke
parents:
diff changeset
144 if [ "`uname -a | fgrep Cygwin`" = "" -a -d "${ROOTDIR}" ] ; then
a61af66fc99e Initial load
duke
parents:
diff changeset
145 # We kind of assume ROOTDIR is where MKS is and it's ok
a61af66fc99e Initial load
duke
parents:
diff changeset
146 unix_toolset=MKS
a61af66fc99e Initial load
duke
parents:
diff changeset
147 mkshome=`dosname -s "${ROOTDIR}"`
a61af66fc99e Initial load
duke
parents:
diff changeset
148 # Most unix utilities are in the mksnt directory of ROOTDIR
a61af66fc99e Initial load
duke
parents:
diff changeset
149 unixcommand_path="${mkshome}/mksnt"
a61af66fc99e Initial load
duke
parents:
diff changeset
150 path4sdk="${unixcommand_path}"
a61af66fc99e Initial load
duke
parents:
diff changeset
151 devtools_path="${slashjava}/devtools/win32/bin"
a61af66fc99e Initial load
duke
parents:
diff changeset
152 path4sdk="${devtools_path};${path4sdk}"
a61af66fc99e Initial load
duke
parents:
diff changeset
153 # Find GNU make
a61af66fc99e Initial load
duke
parents:
diff changeset
154 make="${devtools_path}/gnumake.exe"
a61af66fc99e Initial load
duke
parents:
diff changeset
155 fileMustExist "${make}" make
a61af66fc99e Initial load
duke
parents:
diff changeset
156 elif [ "`uname -a | fgrep Cygwin`" != "" -a -f /bin/cygpath ] ; then
a61af66fc99e Initial load
duke
parents:
diff changeset
157 # For CYGWIN, uname will have "Cygwin" in it, and /bin/cygpath should exist
a61af66fc99e Initial load
duke
parents:
diff changeset
158 unix_toolset=CYGWIN
a61af66fc99e Initial load
duke
parents:
diff changeset
159 # Most unix utilities are in the /usr/bin
a61af66fc99e Initial load
duke
parents:
diff changeset
160 unixcommand_path="/usr/bin"
a61af66fc99e Initial load
duke
parents:
diff changeset
161 path4sdk="${unixcommand_path}"
a61af66fc99e Initial load
duke
parents:
diff changeset
162 # Find GNU make
a61af66fc99e Initial load
duke
parents:
diff changeset
163 make="${unixcommand_path}/make.exe"
a61af66fc99e Initial load
duke
parents:
diff changeset
164 fileMustExist "${make}" make
a61af66fc99e Initial load
duke
parents:
diff changeset
165 else
a61af66fc99e Initial load
duke
parents:
diff changeset
166 echo "WARNING: Cannot figure out if this is MKS or CYGWIN"
a61af66fc99e Initial load
duke
parents:
diff changeset
167 fi
a61af66fc99e Initial load
duke
parents:
diff changeset
168
a61af66fc99e Initial load
duke
parents:
diff changeset
169
a61af66fc99e Initial load
duke
parents:
diff changeset
170 # For windows, it's hard to know where the system is, so we just add this
a61af66fc99e Initial load
duke
parents:
diff changeset
171 # to PATH.
a61af66fc99e Initial load
duke
parents:
diff changeset
172 slash_path="`echo ${path4sdk} | sed -e 's@\\\\@/@g' -e 's@//@/@g' -e 's@/$@@' -e 's@/;@;@g'`"
a61af66fc99e Initial load
duke
parents:
diff changeset
173 path4sdk="${slash_path};${PATH}"
a61af66fc99e Initial load
duke
parents:
diff changeset
174
a61af66fc99e Initial load
duke
parents:
diff changeset
175 # Convert path4sdk to cygwin style
a61af66fc99e Initial load
duke
parents:
diff changeset
176 if [ "${unix_toolset}" = CYGWIN ] ; then
a61af66fc99e Initial load
duke
parents:
diff changeset
177 path4sdk="`/usr/bin/cygpath -p ${path4sdk}`"
a61af66fc99e Initial load
duke
parents:
diff changeset
178 fi
3960
f08d439fab8c 7089790: integrate bsd-port changes
never
parents: 1552
diff changeset
179 ;;
f08d439fab8c 7089790: integrate bsd-port changes
never
parents: 1552
diff changeset
180 esac
0
a61af66fc99e Initial load
duke
parents:
diff changeset
181
a61af66fc99e Initial load
duke
parents:
diff changeset
182 # Export PATH setting
a61af66fc99e Initial load
duke
parents:
diff changeset
183 PATH="${path4sdk}"
a61af66fc99e Initial load
duke
parents:
diff changeset
184 export PATH
a61af66fc99e Initial load
duke
parents:
diff changeset
185