Commit Graph

352 Commits

Author SHA1 Message Date
matt
1d4bb1d8f6 Change mips64 to use a 16 byte long double. 2011-01-18 08:30:10 +00:00
christos
003dddff9d PR/44235: Valeriy E. Ushakov: Don't pick up a block from the free list if
it is not big enough, allocate a new one. XXX: this is inefficient, but at
least it does not end up corrupting memory.
2011-01-17 03:04:10 +00:00
christos
c732e7b752 PR/44235: Martin Husemann: Fix core dump due to memory corruption.
Found by Henning Petersen
2010-12-18 20:57:41 +00:00
wiz
3d3c5d42cb Observe the following spelling:
- wide character (noun)
- wide-character (adjective)

Inspired by jmc@OpenBSD.
2010-12-16 17:42:25 +00:00
christos
f6fb458da3 PR/44148: Henning Petersen: catstrg() does not set the resulting string length. 2010-11-24 17:51:11 +00:00
mrg
52a4f7ac75 remove the remaining non-ELF code. 2010-07-11 12:07:31 +00:00
mrg
4c92852a80 remove almost all the ability to build netbsd with an a.out target.
we're ELF now, and there are many missing checks against OBJECT_FMT.
if we ever consider switching, the we can figure out what new ones
we need but for now it's just clutter.

this doesn't remove any of the support for exec_aout or any actually
required-for-boot a.out support, only the ability to build a netbsd
release in a.out format.  ie, most of this code has been dead for
over a decade.

i've tested builds on vax, amd64, i386, mac68k, macppc, sparc, atari,
amiga, shark, cats, dreamcast, landisk, mmeye and x68k.  this covers
the 5 MACHINE_ARCH's affected, and all the other arch code touched.
it also includes some actual run-time testing of sparc, i386 and
shark, and i performed binary comparison upon amiga and x68k as well.


some minor details relevant:
- move shlib.[ch] from ld.aout_so into ldconfig proper, and cut them
  down to only the parts ldconfig needs
