1 #!/bin/ksh 2 # 3 # CDDL HEADER START 4 # 5 # The contents of this file are subject to the terms of the 6 # Common Development and Distribution License (the "License"). 7 # You may not use this file except in compliance with the License. 8 # 9 # You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 10 # or http://www.opensolaris.org/os/licensing. 11 # See the License for the specific language governing permissions 12 # and limitations under the License. 13 # 14 # When distributing Covered Code, include this CDDL HEADER in each 15 # file and include the License file at usr/src/OPENSOLARIS.LICENSE. 16 # If applicable, add the following below this CDDL HEADER, with the 17 # fields enclosed by brackets "[]" replaced with your own identifying 18 # information: Portions Copyright [yyyy] [name of copyright owner] 19 # 20 # CDDL HEADER END 21 # 22 # 23 # cc wrapper. Put flags here. 24 # 25 # Copyright 2006 Sun Microsystems, Inc. All rights reserved. 26 # Use is subject to license terms. 27 # 28 #pragma ident "@(#)cc.ksh 1.5 06/09/12 SMI" 29 # 30 #ident "@(#)cc.ksh 1.5 06/09/12 SMI" 31 32 cc=${SPRO_ROOT-/ws/onnv-tools/SUNWspro}/SS11/bin/cc 33 34 args=$* 35 args= 36 for arg in $* 37 do 38 case $arg in 39 -O*) 40 args="$args -O" 41 ;; 42 *) 43 args="$args $arg" 44 ;; 45 esac 46 done 47 48 exec ${cc} -xildoff \ 49 -errtags=yes -erroff=E_NON_CONST_INIT -erroff=E_NON_CONST_INIT \ 50 -erroff=E_END_OF_LOOP_CODE_NOT_REACHED -erroff=E_DUBIOUS_TAG_IN_FUNC_PROTO \ 51 -erroff=E_ENUM_TYPE_MISMATCH_ARG -erroff=E_STATEMENT_NOT_REACHED \ 52 -erroff=E_ENUM_TYPE_MISMATCH_OP -erroff=E_ARG_INCOMPATIBLE_WITH_ARG \ 53 -erroff=E_INTEGER_OVERFLOW_DETECTED -erroff=E_INIT_DOES_NOT_FIT \ 54 -erroff=E_OPERANDS_INCOMPAT_PTR_TYPES -erroff=E_ASSIGNMENT_TYPE_MISMATCH \ 55 -erroff=E_INITIALIZATION_TYPE_MISMATCH -erroff=E_MACRO_REDEFINED \ 56 $args 57