solaris10-optimization-20050602

FIXES 17262

declare certain things volatile to make solaris compiler less cranky
This commit is contained in:
Chas Williams 2005-06-02 06:20:23 +00:00 committed by Derrick Brashear
parent ab0f8ed43b
commit 23cbd8f646
2 changed files with 4 additions and 4 deletions

View File

@ -92,7 +92,7 @@ des_ecb_encrypt(void * clear, void * cipher,
#endif #endif
#endif #endif
afs_uint32 P_temp; afs_uint32 P_temp;
register unsigned char *P_temp_p = (unsigned char *)&P_temp; volatile unsigned char *P_temp_p = (unsigned char *)&P_temp;
#ifdef BITS16 #ifdef BITS16
sbox_out S_out; sbox_out S_out;
afs_uint32 *S_out_p = (afs_uint32 *) & S_out; afs_uint32 *S_out_p = (afs_uint32 *) & S_out;

View File

@ -112,9 +112,9 @@ fc_ecb_encrypt(void * clear, void * cipher,
fc_KeySchedule schedule, int encrypt) fc_KeySchedule schedule, int encrypt)
{ {
afs_uint32 L, R; afs_uint32 L, R;
afs_uint32 S, P; volatile afs_uint32 S, P;
unsigned char *Pchar = (unsigned char *)&P; volatile unsigned char *Pchar = (unsigned char *)&P;
unsigned char *Schar = (unsigned char *)&S; volatile unsigned char *Schar = (unsigned char *)&S;
int i; int i;
#if defined(vax) || (defined(mips) && defined(MIPSEL)) || defined(AFSLITTLE_ENDIAN) #if defined(vax) || (defined(mips) && defined(MIPSEL)) || defined(AFSLITTLE_ENDIAN)