Searched hist:105584 (Results 1 - 1 of 1) sorted by relevance
/freebsd-10.3-release/sys/pc98/cbus/ | ||
H A D | sctermvar.h | diff 105584 Sun Oct 20 22:50:13 MDT 2002 robert Do not try to work around ``poor (un)sign extension code'' creation by GCC-2.6.3. Casting pointers to unsigned char to volatile pointers to unsigned char seemed to produce better results on the ia32 architecture with old versions of GCC. The current FreeBSD system compiler GCC-3.2.1 emits better sign extension code for non-volatile variables: volatile char c; int i = c; is compiled to: ... movb -1(%ebp), %al movbsl %al, %eax movl %eax, -8(%ebp) ... char c; int i = c; is compiled to: ... movbsl -1(%ebp), %eax movl %eax, -8(%ebp) ... The same holds for zero-extension of dereferenced pointers to volatile unsigned char. When compiled on alpha or sparc64, the code produced for the two examples above does not differ. |
Completed in 46 milliseconds