- remove various unused source files
- switch amiga bootblocks to using elf2bb.h instead of aout2bb.h
2010-07-06 05:59:50 +00:00
mrg
668cb96893 for mips64*, use mips64 subdir, otherwise use $MACHINE_ARCH if exists,
or $MACHINE_CPU.  idea from dennis.c.ferguson@gmail.com in PR#43021.
2010-03-22 05:12:24 +00:00
mrg
4e60bef737 convert -idirafter to -isystem, as recommended by cgd in PR 11843.
most of the list in that PR were already done.
2010-03-22 01:29:29 +00:00
christos
9a10b49e97 revert for now. 2010-03-21 14:29:04 +00:00
christos
d867aaf024 make lint recognize constant shift values and not warn if the number of bits
shifted results in a narrower type.
2010-03-21 00:02:13 +00:00
wiz
8e35c759e7 Fix typo in comment. 2010-02-09 23:05:16 +00:00
christos
aa0d683311 Add a list of functions where we usually don't care about their return
code. Can be bypassed by -hh
2010-01-14 16:58:27 +00:00
christos
039ab08b25 fix hex double parsing. 2010-01-11 16:28:06 +00:00
matt
c31d577a8c Merge from matt-nb5-mips64
Teach lint about mips64
2009-12-14 00:42:06 +00:00
christos
2853bbf4b7 use %option instead of #define YY_NO_... 2009-10-29 14:49:02 +00:00
christos
7770393bf8 add type attributes in a few more places. 2009-10-03 17:09:18 +00:00
christos
3da8ec1b81 accept struct { ... } __packed name; 2009-10-03 01:35:20 +00:00
christos
17b31cc3a2 handle bit fields in packed structures. 2009-10-02 21:49:30 +00:00
christos
876a5b04b7 compute sizes by the new tsize() function. 2009-10-02 21:04:03 +00:00
christos
19f30f4ea2 fix typedef struct __packed 2009-10-02 20:45:06 +00:00
christos
2144a69bda remove debugging 2009-10-02 19:02:16 +00:00
christos
872e317461 recognize struct __packed x { }; in addition to struct x { } __packed; 2009-10-02 19:01:13 +00:00
christos
f07e30ff20 change initialization from non const of regular variables to c99 instead of
gnu since c99 now has it.
2009-10-02 18:17:16 +00:00
christos
bb531790dc understand __attribute__((__packed__)) and __packed. 2009-10-02 15:03:45 +00:00
wiz
8356afb2c1 Fix typos in comment. 2009-08-05 19:08:28 +00:00
christos
1a90c89fed Add __alignof__. 2009-05-02 16:10:49 +00:00
christos
6892362adf add variable declarations in for loops for c99 2009-05-01 22:03:36 +00:00
ginsbach
5fabed93f9 Print left and right type and not left type twice. (Hi Christos!) 2009-04-27 15:08:10 +00:00
christos
7f812cd511 Lukemify (WARNS=4) 2009-04-15 01:20:57 +00:00
lukem
ae780f8105 Compile lint with WARNS=3.
Currently there are too many -Wsign-compare issues for WARNS=4.
2009-04-14 09:09:59 +00:00
lukem
e54a1dbe60 fix -Wcast-qual issues 2009-04-14 09:08:39 +00:00
lukem
4bfb0e2161 Fix -Wshadow and -Wcast-qual issues 2009-04-14 09:06:25 +00:00
lukem
4c61b31086 Fix -Wshadow issues 2009-04-14 09:03:45 +00:00
lukem
4c213f3e71 Fix -Wcast-qual issue 2009-04-14 08:59:45 +00:00
christos
3f7bbc73e3 since we know the types, print what they are in error messages. 2009-04-13 21:17:37 +00:00
joerg
fda71aab5e Remove use of .Xo/.Xc to workaround argument number limit. 2009-03-10 13:44:02 +00:00
christos
7c8a9296cc Don't produce type mismatch warnings if one side of ?: is "[qual] void *"
and the other side is "[qual] pointer".
2009-03-02 20:53:10 +00:00
uebayasi
febab96b71 Comment out CFLAGS+=-g. 2009-02-14 14:05:58 +00:00
lukem
998789a8d9 this code isn't -Wsign-compare friendly -- drop the WARNS to 3. 2009-02-13 01:27:43 +00:00
joerg
7d8b9145a5 Ignore restrict in the contexts where const and volatile is allowed.
No validation for the use (e.g. that it is used on a pointer), but
enough to not stop valid C99 programs.
2008-12-10 16:12:39 +00:00
dholland
3c6470e287 WARNS=4 2008-11-16 07:06:37 +00:00
dholland
96ee89a3c5 Fix wrong memset; PR bin/39733 from Henning Petersen. 2008-10-13 14:00:37 +00:00
dholland
c92bbe4462 Don't accidentally treat "long double" as "long". PR bin/39639. 2008-09-27 20:04:24 +00:00
matt
c58ed3675c Add the complex types to the floating point promotion rules. 2008-09-27 02:30:46 +00:00
matt
2ded04cde2 Add a missing label for LCOMPLEX 2008-09-26 23:51:04 +00:00
matt
9364aa71ae Teach lint about long double _Complex (C99) 2008-09-26 22:52:24 +00:00
joerg
8a89a3dc54 Check value range of ULONG and UQUAD values. On 32 bit platforms like
i386 "unsigned long x = 0x800000000UL;" passed lint and gcc complains
(rightfully). Validate quad as well to allow using a potentially larger
type to store the value.
2008-09-10 14:05:00 +00:00
gmcgarry
15631ee3b4 Undefine __PCC__ the same as __GNUC__ inside lint. 2008-08-29 00:44:48 +00:00
apb
4e07a05b2d Lint predefines the following symbols: "__LINT__", "lint", "__lint", and
"__lint__"; not only "lint" as the man page previously claimed.
2008-08-02 12:05:48 +00:00