Commit Graph

140 Commits

Author SHA1 Message Date
wiz eeb870f152 Fix typo. 2001-12-24 20:52:09 +00:00
tv b8cee5e237 If USETOOLS=yes, as in a cross build or standard tool-based build, create
lint1.7 using the host lint1 tool.  Otherwise run lint1 from here, as has
been done historically.

Should fix toolchain/15001.
2001-12-19 18:10:40 +00:00
augustss a30c07720a Don't use fd_set to keep track of errors to ignore. Doing so relies on
overriding FD_SETSIZE.  Not overriding it makes it stomp all over memory
(which caused the debug outputs we've seen lately).
It used to work, but toolification of lint broke it.
2001-12-13 23:56:00 +00:00
tv 8e6f7afb5b MKfoo=no -> NOfoo 2001-12-12 01:48:43 +00:00
wiz a775ffcd09 Punctuation nits. 2001-12-08 19:27:56 +00:00
wiz b4371d47f5 Replace some misuses of "then" with "than". 2001-12-04 17:56:30 +00:00
wiz 1fd7eeefcd "than" instead of "then". 2001-11-21 19:14:19 +00:00
wiz 55e6492076 Explicitly write explicitly without a second e. 2001-11-21 17:33:26 +00:00
perry 46164f478c Fix a bug in detecting overflow in unsigned multiplication.
XXX Note that the overflow code for many cases seems to be buggy. I've
only fixed one bug that was bothering me. A set of regression tests
and extensive testing are needed.
2001-11-17 04:35:32 +00:00
tv b5cd2489b2 Major overhaul of src/tools and host toolchain. Summary of changes:
* Rewrite src/tools Make logic to work like the rest of the tree wrt
  "dependall" and "install".  The old "make build" hack is gone.

* Remove the MKTOOLS logic.  This was linked to the "make build" hack,
  and was only needed because TOOLDIR originally had no writable default.

* Redo the GNU configure/make logic to make it fit reasonably in a
  BSD make wrapper.  Use new ${.ALLTARGETS} variable to scan for
  targets in $(srcdir), and mark them with .MADE: to prevent rebuilding.

* Only build cross tools in src/tools; remove some messy logic in
  src/usr.* and src/gnu/usr.* that would do target filename rewriting
  (improves consistency and readability).

* Add the ability to build cross gdb at tool build time by setting
  MKCROSSGDB (default no) to "yes" in mk.conf.

* Add src/tools/groff and set up paths to work with this cross groff.
2001-11-12 23:16:17 +00:00
yamt 9ab12a24fa our wchar_t is int, not short. 2001-10-28 05:24:37 +00:00
thorpej 5f0a22902a Give host tool builds better control over the HOST_CPPFLAGS. 2001-10-25 02:22:55 +00:00
thorpej 75f45f0ffb Add support for putting prefixes on the name of lint(1)'s front
and back ends.  This means that it can be built as a cross tool.
Part of the fix for bin/14280.
2001-10-24 02:31:09 +00:00
tv d3c2262c8b Back out part of rev. 1.16 (my build didn't pick up the -I from
../Makefile.inc the first time around, for some reason.)
2001-10-24 01:12:45 +00:00
thorpej 20d4cc1a5a Set a CPP define on the command line to indicate which object
format lint(1) is being targeted at, and use this knowledge
as appropriate in the target param headers.
2001-10-24 00:42:35 +00:00
tv b96cc8c40e Let lint.7 get auto-built by the bsd.man.mk logic (don't explicitly depend
on it via "realall:").  Fixes lint.7 problem in src/tools reported by mrg.

While here, actually -I the arch subdir to pull in the correct targparam.h.
2001-10-24 00:07:39 +00:00
jmc d63596f307 Move CPPFLAGS addition for lint1/arch to Makefile.inc so each subdir will
pick them up
2001-10-22 05:19:31 +00:00
thorpej 62f88da44c Split out target parameters into separate header files, and
pull the correct one in based on the MACHINE_CPU variable.
MACHINE_CPU will be set according to the target system we are
building for by <bsd.own.mk>.

One component of addressing bin/14280.
2001-10-21 21:39:49 +00:00
bjh21 67fe54beb4 On ARM ELF platforms, size_t and ptrdiff_t are u_long and long respectively.
See <arm/ansi.h>.
2001-10-06 12:25:56 +00:00
wiz 9fa0b17629 Give initiali[sz]e all the "i"s it deserves. 2001-09-18 18:15:49 +00:00
wiz 456dff6cb8 Spell 'occurred' with two 'r's. 2001-09-16 16:34:23 +00:00
wiz 1e378c4c12 precede, not preceed. 2001-08-20 12:00:46 +00:00
eeh 7cac6218f0 Don't use long double on sparc64 since the compiler is borked. 2001-08-17 05:49:43 +00:00
tv dba5d44670 Add hooks to allow toolchain bits to be reachover-built at the top level. 2001-08-14 10:18:26 +00:00
wiz 30b2bf87ed Various typos in comments (neccessary, sceme, choise, ...). 2001-07-26 15:05:07 +00:00
wiz 878e08cf00 Nits. 2001-06-05 11:56:28 +00:00
lukem 704847f405 cleanup (prior to more adding more features):
- convert to ANSI KNF
- remove trailing whitespace
- translate some comments from german into english

code compiles and runs clean, and tested by running "make lint" against
xlint source using previous and this lint produces same results.
2001-05-28 12:40:37 +00:00
lukem 905f1ba6a0 support // comments if -g is given 2001-05-24 12:10:39 +00:00
lukem 2179a14315 oops! delint previous 2001-05-24 12:05:28 +00:00
lukem c33b2caa30 allow trailing , in enum if -g 2001-05-24 11:58:09 +00:00
lukem 67252d9cad minor whitespace/knf 2001-05-24 11:56:36 +00:00
lukem 18dddf4476 allow trailing , in enum if -g 2001-05-24 11:56:03 +00:00
sommerfeld 3cdcf0dfc6 Change type of anonymous bitfield pads so that lint -p no longer generates a
portability warning.
2001-05-19 17:19:00 +00:00
lukem 42f4b2cf45 only error on a newline in a string if -t (traditional) mode is enabled, since
ansi c supports multi-line strings without the trailing \n\ ...
2001-05-07 09:02:55 +00:00
lukem b1e062a80e s/refferd/referred/ 2001-04-29 12:02:45 +00:00
simonb a69a3cc5ec Spell occurred correctly. 2001-04-25 02:19:48 +00:00
cgd fd8d16c72f fix broken NetBSD RCS id tags 2001-02-24 00:43:50 +00:00
cgd c2bdafab79 use getprogname() 2001-02-20 23:51:59 +00:00
cgd a8ec668ddf convert to use getprogname() 2001-02-19 23:03:42 +00:00
bjh21 422a592092 __arm26__ || __arm32__ -> __arm__ 2001-02-10 19:15:24 +00:00
enami b25b640d38 No space is allowed before comma in optarg for -X option. 2001-01-23 23:06:11 +00:00
wiz 18f3d66238 Handle arguments in a slightly more standard way (avoid resetting optind). 2000-11-27 00:54:25 +00:00
mrg f81973bb8f sparc & sparc64 use `long' for ptrdiff_t. 2000-11-08 02:30:22 +00:00
is 135600f947 More format string cleanup by sommerfeld. 2000-10-11 14:46:00 +00:00
cgd b653335cf3 don't build lint libs if MKLINT == no 2000-07-27 03:29:28 +00:00
mycroft 6ea1997e79 Fix problem building lint.7. 2000-07-23 22:17:14 +00:00
christos 6fa36b3bb7 better way to handle lint.7 2000-07-06 01:21:46 +00:00
christos b28978bb69 document new flags. 2000-07-06 01:17:18 +00:00
christos 17ac48f4b1 pass -X <id>[,<id>]... and -w to lint1 2000-07-06 01:12:24 +00:00
christos ab89a2b0b0 build lint.7 man page 2000-07-06 01:11:23 +00:00