jdk/test/tools/launcher/ChangeDataModel.sh
author kvn
Thu, 21 Feb 2008 14:03:41 -0800
changeset 199 fb51d01039ff
parent 2 90ce3da70b43
child 4663 dfea6ffdb0dc
permissions -rw-r--r--
6621084: ciMethodBlocks::split_block_at() is broken for methods with exception handler Summary: After an exception handler block is split the exception information is not moved to the new block which starts in exception handler BCI. Reviewed-by: jrose
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
     1
#
90ce3da70b43 Initial load
duke
parents:
diff changeset
     2
# Copyright 2003-2007 Sun Microsystems, Inc.  All Rights Reserved.
90ce3da70b43 Initial load
duke
parents:
diff changeset
     3
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
90ce3da70b43 Initial load
duke
parents:
diff changeset
     4
#
90ce3da70b43 Initial load
duke
parents:
diff changeset
     5
# This code is free software; you can redistribute it and/or modify it
90ce3da70b43 Initial load
duke
parents:
diff changeset
     6
# under the terms of the GNU General Public License version 2 only, as
90ce3da70b43 Initial load
duke
parents:
diff changeset
     7
# published by the Free Software Foundation.
90ce3da70b43 Initial load
duke
parents:
diff changeset
     8
#
90ce3da70b43 Initial load
duke
parents:
diff changeset
     9
# This code is distributed in the hope that it will be useful, but WITHOUT
90ce3da70b43 Initial load
duke
parents:
diff changeset
    10
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
90ce3da70b43 Initial load
duke
parents:
diff changeset
    11
# FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
90ce3da70b43 Initial load
duke
parents:
diff changeset
    12
# version 2 for more details (a copy is included in the LICENSE file that
90ce3da70b43 Initial load
duke
parents:
diff changeset
    13
# accompanied this code).
90ce3da70b43 Initial load
duke
parents:
diff changeset
    14
#
90ce3da70b43 Initial load
duke
parents:
diff changeset
    15
# You should have received a copy of the GNU General Public License version
90ce3da70b43 Initial load
duke
parents:
diff changeset
    16
# 2 along with this work; if not, write to the Free Software Foundation,
90ce3da70b43 Initial load
duke
parents:
diff changeset
    17
# Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    18
#
90ce3da70b43 Initial load
duke
parents:
diff changeset
    19
# Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,
90ce3da70b43 Initial load
duke
parents:
diff changeset
    20
# CA 95054 USA or visit www.sun.com if you need additional information or
90ce3da70b43 Initial load
duke
parents:
diff changeset
    21
# have any questions.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    22
#
90ce3da70b43 Initial load
duke
parents:
diff changeset
    23
90ce3da70b43 Initial load
duke
parents:
diff changeset
    24
# @test
90ce3da70b43 Initial load
duke
parents:
diff changeset
    25
# @bug 4894330 4810347 6277269
90ce3da70b43 Initial load
duke
parents:
diff changeset
    26
# @run shell ChangeDataModel.sh
90ce3da70b43 Initial load
duke
parents:
diff changeset
    27
# @summary Verify -d32 and -d64 options are accepted(rejected) on all platforms 
90ce3da70b43 Initial load
duke
parents:
diff changeset
    28
# @author Joseph D. Darcy
90ce3da70b43 Initial load
duke
parents:
diff changeset
    29
90ce3da70b43 Initial load
duke
parents:
diff changeset
    30
OS=`uname -s`;
90ce3da70b43 Initial load
duke
parents:
diff changeset
    31
90ce3da70b43 Initial load
duke
parents:
diff changeset
    32
case "$OS" in
90ce3da70b43 Initial load
duke
parents:
diff changeset
    33
	Windows* | CYGWIN* )
90ce3da70b43 Initial load
duke
parents:
diff changeset
    34
	  PATHSEP=";"
90ce3da70b43 Initial load
duke
parents:
diff changeset
    35
	  ;;
90ce3da70b43 Initial load
duke
parents:
diff changeset
    36
90ce3da70b43 Initial load
duke
parents:
diff changeset
    37
	* )
90ce3da70b43 Initial load
duke
parents:
diff changeset
    38
	  PATHSEP=":"
