Sun Microsystems Sun Workstation — Sun Workstation 1.4 Manual: Release Notes, Installation, Troubleshooting

Changes from the 1.1 Release Software Release 1.4 Manual 4.1.s. C Compiler 0 The atof bug in the compiler and C library, which caused erroneous answers for very large or very small numbers, has been patched. A script is provided with the release tape to patch the C Library; the script is run as part of normal interim release installation. Code put out by the compiler to do loops like was marked with the incorrect line number (for dbx). This is repaired. The problem with markiug the switch-statement selection code with the line number of the "switch( )" has also been fixed. for( i=O; 1 l++) Unsigned constant folding now works (better). This fixes the longstanding:

#define MAXINT (int) ((unslgned)-1) We now try a little harder to recover from certain syntax errors. This avoids the most com- mon crash-&-burn mode error. The compiler now uses the ".skip" assembler directive, rather than many ".long O" direc- tives. This speeds up compilation of lines like: static int x(lOOOOOJ = { 1, 2, 3 }; A bug in accessing bit fields has been fixed. Several changes have been made to avoid the 'running-out-of-register' problem often seen in FORTRAN compilations when compiling complicated expressions with all registers busy. 0 The bug with unsigned char's and unsigned short's being cast to unsigned int in cases like:

unsigned char x ( int a, b ){ foo( (unsigned short) ( a-b) ); /* 1 */ return( (unsigned char) ( a+b) ); /* 2 */ } where the implicit conversion in parameter passing and value returning was done incorrectly has been fixed. The problem with floating-point relations in which one or both sides have complicated addresses (like subscripting) has been fixed. A fragment like: { register float *fp; foo(*fp++); } could previously not be compiled, as the float-double conversion code could not recognize this addressing mode. This has been fixed. The 'test' in the fragment: {doubled; if (d) .... previously did the wrong thing for positive denormalized numbers with no significant bits in the first word.

This has been fixed. The bug which caused 'register float' variables to generate bad code has been repaired. 0 4-2 Release 1.4 of February 1985