summaryrefslogtreecommitdiff
path: root/usr/src
AgeCommit message (Collapse)AuthorFilesLines
2011-07-02cw.1: Update to mention GCC_ROOTRichard Lowe1-1/+1
2011-07-02bootblks: Use GCC_ROOTRichard Lowe1-4/+2
2011-07-02grub: Use GCC_ROOTRichard Lowe1-3/+3
2011-07-02cw: Use GCC_ROOT, not GNU_ROOTRichard Lowe2-7/+5
2011-07-02perl/Kstat: Don't cast pointers directly to intRichard Lowe1-1/+1
2011-07-02quota: Avoid undefined order of operationsRichard Lowe1-2/+2
2011-07-02jdtrace: unreachable return from main, to pacify GCCRichard Lowe1-1/+2
2011-07-02hal: explicitly cast sentinel NULL to a pointer typeRichard Lowe1-1/+1
GCC's sentinel checks apparently only notice the sentinel NULL if it is of pointer type, and at the point g_strconcat() is used here, NULL is (integer) 0. Cast it to a pointer to silence the warning.
2011-07-02ipf: Avoid implicit truncation in IP_HL_ARichard Lowe1-1/+1
2011-07-02[HACK] vi: Cast away unsignedness to match getpass()Richard Lowe1-1/+1
I have no idea why vgetpass() is using unsigned chars in the first place, but it seemed safest for now to preserve that and pacify GCC in the obvious, hacky, fashion.
2011-07-02svc: Don't pass NULL as an integer, pass 0Richard Lowe1-7/+7
2011-07-02svc: Return -1 not NULL from find_manifests, which returns intRichard Lowe1-1/+1
2011-07-02kadmin: Adjust loop to avoid undefined order of operationsRichard Lowe1-22/+22
2011-07-02rpcbind: Mark thread function __NORETURNRichard Lowe1-36/+36
2011-07-02nscd: Mark thread function __NORETURNRichard Lowe1-1/+1
2011-07-02ucbhead: Remove CPP "assertion" use, deprecated in GCCRichard Lowe1-11/+0
2011-07-02dnssd: Remove non-existent parameters from javadocRichard Lowe1-13/+7
2011-07-02libkmsagent: Avoid deprecated string constant conversionRichard Lowe1-6/+11
2011-07-02libnisdb: Avoid deprecated string constant conversionRichard Lowe10-91/+81
2011-07-02libumem: Mark thread function __NORETURNRichard Lowe1-3/+1
2011-07-02libtsol: Squelch pointer to different sized int cast warningRichard Lowe1-7/+5
2011-07-02libsmbns: Explicit truncate cache status while byte swappingRichard Lowe1-2/+2
2011-07-02smbfs: Squelch assignment signedness warningRichard Lowe1-9/+10
2011-07-02libc_db: Squelch pointer to different sized int cast warningRichard Lowe1-1/+2
2011-07-02lvm: Squelch pointer to different-sized int cast warningsRichard Lowe2-110/+107
2011-07-02sun_fc: Add missing #includesRichard Lowe10-1/+15
2011-07-02libparted: Drop workaround for compiler we don't useRichard Lowe1-4/+0
GCC would warn of implicit overflow in the preprocessor conditional used to select the workaround.
2011-07-02libnisdb: Use strcmp, not unspecified == of stringsRichard Lowe1-146/+142
2011-07-02libbc (uname): Copy nodename in two passes to avoid array index warningRichard Lowe1-14/+16
2011-07-02libbc: fix string quotingRichard Lowe1-4/+2
2011-07-02libbc (usleep): Haul static prototypes out of functionsRichard Lowe1-10/+7
Function-local function prototypes may not be static, says GCC.
2011-07-02libc: Remove SPARC tls workarounds when using GCC 4Richard Lowe2-4/+6
2011-07-02libc: make install target depend on generated headersRichard Lowe1-1/+1
There a handful of generated headers in libc (assym.h), which need to exist for the build. They're removed by clobber but only created via install_h. Have 'install' depend on them as well so working in libc is less tedious.
2011-07-02libc: Implement __floatundisfRichard Lowe3-0/+49
2011-07-02libc: Implement __floatundidfRichard Lowe3-0/+49
2011-07-02libc: Mark %g7 as #scratch in _curthread, and implement directlyRichard Lowe1-5/+7
We do this because GCC 4.4 will spit out a .register declaration for %g7 which differs from those in __curthread if we do not.
2011-07-02libc: Don't let GCC optimize away __rtldRichard Lowe1-1/+10
2011-07-02openssl: Backport relevant sections of GCC 4.2 compilation fixesRichard Lowe3-25/+66
GCC 4.2 and above absolutely forbid casts of function pointers (they in fact emit a fatal trap such that any code doing so fails). These are the fixes from OpenSSL CVS to cease any function pointer casting while retaining type checks via other means.
2011-07-02hfsops, ufsops: Use offsetof, not an expanded versionRichard Lowe2-6/+3
2011-07-02bootops: Don't cast pointer directly down to intRichard Lowe1-3/+1
2011-07-02dis: Allow decoding of 66 (%cs:) segment override even when amd64Richard Lowe1-1/+1
This is now generated by GCC 4 as part of an extended multi-byte nop as variable-length executable padding of the form: 66 66 66 2e 0f 1f 84 Where the number of 66 (address size) prefixes varies according to the amount of pad required.
2011-07-02dis: Decode multibyte nops generated by GCCRichard Lowe1-1/+1
This decodes 0f 1f (nopl) and 66 0f 1f (nopw), which seem to be the ones most commonly generated by gcc (determined by disassembling /kernel). unused opcodes in [0f18, 0f1f) are technically reserved nops, and used by Intel as "hinting nops", but I haven't found them generated. It doesn't seem to deal with '66 2e 0f 1f' (nopw %cs:) but I'm not certain as to why. This seems to mostly be generated inter-function however, and so this may not be such a big deal.
2011-07-02pcisch: Avoid GCC type promotion leading to format string warningsRichard Lowe1-2/+3
Apparently GCC promotes a couple of cmn_err arguments to long long, which then causes it to complain that the %lx format is inappropriate. Explicitly cast to uint64_t. It is unclear why the promotion is occurring.
2011-07-02starcat/drmach: Haul static prototypes out of functionsRichard Lowe1-12/+13
Function-local function prototypes may not be static, says GCC.
2011-07-02starcat/mboxsc: Use offsetof() not a homebrew copyRichard Lowe1-4/+3
2011-07-02starcat/schpc: Remove impossible status value (3rd bit of a 2 bit field)Richard Lowe2-10/+0
2011-07-02starcat/cvc: Use offsetof, don't hand-rollRichard Lowe1-2/+2
2011-07-02opl/drmach: Haul static prototypes out of functionsRichard Lowe1-10/+10
Function-local function prototypes may not be static, says GCC.
2011-07-02cpu/opl: Haul static prototypes out of functionsRichard Lowe1-4/+4
Function-local function prototypes may not be static, says GCC.
2011-07-02serengeti/sbdp: Don't cast addresses down to intRichard Lowe1-1/+2