90ce3da70b43 Initial load
duke
parents:
diff changeset
    39
	;;
90ce3da70b43 Initial load
duke
parents:
diff changeset
    40
esac
90ce3da70b43 Initial load
duke
parents:
diff changeset
    41
90ce3da70b43 Initial load
duke
parents:
diff changeset
    42
# Verify directory context variables are set
90ce3da70b43 Initial load
duke
parents:
diff changeset
    43
if [ "${TESTJAVA}" = "" ]
90ce3da70b43 Initial load
duke
parents:
diff changeset
    44
then
90ce3da70b43 Initial load
duke
parents:
diff changeset
    45
  echo "TESTJAVA not set.  Test cannot execute.  Failed."
90ce3da70b43 Initial load
duke
parents:
diff changeset
    46
  exit 1
90ce3da70b43 Initial load
duke
parents:
diff changeset
    47
fi
90ce3da70b43 Initial load
duke
parents:
diff changeset
    48
90ce3da70b43 Initial load
duke
parents:
diff changeset
    49
if [ "${TESTSRC}" = "" ]
90ce3da70b43 Initial load
duke
parents:
diff changeset
    50
then
90ce3da70b43 Initial load
duke
parents:
diff changeset
    51
  echo "TESTSRC not set.  Test cannot execute.  Failed."
90ce3da70b43 Initial load
duke
parents:
diff changeset
    52
  exit 1
90ce3da70b43 Initial load
duke
parents:
diff changeset
    53
fi
90ce3da70b43 Initial load
duke
parents:
diff changeset
    54
90ce3da70b43 Initial load
duke
parents:
diff changeset
    55
if [ "${TESTCLASSES}" = "" ]
90ce3da70b43 Initial load
duke
parents:
diff changeset
    56
then
90ce3da70b43 Initial load
duke
parents:
diff changeset
    57
  echo "TESTCLASSES not set.  Test cannot execute.  Failed."
90ce3da70b43 Initial load
duke
parents:
diff changeset
    58
  exit 1
90ce3da70b43 Initial load
duke
parents:
diff changeset
    59
fi
90ce3da70b43 Initial load
duke
parents:
diff changeset
    60
90ce3da70b43 Initial load
duke
parents:
diff changeset
    61
# Construct paths to default Java executables
90ce3da70b43 Initial load
duke
parents:
diff changeset
    62
JAVA="$TESTJAVA/bin/java -classpath $TESTCLASSES${PATHSEP}."
90ce3da70b43 Initial load
duke
parents:
diff changeset
    63
JAVAC="$TESTJAVA/bin/javac"
90ce3da70b43 Initial load
duke
parents:
diff changeset
    64
90ce3da70b43 Initial load
duke
parents:
diff changeset
    65
90ce3da70b43 Initial load
duke
parents:
diff changeset
    66
# Create our little Java test on the fly
90ce3da70b43 Initial load
duke
parents:
diff changeset
    67
( printf "public class GetDataModel {"
90ce3da70b43 Initial load
duke
parents:
diff changeset
    68
  printf "   public static void main(String argv[]) {"
90ce3da70b43 Initial load
duke
parents:
diff changeset
    69
  printf "      System.out.println(System.getProperty(\"sun.arch.data.model\", \"none\"));"
90ce3da70b43 Initial load
duke
parents:
diff changeset
    70
  printf "   }"
90ce3da70b43 Initial load
duke
parents:
diff changeset
    71
  printf "}"
90ce3da70b43 Initial load
duke
parents:
diff changeset
    72
) > GetDataModel.java
90ce3da70b43 Initial load
duke
parents:
diff changeset
    73
90ce3da70b43 Initial load
duke
parents:
diff changeset
    74
$JAVAC GetDataModel.java
90ce3da70b43 Initial load
duke
parents:
diff changeset
    75
90ce3da70b43 Initial load
duke
parents:
diff changeset
    76
90ce3da70b43 Initial load
duke
parents:
diff changeset
    77
# All preconditions are met; run the tests.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    78
90ce3da70b43 Initial load
duke
parents:
diff changeset
    79
