christos
d28b45a4f8
better to print (null) than core-dump
2012-06-20 18:50:11 +00:00
christos
e0f6e43eb5
add __PRETTY_FUNCTION__
2012-04-20 18:35:28 +00:00
macallan
1b769feadc
XXX
...
Don't assume LP64 unless lint itself is built as LP64
On mips64 we default to n32 which produces errors when things like
TARG_LONG_MAX don't fit into a long
A proper fix would be to teach lint about different target ABIs so it can
pick the right parameters, this is just a bandaid to make it slightly less
wrong and allow a mips64 build to complete.
2012-03-29 08:52:31 +00:00
christos
52ec92ba25
more cross lint friendlyness
...
XXX: needs more constants converted double/float
2012-03-27 19:24:01 +00:00
christos
ca07e01a36
-0 is not unary overflow.
2012-03-21 14:17:22 +00:00
skrll
d6c003a8de
Correct LDOUBLE_SIZE
2012-02-16 16:27:15 +00:00
christos
7ae009b5a7
fix the grammar conflict differently.
2011-12-25 20:11:22 +00:00
christos
8af1345344
correct debugging flags.
2011-12-25 01:05:44 +00:00
christos
1e73d755b4
PR/45666: Nicolas Joly: lint(1) wrong 'syntax error' message
2011-12-25 01:05:03 +00:00
njoly
def73a1f81
c99: do not warn about trailing comma in enum declaration.
2011-12-19 16:52:27 +00:00
mbalmer
2790b28f0e
Fix typo in comment.
2011-10-17 16:31:14 +00:00
christos
c6a6b07331
Handle c99 declarations in the middle of blocks.
2011-10-04 16:19:59 +00:00
christos
0e4108c639
eat the last d in double constants.
2011-10-02 19:45:10 +00:00
njoly
7d41567535
Fix lseek(2) swapped arguments.
2011-09-18 09:07:35 +00:00
christos
bfb07aa1f2
Always use our own align macro and explain a bit more why this is bogus.
2011-06-24 01:10:31 +00:00
joerg
1e608ad53f
Fix format string usage
2011-05-24 12:49:11 +00:00
wiz
610b889888
Sort options and option descriptions. Use more markup.
2011-04-29 09:23:29 +00:00
christos
b9eac88297
weprovidedarracount()sothatwedon'tneedtosqueezethespacesout.
2011-02-07 23:56:18 +00:00
christos
ce3fa327b8
provide __arraycount() if not there.
2011-02-07 00:26:27 +00:00
pooka
f5d3a9ff38
don't use __arraycount in tools
2011-02-06 23:03:02 +00:00
christos
27eb1769a9
use unsigned char instead of uint8_t, easier for portability
2011-02-06 18:28:22 +00:00
christos
6b997b11db
better dependency handling
2011-02-05 19:13:48 +00:00
christos
4c07b5ae7d
fix missing comparison
2011-02-05 19:10:40 +00:00
christos
8e14f999b7
copyright date
2011-02-05 17:29:48 +00:00
christos
76706b0082
as promised make the last ops table auto-generated.
2011-02-05 17:14:14 +00:00
christos
6dfaa18130
oops forgot to commit the script.
2011-02-05 16:10:17 +00:00
christos
c93e02df25
fix tools build. Why doesn't .PARSEDIR work?
2011-02-05 03:09:46 +00:00
christos
759a394557
generate ops table dynamically. Will move the other table from tree.c there
...
too.
2011-02-04 23:32:44 +00:00
christos
15f35154fe
fix typo
2011-02-04 23:31:23 +00:00
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