OBSOLETE Patch-ID# 101934-01
Keywords: short arithmetic byte halfword postincrement
Synopsis: OBSOLETED by WITHDRAWN
Date: Jan/30/95
02/01/95: Due to a patch packaging problem discovered in this
patch after release, this patch rev is being rescinded. A
new rev of the patch is expected to be released soon which
corrects this problem.
Solaris Release: 2.2, 2.3, 2.4
SunOS Release: 5.2, 5.3, 5.4
Unbundled Product: SPARCompiler C
Unbundled Release: 3.0.1
BugId's fixed with this patch: 1171109 1173308 1175397 1180926
Changes incorporated in this version: 1180926
Relevant Architectures: sparc
Patches accumulated and obsoleted by this patch:
Patches which conflict with this patch:
Patches required with this patch:
Obsoleted by: WITHDRAWN on Feb/01/95
Files included with this patch: cg
Problem Description:
cg fails to generate 8 or 16 bit arithmetic operations correctly
when optimization used.
Patch Installation Instructions:
--------------------------------
Generic 'installpatch' and 'backoutpatch' scripts are provided
within each patch package with instructions appended to this section.
Other specific or unique installation instructions may also be
necessary and should be described below.
Special Install Instructions:
-----------------------------
None.
Instructions to install patch using "installpatch"
--------------------------------------------------
1. Become super-user.
2. Apply the patch by typing:
installpatch
where is the directory containing installpatch, and
is the directory containing the patch itself.
Example:
# cd /tmp/123456-01
# ./installpatch .
3. If any errors are reported, see "Patch Installation Errors" in
the Command Descriptions section below.
Rebooting the system or restarting the application after a successful
patch installation is usually necessary to utilize patch.
NOTE: On client server machines the patch package is NOT applied
to existing clients or to the client root template space.
Therefore, when appropriate, ALL CLIENT MACHINES WILL NEED
THE PATCH APPLIED DIRECTLY USING THIS SAME INSTALLPATCH
METHOD ON THE CLIENT. See the next section for instructions
for installing a patch on a client.
Instructions for installing a patch on a dataless client
--------------------------------------------------------------------
1. Before applying the patch, the following command must be executed
on the server to give the client read-only, root access to the
exported /usr file system so that the client can execute the
pkgadd command:
share -F nfs -o ro,anon=0 /export/exec//usr
The command:
share -F nfs -o ro,root= \
/export/exec//usr
accomplishes the same goal, but only gives root access to the
client specified in the command.
2. Login to the client system and become super-user.
3. Continue with step 2 in the "Instructions to install patch using
installpatch" section above.
Instructions for installing a patch on a diskless client
--------------------------------------------------------------------
** To install a patch on a diskless client, you may either follow the
instructions for installing on a dataless client (that is, you may
logon to the client and install the patch), or you may use the
following instructions to install the patch while on the server.
1. Find the complete path for the root directory of the diskless
client.
2. Install the patch normally, but add the command option -R
to the command line. should be the completely specified.
Example:
# cd /tmp/123456-01
# ./installpatch -R /export/root/client1 .
Instructions for backing out a patch using "backoutpatch"
-----------------------------------------------------------
1. Become super-user.
2. Change directory to /var/sadm/patch:
cd /var/sadm/patch
3. Backout patch by typing:
/backoutpatch
where is the patch number.
Example:
# cd /var/sadm/patch
# 123456-01/backoutpatch 123456-01
4. If any errors are reported, see "Patch Backout Errors" in
the Command Descriptions section below.
Instructions for backing out a patch on a dataless client
----------------------------------------------------------
1. Give the client root access to /usr as specified in the installpatch
section.
2. Logon to the client and follow backoutpatch instructions as
specified above.
Instructions for backing out a patch on a diskless client
-----------------------------------------------------------
** To backout a patch on a diskless client, you may either follow the
instructions for backout on a dataless client (that is, you may
logon to the client and backout the patch), or you may use the
following instructions to backout the patch while on the server.
1. Find the complete path for the root directory of the diskless
client.
2. Backout the patch normally, but add the command option -R
to the command line. should be the completely specified.
Example:
# cd /export/root/client1/var/sadm/patch
# ./123456-01/backoutpatch -R /export/root/client1 123456-01
Instructions for identifying patches installed on system:
----------------------------------------------------------
Patch packets that have been installed can be identified by
using the -p option. To find out which patches are installed on
a diskless client, use both the -R option and the -p
option, where is the fully specified path to the client's
root directory.
#cd /tmp/123456-01
#./installpatch -p
#./installpatch -R /export/root/client1 -p
Also note that the command "showrev -p" will show the patches installed
on the local machine, but will not show patches installed on clients.
Command Descriptions
--------------------
NAME
installpatch - apply patch package to Solaris 2.x system
backoutpatch - remove patch package, restore previously saved files
SYNOPSIS
installpatch [-udpV] [-S ]
backoutpatch [-fV] [-S ]
DESCRIPTION
These installation and backout utilities apply only to
Solaris 2.x associated patches. They do not apply to Solaris
1.x associated patches. These utilities are currently only
provided with each patch package and are not included with
the standard Solaris 2.x release software.
OPTIONS
installpatch:
-u unconditional install, turns off file validation. Allows
the patch to be applied even if some of the files to be
patched have been modified since original installation.
-d Don't back up the files to be patched. This means
that the patch CANNOT BE BACKED OUT.
-p Print a list of the patches currently applied
-V Print script version number
-S
Specify an alternate service (e.g. Solaris_2.3) for
patch package processing references.
-R
Specify an alternate package installation root. Most
useful for installing patches on diskless clients
while logged on to the server.
backoutpatch:
-f force the backout regardless of whether the patch was
superseded
-V print version number only
-S
Specify an alternate service (e.g. Solaris_2.3) for
patch package processing references.
-R
Specify an alternate package installation root. Most
useful for removing patches on diskless clients
while logged on to the server.
DIAGNOSTICS
Patch Installation Errors:
--------------------------
Error message:
The prepatch script exited with return code .
Installpatch is terminating.
Explanation and recommended action: The prepatch script supplied
with the patch exited with a return code other than 0. Run a
script trace of the installpatch and find out why the prepatch
had a bad return code. Fix the problem and re-run installpatch.
To execute a script trace:
# sh -x ./i