90ce3da70b43 Initial load
duke
parents:
diff changeset
    80
# Verify data model flag for default data model is accepted
90ce3da70b43 Initial load
duke
parents:
diff changeset
    81
90ce3da70b43 Initial load
duke
parents:
diff changeset
    82
DM=`$JAVA GetDataModel`
90ce3da70b43 Initial load
duke
parents:
diff changeset
    83
case "$DM" in
90ce3da70b43 Initial load
duke
parents:
diff changeset
    84
        32 )
90ce3da70b43 Initial load
duke
parents:
diff changeset
    85
		DM2=`${JAVA} -d32 GetDataModel`	
90ce3da70b43 Initial load
duke
parents:
diff changeset
    86
		if [ "${DM2}" != "32" ]
90ce3da70b43 Initial load
duke
parents:
diff changeset
    87
		then
90ce3da70b43 Initial load
duke
parents:
diff changeset
    88
	  	echo "Data model flag -d32 not accepted or had improper effect."
90ce3da70b43 Initial load
duke
parents:
diff changeset
    89
	  	exit 1
90ce3da70b43 Initial load
duke
parents:
diff changeset
    90
		fi
90ce3da70b43 Initial load
duke
parents:
diff changeset
    91
        ;;
90ce3da70b43 Initial load
duke
parents:
diff changeset
    92
90ce3da70b43 Initial load
duke
parents:
diff changeset
    93
        64 )
90ce3da70b43 Initial load
duke
parents:
diff changeset
    94
		DM2=`${JAVA} -d64 GetDataModel`	
90ce3da70b43 Initial load
duke
parents:
diff changeset
    95
		if [ "${DM2}" != "64" ]
90ce3da70b43 Initial load
duke
parents:
diff changeset
    96
		then
90ce3da70b43 Initial load
duke
parents:
diff changeset
    97
	  	echo "Data model flag -d64 not accepted or had improper effect."
90ce3da70b43 Initial load
duke
parents:
diff changeset
    98
	  	exit 1
90ce3da70b43 Initial load
duke
parents:
diff changeset
    99
		fi
90ce3da70b43 Initial load
duke
parents:
diff changeset
   100
	;;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   101
90ce3da70b43 Initial load
duke
parents:
diff changeset
   102
	* )
90ce3da70b43 Initial load
duke
parents:
diff changeset
   103
		echo "Unrecognized data model: $DM"
90ce3da70b43 Initial load
duke
parents:
diff changeset
   104
        	exit 1
90ce3da70b43 Initial load
duke
parents:
diff changeset
   105
	;;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   106
esac
90ce3da70b43 Initial load
duke
parents:
diff changeset
   107
90ce3da70b43 Initial load
duke
parents:
diff changeset
   108
# Determine if platform might be dual-mode capable.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   109
90ce3da70b43 Initial load
duke
parents:
diff changeset
   110
case "$OS" in
90ce3da70b43 Initial load
duke
parents:
diff changeset
   111
	SunOS )
90ce3da70b43 Initial load
duke
parents:
diff changeset
   112
		# ARCH should be sparc or i386
90ce3da70b43 Initial load
duke
parents:
diff changeset
   113
		ARCH=`uname -p`
90ce3da70b43 Initial load
duke
parents:
diff changeset
   114
		case "${ARCH}" in 
90ce3da70b43 Initial load
duke
parents:
diff changeset
   115
			sparc )
90ce3da70b43 Initial load
duke
parents:
diff changeset
   116
			DUALMODE=true
90ce3da70b43 Initial load
duke
parents:
diff changeset
   117
			PATH64=sparcv9
90ce3da70b43 Initial load
duke
parents:
diff changeset
   118
			;;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   119
90ce3da70b43 Initial load
duke
parents:
diff changeset
   120
			i386 )
90ce3da70b43 Initial load
duke
parents:
diff changeset
   121
			DUALMODE=true
90ce3da70b43 Initial load
duke
parents:
diff changeset
   122
			PATH64=amd64
90ce3da70b43 Initial load
duke
parents:
diff changeset
   123
			;;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   124
90ce3da70b43 Initial load
duke
parents:
diff changeset
   125
			* )
90ce3da70b43 Initial load
duke
parents:
diff changeset
   126
			DUALMODE=false
90ce3da70b43 Initial load
duke
parents:
diff changeset
   127
			;;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   128
		esac
90ce3da70b43 Initial load
duke
parents:
diff changeset
   129
	;;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   130
90ce3da70b43 Initial load
duke
parents:
diff changeset
   131
90ce3da70b43 Initial load
duke
parents:
diff changeset
   132
	Linux )
90ce3da70b43 Initial load
duke
parents:
diff changeset
   133
		# ARCH should be ia64, x86_64, or i*86
90ce3da70b43 Initial load
duke
parents:
diff changeset
   134
		ARCH=`uname -m`
90ce3da70b43 Initial load
duke
parents:
diff changeset
   135
		case "${ARCH}" in 
90ce3da70b43 Initial load
duke
parents:
diff changeset
   136
			ia64 )
90ce3da70b43 Initial load
duke
parents:
diff changeset
   137
			DUALMODE=false
90ce3da70b43 Initial load
duke
parents:
diff changeset
   138
			;;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   139
90ce3da70b43 Initial load
duke
parents:
diff changeset
   140
			x86_64 )
90ce3da70b43 Initial load
duke
parents:
diff changeset
   141
			DUALMODE=true
90ce3da70b43 Initial load
duke
parents:
diff changeset
   142
			PATH64=amd64
90ce3da70b43 Initial load
duke
parents:
diff changeset
   143
			;;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   144
90ce3da70b43 Initial load
duke
parents:
diff changeset
   145
			* )
90ce3da70b43 Initial load
duke
parents:
diff changeset
   146
			DUALMODE=false;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   147
			;;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   148
		esac
90ce3da70b43 Initial load
duke
parents:
diff changeset
   149
	;;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   150
90ce3da70b43 Initial load
duke
parents:
diff changeset
   151
	Windows* | CYGWIN* )
90ce3da70b43 Initial load
duke
parents:
diff changeset
   152
		ARCH=`uname -m`
90ce3da70b43 Initial load
duke
parents:
diff changeset
   153
		case "${ARCH}" in 
90ce3da70b43 Initial load
duke
parents:
diff changeset
   154
			* )
90ce3da70b43 Initial load
duke
parents:
diff changeset
   155
			DUALMODE=false;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   156
			;;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   157
		esac
90ce3da70b43 Initial load
duke
parents:
diff changeset
   158
	;;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   159
90ce3da70b43 Initial load
duke
parents:
diff changeset
   160
	* )
90ce3da70b43 Initial load
duke
parents:
diff changeset
   161
		echo "Warning: unknown environment."
90ce3da70b43 Initial load
duke
parents:
diff changeset
   162
		DUALMODE=false
90ce3da70b43 Initial load
duke
parents:
diff changeset
   163
	;;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   164
esac
90ce3da70b43 Initial load
duke
parents:
diff changeset
   165
90ce3da70b43 Initial load
duke
parents:
diff changeset
   166
if [ "${DUALMODE}" = "true" ]
90ce3da70b43 Initial load
duke
parents:
diff changeset
   167
then
90ce3da70b43 Initial load
duke
parents:
diff changeset
   168
	# Construct path to 64-bit Java executable, might not exist
90ce3da70b43 Initial load
duke
parents:
diff changeset
   169
	JAVA64FILE="${TESTJAVA}/bin/${PATH64}/java"
90ce3da70b43 Initial load
duke
parents:
diff changeset
   170
	JAVA64="${JAVA64FILE} -classpath ${TESTCLASSES}${PATHSEP}."
90ce3da70b43 Initial load
duke
parents:
diff changeset
   171
90ce3da70b43 Initial load
duke
parents:
diff changeset
   172
	if [ -f ${JAVA64FILE} ]; then
90ce3da70b43 Initial load
duke
parents:
diff changeset
   173
		# Verify that, at least on Solaris, only one exec is
90ce3da70b43 Initial load
duke
parents:
diff changeset
   174
		# used to change data models
90ce3da70b43 Initial load
duke
parents:
diff changeset
   175
		if [ "${OS}" = "SunOS" ]
90ce3da70b43 Initial load
duke
parents:
diff changeset
   176
		then
90ce3da70b43 Initial load
duke
parents:
diff changeset
   177
			rm -f truss.out
90ce3da70b43 Initial load
duke
parents:
diff changeset
   178
			truss -texec ${JAVA} -d64 GetDataModel > /dev/null 2> truss.out
90ce3da70b43 Initial load
duke
parents:
diff changeset
   179
			execCount=`grep -c execve truss.out`
90ce3da70b43 Initial load
duke
parents:
diff changeset
   180
			if [ "${execCount}" -gt 2 ]
90ce3da70b43 Initial load
duke
parents:
diff changeset
   181
			then
90ce3da70b43 Initial load
duke
parents:
diff changeset
   182
				echo "Maximum exec count of 2 exceeded: got $execCount."
90ce3da70b43 Initial load
duke
parents:
diff changeset
   183
				exit 1
90ce3da70b43 Initial load
duke
parents:
diff changeset
   184
			fi
90ce3da70b43 Initial load
duke
parents:
diff changeset
   185
90ce3da70b43 Initial load
duke
parents:
diff changeset
   186
			rm -f truss.out
90ce3da70b43 Initial load
duke
parents:
diff changeset
   187
			truss -texec ${JAVA64} -d32 GetDataModel > /dev/null 2> truss.out
90ce3da70b43 Initial load
duke
parents:
diff changeset
   188
			execCount=`grep -c execve truss.out`
90ce3da70b43 Initial load
duke
parents:
diff changeset
   189
			if [ "${execCount}" -gt 2 ]
90ce3da70b43 Initial load
duke
parents:
diff changeset
   190
			then
90ce3da70b43 Initial load
duke
parents:
diff changeset
   191
				echo "Maximum exec count of 2 exceeded: got $execCount."
90ce3da70b43 Initial load
duke
parents:
diff changeset
   192
				exit 1
90ce3da70b43 Initial load
duke
parents:
diff changeset
   193
			fi
90ce3da70b43 Initial load
duke
parents:
diff changeset
   194
		fi
90ce3da70b43 Initial load
duke
parents:
diff changeset
   195
90ce3da70b43 Initial load
duke
parents:
diff changeset
   196
		DM2=`${JAVA} -d64 GetDataModel`
90ce3da70b43 Initial load
duke
parents:
diff changeset
   197
		if [ "${DM2}" != "64" ]
90ce3da70b43 Initial load
duke
parents:
diff changeset
   198
		then
90ce3da70b43 Initial load
duke
parents:
diff changeset
   199
		  echo "Data model flag -d64 not accepted or had improper effect."
90ce3da70b43 Initial load
duke
parents:
diff changeset
   200
		  exit 1
90ce3da70b43 Initial load
duke
parents:
diff changeset
   201
		fi
90ce3da70b43 Initial load
duke
parents:
diff changeset
   202
90ce3da70b43 Initial load
duke
parents:
diff changeset
   203
		DM2=`${JAVA64} GetDataModel`
90ce3da70b43 Initial load
duke
parents:
diff changeset
   204
		if [ "${DM2}" != "64" ]
90ce3da70b43 Initial load
duke
parents:
diff changeset
   205
		then
90ce3da70b43 Initial load
duke
parents:
diff changeset
   206
		  echo "Improper data model returned."
90ce3da70b43 Initial load
duke
parents:
diff changeset
   207
		  exit 1
90ce3da70b43 Initial load
duke
parents:
diff changeset
   208
		fi
90ce3da70b43 Initial load
duke
parents:
diff changeset
   209
90ce3da70b43 Initial load
duke
parents:
diff changeset
   210
		DM2=`${JAVA64} -d64 GetDataModel`
90ce3da70b43 Initial load
duke
parents:
diff changeset
   211
		if [ "${DM2}" != "64" ]
90ce3da70b43 Initial load
duke
parents:
diff changeset
   212
		then
90ce3da70b43 Initial load
duke
parents:
diff changeset
   213
		  echo "Data model flag -d64 not accepted or had improper effect."
90ce3da70b43 Initial load
duke
parents:
diff changeset
   214
		  exit 1
90ce3da70b43 Initial load
duke
parents:
diff changeset
   215
		fi
90ce3da70b43 Initial load
duke
parents:
diff changeset
   216
90ce3da70b43 Initial load
duke
parents:
diff changeset
   217
		DM2=`${JAVA64} -d32 GetDataModel`
90ce3da70b43 Initial load
duke
parents:
diff changeset
   218
		if [ "${DM2}" != "32" ]
90ce3da70b43 Initial load
duke
parents:
diff changeset
   219
		then
90ce3da70b43 Initial load
duke
parents:
diff changeset
   220
		  echo "Data model flag -d32 not accepted or had improper effect."
90ce3da70b43 Initial load
duke
parents:
diff changeset
   221
		  exit 1
90ce3da70b43 Initial load
duke
parents:
diff changeset
   222
		fi
90ce3da70b43 Initial load
duke
parents:
diff changeset
   223
90ce3da70b43 Initial load
duke
parents:
diff changeset
   224
	else
90ce3da70b43 Initial load
duke
parents:
diff changeset
   225
	  echo "Warning: no 64-bit components found; only one data model tested."
90ce3da70b43 Initial load
duke
parents:
diff changeset
   226
	fi
90ce3da70b43 Initial load
duke
parents:
diff changeset
   227
else
90ce3da70b43 Initial load
duke
parents:
diff changeset
   228
# Negative tests for non-dual mode platforms to ensure the other data model is 
90ce3da70b43 Initial load
duke
parents:
diff changeset
   229
# rejected
90ce3da70b43 Initial load
duke
parents:
diff changeset
   230
	DM=`$JAVA GetDataModel`
90ce3da70b43 Initial load
duke
parents:
diff changeset
   231
	case "$DM" in
90ce3da70b43 Initial load
duke
parents:
diff changeset
   232
	   32 )
90ce3da70b43 Initial load
duke
parents:
diff changeset
   233
		DM2=`${JAVA} -d64 GetDataModel`	
90ce3da70b43 Initial load
duke
parents:
diff changeset
   234
		if [ "x${DM2}" != "x" ]
90ce3da70b43 Initial load
duke
parents:
diff changeset
   235
		then
90ce3da70b43 Initial load
duke
parents:
diff changeset
   236
		   echo "Data model flag -d64 was accepted."
90ce3da70b43 Initial load
duke
parents:
diff changeset
   237
		   exit 1
90ce3da70b43 Initial load
duke
parents:
diff changeset
   238
		fi
90ce3da70b43 Initial load
duke
parents:
diff changeset
   239
           ;;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   240
90ce3da70b43 Initial load
duke
parents:
diff changeset
   241
	   64 )
90ce3da70b43 Initial load
duke
parents:
diff changeset
   242
		DM2=`${JAVA} -d32 GetDataModel`	
90ce3da70b43 Initial load
duke
parents:
diff changeset
   243
		if [ "x${DM2}" != "x" ]
90ce3da70b43 Initial load
duke
parents:
diff changeset
   244
		  then
90ce3da70b43 Initial load
duke
parents:
diff changeset
   245
		    echo "Data model flag -d32 was accepted."
90ce3da70b43 Initial load
duke
parents:
diff changeset
   246
	  	    exit 1
90ce3da70b43 Initial load
duke
parents:
diff changeset
   247
		fi
90ce3da70b43 Initial load
duke
parents:
diff changeset
   248
	   ;;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   249
90ce3da70b43 Initial load
duke
parents:
diff changeset
   250
	   * )
90ce3da70b43 Initial load
duke
parents:
diff changeset
   251
		echo "Unrecognized data model: $DM"
90ce3da70b43 Initial load
duke
parents:
diff changeset
   252
        	exit 1
90ce3da70b43 Initial load
duke
parents:
diff changeset
   253
	   ;;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   254
        esac
90ce3da70b43 Initial load
duke
parents:
diff changeset
   255
fi
90ce3da70b43 Initial load
duke
parents:
diff changeset
   256
90ce3da70b43 Initial load
duke
parents:
diff changeset
   257
exit 0;