The NetBSD Project

CVS log for src/usr.bin/xlint/lint1/Makefile

[BACK] Up to [cvs.NetBSD.org] / src / usr.bin / xlint / lint1

Request diff between arbitrary revisions


Default branch: MAIN


Revision 1.104 / (download) - annotate - [select for diffs], Fri Mar 1 19:39:28 2024 UTC (3 weeks, 6 days ago) by rillig
Branch: MAIN
CVS Tags: HEAD
Changes since 1.103: +2 -2 lines
Diff to previous 1.103 (colored) to selected 1.17 (colored)

lint: test format strings from snprintb calls

The functions snprintb and snprintb_m are specific to NetBSD, and their
format strings are tricky to get correct.  Provide some assistance in
catching the most common mistakes.

Revision 1.103 / (download) - annotate - [select for diffs], Tue Feb 6 22:47:21 2024 UTC (7 weeks, 1 day ago) by rillig
Branch: MAIN
Changes since 1.102: +2 -2 lines
Diff to previous 1.102 (colored) to selected 1.17 (colored)

lint: tab-align message numbers in err.c

By replacing block comments with end-of-line comments, the comments take
up less space and thus no longer require to be indented by 6 spaces.

The messages and their comments are used in 3 places: the manual page
lint.7, the err-msgs.h header for debug mode, and check-msgs.lua to
verify that the comments above the message IDs correspond to the actual
messages.

No functional change.

Revision 1.102 / (download) - annotate - [select for diffs], Sat Jul 29 10:45:00 2023 UTC (8 months ago) by rillig
Branch: MAIN
Changes since 1.101: +1 -6 lines
Diff to previous 1.101 (colored) to selected 1.17 (colored)

lint1: remove option -m

The list of lint messages is only needed for generating the manual page
lint.7.  Since 2022-07-06, that list is extracted from the source code
instead of compiling and then running lint1.

Revision 1.101 / (download) - annotate - [select for diffs], Sat Jul 29 10:34:24 2023 UTC (8 months ago) by rillig
Branch: MAIN
Changes since 1.100: +1 -4 lines
Diff to previous 1.100 (colored) to selected 1.17 (colored)

lint: only generate err-msgs.h in debug mode

Revision 1.100 / (download) - annotate - [select for diffs], Fri Jul 21 15:00:32 2023 UTC (8 months, 1 week ago) by lukem
Branch: MAIN
Changes since 1.99: +4 -3 lines
Diff to previous 1.99 (colored) to selected 1.17 (colored)

lint: use TOOL_SED instead of sed

Use ${TOOL_SED} instead of (the host) sed, as the
latter doesn't necessarily support the non-POSIX -E.

PR bin/57533

Revision 1.99 / (download) - annotate - [select for diffs], Sat Jul 15 13:51:36 2023 UTC (8 months, 2 weeks ago) by rillig
Branch: MAIN
Changes since 1.98: +2 -1 lines
Diff to previous 1.98 (colored) to selected 1.17 (colored)

lint: fix use-after-free bug in GCC statement expressions

Revision 1.98 / (download) - annotate - [select for diffs], Tue Jul 11 17:33:45 2023 UTC (8 months, 2 weeks ago) by rillig
Branch: MAIN
Changes since 1.97: +2 -2 lines
Diff to previous 1.97 (colored) to selected 1.17 (colored)

lint: in debug mode, don't generate empty message texts

Most of these messages have an /* unused */ comment in err.c, but some
don't.

Revision 1.97 / (download) - annotate - [select for diffs], Sat Jul 8 11:18:16 2023 UTC (8 months, 3 weeks ago) by rillig
Branch: MAIN
Changes since 1.96: +1 -2 lines
Diff to previous 1.96 (colored) to selected 1.17 (colored)

lint: enable more lint warnings for its own source code

Revision 1.96 / (download) - annotate - [select for diffs], Wed Jul 5 11:42:14 2023 UTC (8 months, 3 weeks ago) by rillig
Branch: MAIN
Changes since 1.95: +2 -2 lines
Diff to previous 1.95 (colored) to selected 1.17 (colored)

tests/lint: spell platform identifiers for 'long double' consistently

The test file names don't have a hyphen, so the identifiers shouldn't
have one either.

Revision 1.95 / (download) - annotate - [select for diffs], Tue Mar 28 14:44:35 2023 UTC (12 months ago) by rillig
Branch: MAIN
Changes since 1.94: +6 -3 lines
Diff to previous 1.94 (colored) to selected 1.17 (colored)

lint: warn about extern declarations outside headers

https://mail-index.netbsd.org/tech-userlevel/2023/03/15/msg013727.html

Revision 1.94 / (download) - annotate - [select for diffs], Mon Feb 27 23:07:53 2023 UTC (12 months, 4 weeks ago) by rillig
Branch: MAIN
Changes since 1.93: +1 -6 lines
Diff to previous 1.93 (colored) to selected 1.17 (colored)

lint: split platform-specific test for loss of accuracy

Lint distinguishes between platforms where size_t is unsigned int and
platforms where size_t is unsigned long.

Revision 1.93 / (download) - annotate - [select for diffs], Mon Feb 6 20:26:05 2023 UTC (13 months, 2 weeks ago) by rillig
Branch: MAIN
Changes since 1.92: +13 -2 lines
Diff to previous 1.92 (colored) to selected 1.17 (colored)

lint: inline separate Makefile

Revision 1.92 / (download) - annotate - [select for diffs], Tue Jul 5 22:50:41 2022 UTC (20 months, 3 weeks ago) by rillig
Branch: MAIN
CVS Tags: netbsd-10-base, netbsd-10-0-RC6, netbsd-10-0-RC5, netbsd-10-0-RC4, netbsd-10-0-RC3, netbsd-10-0-RC2, netbsd-10-0-RC1, netbsd-10
Changes since 1.91: +5 -3 lines
Diff to previous 1.91 (colored) to selected 1.17 (colored)

lint: add additional queries that are not enabled by default

In the last 18 months, several lint warnings have been made adjusted to
allow common usage patterns.  For example, lint no longer warns about a
constant condition in the statement 'do { ... } while (false)' (message
161), as this pattern is well-known in statement-like macros, making it
unlikely that the 'false' is a mistake.  Another example is casts
between unequal pointer types (message 247) for a few well-known
patterns that are unlikely to be bugs.

Occasionally, it is useful to query the code for patterns or events that
would not justify a warning.  These patterns are modeled as predefined
queries that can be selected individually, in addition to and
independently of the existing warnings and errors.

New queries can be added as needed, in the same way as new warnings.
Queries that are deemed no longer used can be deactivated in the same
way as warnings that are no longer used.

As long as none of the queries is enabled, they produce a minimal
overhead of querying a single global variable.  Computations that are
more expensive than a few machine instructions should be guarded by
any_query_enabled.

https://mail-index.netbsd.org/source-changes-d/2022/06/28/msg013716.html

ok christos@

Revision 1.91 / (download) - annotate - [select for diffs], Fri Jun 17 20:23:58 2022 UTC (21 months, 1 week ago) by rillig
Branch: MAIN
Changes since 1.90: +2 -4 lines
Diff to previous 1.90 (colored) to selected 1.17 (colored)

tests/lint: remove .exp files, as they have become redundant

Now that each lint1 test lists all generated diagnostics as 'expect'
comments, the information from the .exp files is no longer needed.  The
only information that gets lost is the order of the diagnostics, which
is mostly relevant for paired messages like 'inconsistent definition' +
'previous definition was here'.

Revision 1.90 / (download) - annotate - [select for diffs], Sat Apr 9 15:43:41 2022 UTC (23 months, 2 weeks ago) by rillig
Branch: MAIN
Changes since 1.89: +1 -2 lines
Diff to previous 1.89 (colored) to selected 1.17 (colored)

lint: disambiguate sym_t.s_value

Having a single variable for 4 different purposes with different types
makes the code unnecessarily hard to follow.

No functional change.

Revision 1.89 / (download) - annotate - [select for diffs], Sat Apr 9 14:50:18 2022 UTC (23 months, 2 weeks ago) by rillig
Branch: MAIN
Changes since 1.88: +8 -1 lines
Diff to previous 1.88 (colored) to selected 1.17 (colored)

lint: split CTCONST into BOOL_CONST and ENUM_CONST

Having a unified compile-time constant "storage class" made the code
more difficult to understand.

No functional change.

Revision 1.88 / (download) - annotate - [select for diffs], Tue Dec 21 15:27:19 2021 UTC (2 years, 3 months ago) by roy
Branch: MAIN
Changes since 1.87: +2 -2 lines
Diff to previous 1.87 (colored) to selected 1.17 (colored)

Fix build of xlint/line1 with OBJDIR set.

Revision 1.87 / (download) - annotate - [select for diffs], Sun Sep 5 17:49:55 2021 UTC (2 years, 6 months ago) by rillig
Branch: MAIN
Changes since 1.86: +1 -2 lines
Diff to previous 1.86 (colored) to selected 1.17 (colored)

lint: do not warn about comparison 'unsigned <= 0'

Seen in scanners generated by Flex, and about 50 occurrences in the
NetBSD src and xsrc tree, all of which are not suspicious of being bugs.

Revision 1.86 / (download) - annotate - [select for diffs], Sun Sep 5 16:36:56 2021 UTC (2 years, 6 months ago) by rillig
Branch: MAIN
Changes since 1.85: +4 -1 lines
Diff to previous 1.85 (colored) to selected 1.17 (colored)

lint: suppress remaining lint warnings in generated scan.c

Warning 162 about 'unsigned <= 0' feels too ambitious, it may be
restricted to the clearly wrong 'unsigned < 0' in the future.

Warnings 192 and 214 are a result of the strict bool check, but the
error messages are suppressed, which makes it hard to see why lint says
the local variable were unused and the function would not return a
value.

Warning 307 about unused static variables is OK for generated code.

Revision 1.85 / (download) - annotate - [select for diffs], Sun Sep 5 13:46:31 2021 UTC (2 years, 6 months ago) by rillig
Branch: MAIN
Changes since 1.84: +22 -4 lines
Diff to previous 1.84 (colored) to selected 1.17 (colored)

lint: generate date of lint.7 from err.c

Revision 1.84 / (download) - annotate - [select for diffs], Sun Aug 22 22:24:12 2021 UTC (2 years, 7 months ago) by rillig
Branch: MAIN
Changes since 1.83: +2 -1 lines
Diff to previous 1.83 (colored) to selected 1.17 (colored)

usr.bin: enable lint checks for most programs in /usr/bin

Previously, lint was only activated for the libraries, but not for the
kernel or userland programs.  Activate lint for the programs in /usr/bin
for now, more will follow later.

This only affects builds that set MKLINT=yes.

Revision 1.83 / (download) - annotate - [select for diffs], Sat Aug 7 17:38:41 2021 UTC (2 years, 7 months ago) by rillig
Branch: MAIN
Changes since 1.82: +1 -2 lines
Diff to previous 1.82 (colored) to selected 1.17 (colored)

lint: clean gcov files for lint2 and xlint as well

Revision 1.82 / (download) - annotate - [select for diffs], Sat Jul 31 18:16:42 2021 UTC (2 years, 7 months ago) by rillig
Branch: MAIN
Changes since 1.81: +2 -2 lines
Diff to previous 1.81 (colored) to selected 1.17 (colored)

lint: extract debug logging to separate file

Lint currently has several different kinds of debug log:

* The -DDEBUG log is controlled at compile time.
* The -d command line options enables some other debug logging.
* The -DYYDEBUG log for parsing is controlled at compile time.
* The -y command line option only has an effect in -DYYDEBUG mode.

Extracting the logging into a separate file is a first step towards
unifying these logs and making the code for debug logging stand out less
than the current #ifdef DEBUG.

No functional change.

Revision 1.81 / (download) - annotate - [select for diffs], Sat Jul 31 17:09:21 2021 UTC (2 years, 7 months ago) by rillig
Branch: MAIN
Changes since 1.80: +2 -2 lines
Diff to previous 1.80 (colored) to selected 1.17 (colored)

lint: add debugging output for the grammar tokens

No functional change outside debug mode.

Revision 1.80 / (download) - annotate - [select for diffs], Sun Jul 25 22:14:36 2021 UTC (2 years, 8 months ago) by rillig
Branch: MAIN
Changes since 1.79: +2 -2 lines
Diff to previous 1.79 (colored) to selected 1.17 (colored)

lint: move scl_name from print.c to decl.c

It is only needed there.

Revision 1.79 / (download) - annotate - [select for diffs], Sat Jul 10 09:14:38 2021 UTC (2 years, 8 months ago) by rillig
Branch: MAIN
Changes since 1.78: +5 -2 lines
Diff to previous 1.78 (colored) to selected 1.17 (colored)

tests/lint: when adding a new test, set an invalid option

This forces the test author to think about whether any custom options
are really needed.  While here, mention the other possible
customizations as well.

Revision 1.78 / (download) - annotate - [select for diffs], Mon Jul 5 10:34:26 2021 UTC (2 years, 8 months ago) by hgutch
Branch: MAIN
Changes since 1.77: +1 -7 lines
Diff to previous 1.77 (colored) to selected 1.17 (colored)

GCC git commit 91f66e78cc141da77ff9e0e3c8519e1af3f26c07[1] introduced
a regression in sh.  In addition to the intended change (based on the
commit message), an apparently unintended change was made, inverting a
comparison.  This broke sh builds and our workaround (so far) was to
compile xlint/lint1 with -O0.

Revert the comparison to what it was before and remove the -O0 hack
from xlint/lint1.

[1] https://gcc.gnu.org/git/?p=gcc.git;a=commitdiff;h=91f66e78cc141da77ff9e0e3c8519e1af3f26c07

Revision 1.77 / (download) - annotate - [select for diffs], Sun Jul 4 09:13:59 2021 UTC (2 years, 8 months ago) by rillig
Branch: MAIN
Changes since 1.76: +1 -2 lines
Diff to previous 1.76 (colored) to selected 1.17 (colored)

lint: in strict bool mode, allow mixed types in generated C code

This allows flex lexers to be run through lint in strict bool mode.

Revision 1.76 / (download) - annotate - [select for diffs], Sun Jul 4 08:49:41 2021 UTC (2 years, 8 months ago) by rillig
Branch: MAIN
Changes since 1.75: +3 -3 lines
Diff to previous 1.75 (colored) to selected 1.17 (colored)

lint: include scan.c in 'make lint'

This theoretically enables strict bool mode for the few remaining code
in scan.l.  Since scan.l is not yet detected as generated code, all
interesting errors have to be suppressed though.

Revision 1.75 / (download) - annotate - [select for diffs], Tue Jun 29 07:37:34 2021 UTC (2 years, 8 months ago) by rillig
Branch: MAIN
Changes since 1.74: +2 -4 lines
Diff to previous 1.74 (colored) to selected 1.17 (colored)

tests/lint: do not modify t_integration on "make add-test"

The test names are no longer listed individually.

Revision 1.74 / (download) - annotate - [select for diffs], Mon Jun 28 09:09:14 2021 UTC (2 years, 9 months ago) by mrg
Branch: MAIN
Changes since 1.73: +2 -2 lines
Diff to previous 1.73 (colored) to selected 1.17 (colored)

apply sh3 vs lex.c fix for GCC >= 9.  use shorter idiom.

fixes build issue reported by jdbaker in private email.

Revision 1.73 / (download) - annotate - [select for diffs], Fri Jun 25 20:17:56 2021 UTC (2 years, 9 months ago) by tnn
Branch: MAIN
Changes since 1.72: +2 -2 lines
Diff to previous 1.72 (colored) to selected 1.17 (colored)

ensure defined(HAVE_GCC) before use of ${HAVE_GCC}

Revision 1.72 / (download) - annotate - [select for diffs], Wed Jun 23 07:11:41 2021 UTC (2 years, 9 months ago) by rillig
Branch: MAIN
Changes since 1.71: +2 -1 lines
Diff to previous 1.71 (colored) to selected 1.17 (colored)

lint1: add bug report for internal GCC compiler error

Revision 1.71 / (download) - annotate - [select for diffs], Tue Jun 22 12:58:28 2021 UTC (2 years, 9 months ago) by martin
Branch: MAIN
Changes since 1.70: +6 -1 lines
Diff to previous 1.70 (colored) to selected 1.17 (colored)

Hack to avoid gcc 9 internal compiler error for sh3.

Revision 1.70 / (download) - annotate - [select for diffs], Sun Apr 18 22:51:24 2021 UTC (2 years, 11 months ago) by rillig
Branch: MAIN
CVS Tags: cjep_sun2x-base1, cjep_sun2x-base, cjep_sun2x, cjep_staticlib_x-base1, cjep_staticlib_x-base, cjep_staticlib_x
Changes since 1.69: +3 -1 lines
Diff to previous 1.69 (colored) to selected 1.17 (colored)

lint: remove WARNS=3, falling back to the default WARNS=5

It's strange that GCC does not warn about the nonliteral format strings
in lint1/err.c, lint2/msg.c and lint2/read.c, despite -Wformat=2, but
Clang does.

Revision 1.69 / (download) - annotate - [select for diffs], Sun Apr 18 21:53:37 2021 UTC (2 years, 11 months ago) by rillig
Branch: MAIN
Changes since 1.68: +8 -5 lines
Diff to previous 1.68 (colored) to selected 1.17 (colored)

lint: fix strict bool mode errors in cgram.y

The code generated by yacc already adheres to strict bool mode, in
default mode as well as in debug mode.

Running lint on the generated cgram.c as well avoids most of the
"declared but not used" warnings from lint2.

The code generated by lex does not adhere to strict bool mode though.
Suppressing the errors from strict bool mode works, but then lint1 runs
into an assertion failure:

	assertion "tn != NULL || nerr != 0" failed
	    in expr at tree.c:3610 near scan.c:822

This leaves several warnings about "declared but not used" for the
functions from lex.c.

Revision 1.68 / (download) - annotate - [select for diffs], Sat Apr 17 11:01:34 2021 UTC (2 years, 11 months ago) by rillig
Branch: MAIN
Changes since 1.67: +1 -3 lines
Diff to previous 1.67 (colored) to selected 1.17 (colored)

lint1: remove redundant dependency

This is already handled by "make depend".

Revision 1.67 / (download) - annotate - [select for diffs], Sat Apr 10 18:36:27 2021 UTC (2 years, 11 months ago) by rillig
Branch: MAIN
Changes since 1.66: +3 -2 lines
Diff to previous 1.66 (colored) to selected 1.17 (colored)

lint: use distinct struct tags for type_t in lint1 and lint2

Having two similar but still different definitions of 'struct type' is
unnecessarily confusing.  Exchange this confusion for 8 lines of
straight-forward preprocessing code.

Revision 1.66 / (download) - annotate - [select for diffs], Tue Apr 6 13:17:04 2021 UTC (2 years, 11 months ago) by rillig
Branch: MAIN
Changes since 1.65: +4 -3 lines
Diff to previous 1.65 (colored) to selected 1.17 (colored)

lint: move check for strict bool mode into separate file

No functional change.

Revision 1.65 / (download) - annotate - [select for diffs], Mon Apr 5 02:05:47 2021 UTC (2 years, 11 months ago) by rillig
Branch: MAIN
Changes since 1.64: +2 -2 lines
Diff to previous 1.64 (colored) to selected 1.17 (colored)

lint: warn about for wrong type cast in argument to ctype.h functions

The argument to most of the functions from <ctype.h> "shall either be
representable as an 'unsigned char' or shall equal the value of the
macro EOF".

When confronted with the infamous warning 'array subscript has type
char', there are enough programmers who don't know the background of
that warning and thus fix it in a wrong way.  Neither GCC nor Clang
explain its warning to target these programmers.

Both GCC and Clang warn about 'array subscript has type char', but they
ignore the other requirements of the <ctype.h> functions, even though
these are in the C standard library.

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94182
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95177
https://stackoverflow.com/a/60696378

Revision 1.64 / (download) - annotate - [select for diffs], Sun Mar 21 13:10:58 2021 UTC (3 years ago) by rillig
Branch: MAIN
Changes since 1.63: +2 -2 lines
Diff to previous 1.63 (colored) to selected 1.17 (colored)

lint: add missing space when adding a new test case

Revision 1.63 / (download) - annotate - [select for diffs], Sat Mar 20 19:33:25 2021 UTC (3 years ago) by rillig
Branch: MAIN
Changes since 1.62: +2 -1 lines
Diff to previous 1.62 (colored) to selected 1.17 (colored)

lint: make lint's own code pass the strict bool mode

No functional change.

Revision 1.62 / (download) - annotate - [select for diffs], Sat Feb 20 18:10:22 2021 UTC (3 years, 1 month ago) by rillig
Branch: MAIN
Changes since 1.61: +2 -1 lines
Diff to previous 1.61 (colored) to selected 1.17 (colored)

lint: document how to compile lint1 in debug mode

Revision 1.61 / (download) - annotate - [select for diffs], Fri Feb 19 23:25:26 2021 UTC (3 years, 1 month ago) by rillig
Branch: MAIN
Changes since 1.60: +2 -1 lines
Diff to previous 1.60 (colored) to selected 1.17 (colored)

lint: remove gcov results on "make clean"

Revision 1.60 / (download) - annotate - [select for diffs], Fri Feb 19 12:28:56 2021 UTC (3 years, 1 month ago) by rillig
Branch: MAIN
Changes since 1.59: +3 -3 lines
Diff to previous 1.59 (colored) to selected 1.17 (colored)

lint: warn about mismatch in getopt handling

Revision 1.59 / (download) - annotate - [select for diffs], Sat Jan 23 17:58:03 2021 UTC (3 years, 2 months ago) by rillig
Branch: MAIN
Changes since 1.58: +2 -1 lines
Diff to previous 1.58 (colored) to selected 1.17 (colored)

lint: move lexer code from scan.l to lex.c

Previously, the generated scan.c was not included when running "make
lint".  Similarly, cgram.c is still not included.

Revision 1.58 / (download) - annotate - [select for diffs], Sun Jan 10 12:05:07 2021 UTC (3 years, 2 months ago) by rillig
Branch: MAIN
Changes since 1.57: +41 -1 lines
Diff to previous 1.57 (colored) to selected 1.17 (colored)

lint: automate adding a test for lint1

Revision 1.57 / (download) - annotate - [select for diffs], Sat Jan 9 21:37:44 2021 UTC (3 years, 2 months ago) by rillig
Branch: MAIN
Changes since 1.56: +3 -3 lines
Diff to previous 1.56 (colored) to selected 1.17 (colored)

lint: rename ops.c to oper.c

The file ops.c had previously been autogenerated.  This meant that in a
NetBSD build, it was generated in OBJDIR, and a build that had just
updated src/usr.bin would fail.  For a build that last ran on
2020-12-01, and again today, it looks like this:

	#      link  lint1/lint1
	cc ... -o lint1 cgram.lo ... ops.lo ... tyname.lo
	/usr/bin/ld: ops.lo: in function `initmtab':
	ops.c:(.text+0x63): undefined reference to `STRUCT_ASSIGN'

This is caused by ops.c existing in OBJDIR, so the new version in
NETBSDSRCDIR is not looked at.  To prevent this, use oper.c instead as
the filename, which has not been used before.

https://mail-index.netbsd.org/source-changes-d/2021/01/09/msg013096.html

Revision 1.56 / (download) - annotate - [select for diffs], Tue Jan 5 23:50:29 2021 UTC (3 years, 2 months ago) by rillig
Branch: MAIN
Changes since 1.55: +5 -7 lines
Diff to previous 1.55 (colored) to selected 1.17 (colored)

lint: clean up generation of the operator tables

Instead of running a shell program that runs an AWK program that
generates the two files ops.c and ops.h, just define the operator tables
once in ops.def and use these definitions flexibly in ops.c and op.h.

Revision 1.55 / (download) - annotate - [select for diffs], Sun Jan 3 18:48:37 2021 UTC (3 years, 2 months ago) by rillig
Branch: MAIN
Changes since 1.54: +3 -1 lines
Diff to previous 1.54 (colored) to selected 1.17 (colored)

lint: in DEBUG mode, verify printf parameters for messages

Since several years GCC validates printf-style strings, and there is no
reason not to let GCC do that work.  This prevents bugs like the
segmentation fault that was fixed in tree.c 1.109 from 2021-01-01.

By default, lint is compiled with DEBUG off, but it's easy enough to
compile it in debug mode once in a while.

Revision 1.54 / (download) - annotate - [select for diffs], Fri Jan 1 14:51:44 2021 UTC (3 years, 2 months ago) by rillig
Branch: MAIN
Changes since 1.53: +1 -2 lines
Diff to previous 1.53 (colored) to selected 1.17 (colored)

lint: remove custom LINTFLAGS

These flags are missing the options -g (GNUisms) and -S (C9X mode).
Without these flags, NetBSD's system headers cannot be compiled as they
make heavy use of __inline and __attribute__.

Revision 1.52.16.1 / (download) - annotate - [select for diffs], Mon Apr 13 08:05:50 2020 UTC (3 years, 11 months ago) by martin
Branch: phil-wifi
Changes since 1.52: +3 -1 lines
Diff to previous 1.52 (colored) next main 1.53 (colored) to selected 1.17 (colored)

Mostly merge changes from HEAD upto 20200411

Revision 1.53 / (download) - annotate - [select for diffs], Mon Nov 11 22:45:32 2019 UTC (4 years, 4 months ago) by joerg
Branch: MAIN
CVS Tags: phil-wifi-20200421, phil-wifi-20200411, phil-wifi-20200406, phil-wifi-20191119, is-mlppp-base, is-mlppp
Changes since 1.52: +3 -1 lines
Diff to previous 1.52 (colored) to selected 1.17 (colored)

Update LLVM to 10.0.0git (01f3a59fb3e2542fce74c768718f594d0debd0da)

Revision 1.52 / (download) - annotate - [select for diffs], Sat Apr 4 19:32:06 2015 UTC (8 years, 11 months ago) by christos
Branch: MAIN
CVS Tags: prg-localcount2-base3, prg-localcount2-base2, prg-localcount2-base1, prg-localcount2-base, prg-localcount2, phil-wifi-base, phil-wifi-20190609, pgoyette-localcount-base, pgoyette-localcount-20170426, pgoyette-localcount-20170320, pgoyette-localcount-20170107, pgoyette-localcount-20161104, pgoyette-localcount-20160806, pgoyette-localcount-20160726, pgoyette-localcount, pgoyette-compat-merge-20190127, pgoyette-compat-base, pgoyette-compat-20190127, pgoyette-compat-20190118, pgoyette-compat-1226, pgoyette-compat-1126, pgoyette-compat-1020, pgoyette-compat-0930, pgoyette-compat-0906, pgoyette-compat-0728, pgoyette-compat-0625, pgoyette-compat-0521, pgoyette-compat-0502, pgoyette-compat-0422, pgoyette-compat-0415, pgoyette-compat-0407, pgoyette-compat-0330, pgoyette-compat-0322, pgoyette-compat-0315, pgoyette-compat, perseant-stdc-iso10646-base, perseant-stdc-iso10646, netbsd-9-base, netbsd-9-3-RELEASE, netbsd-9-2-RELEASE, netbsd-9-1-RELEASE, netbsd-9-0-RELEASE, netbsd-9-0-RC2, netbsd-9-0-RC1, netbsd-9, netbsd-8-base, netbsd-8-2-RELEASE, netbsd-8-1-RELEASE, netbsd-8-1-RC1, netbsd-8-0-RELEASE, netbsd-8-0-RC2, netbsd-8-0-RC1, netbsd-8, matt-nb8-mediatek-base, matt-nb8-mediatek, localcount-20160914, bouyer-socketcan-base1, bouyer-socketcan-base, bouyer-socketcan
Branch point for: phil-wifi
Changes since 1.51: +3 -1 lines
Diff to previous 1.51 (colored) to selected 1.17 (colored)

build ops.h first, because trying to build dependencies and ops.h at the
same time leads to spurious failures.

Revision 1.51 / (download) - annotate - [select for diffs], Thu Nov 20 20:48:33 2014 UTC (9 years, 4 months ago) by christos
Branch: MAIN
Changes since 1.50: +2 -1 lines
Diff to previous 1.50 (colored) to selected 1.17 (colored)

add LDEBUG

Revision 1.46.4.2 / (download) - annotate - [select for diffs], Thu May 22 11:42:52 2014 UTC (9 years, 10 months ago) by yamt
Branch: yamt-pagecache
Changes since 1.46.4.1: +4 -3 lines
Diff to previous 1.46.4.1 (colored) to branchpoint 1.46 (colored) next main 1.47 (colored) to selected 1.17 (colored)

sync with head.

for a reference, the tree before this commit was tagged
as yamt-pagecache-tag8.

this commit was splitted into small chunks to avoid
a limitation of cvs.  ("Protocol error: too many arguments")

Revision 1.47.6.1 / (download) - annotate - [select for diffs], Sun Jun 23 06:29:02 2013 UTC (10 years, 9 months ago) by tls
Branch: tls-maxphys
Changes since 1.47: +4 -3 lines
Diff to previous 1.47 (colored) next main 1.48 (colored) to selected 1.17 (colored)

resync from head

Revision 1.50 / (download) - annotate - [select for diffs], Fri May 10 15:41:44 2013 UTC (10 years, 10 months ago) by christos
Branch: MAIN
CVS Tags: yamt-pagecache-base9, tls-maxphys-base, tls-earlyentropy-base, tls-earlyentropy, riastradh-xf86-video-intel-2-7-1-pre-2-21-15, riastradh-drm2-base3, riastradh-drm2-base2, riastradh-drm2-base1, riastradh-drm2-base, riastradh-drm2, netbsd-7-nhusb-base-20170116, netbsd-7-nhusb-base, netbsd-7-nhusb, netbsd-7-base, netbsd-7-2-RELEASE, netbsd-7-1-RELEASE, netbsd-7-1-RC2, netbsd-7-1-RC1, netbsd-7-1-2-RELEASE, netbsd-7-1-1-RELEASE, netbsd-7-1, netbsd-7-0-RELEASE, netbsd-7-0-RC3, netbsd-7-0-RC2, netbsd-7-0-RC1, netbsd-7-0-2-RELEASE, netbsd-7-0-1-RELEASE, netbsd-7-0, netbsd-7
Changes since 1.49: +3 -3 lines
Diff to previous 1.49 (colored) to selected 1.17 (colored)

commit test

Revision 1.49 / (download) - annotate - [select for diffs], Fri May 10 15:40:21 2013 UTC (10 years, 10 months ago) by christos
Branch: MAIN
Changes since 1.48: +3 -3 lines
Diff to previous 1.48 (colored) to selected 1.17 (colored)

cvs test

Revision 1.48 / (download) - annotate - [select for diffs], Fri May 10 15:31:22 2013 UTC (10 years, 10 months ago) by christos
Branch: MAIN
Changes since 1.47: +4 -3 lines
Diff to previous 1.47 (colored) to selected 1.17 (colored)

sort

Revision 1.46.4.1 / (download) - annotate - [select for diffs], Tue Apr 17 00:09:44 2012 UTC (11 years, 11 months ago) by yamt
Branch: yamt-pagecache
CVS Tags: yamt-pagecache-tag8
Changes since 1.46: +3 -2 lines
Diff to previous 1.46 (colored) to selected 1.17 (colored)

sync with head

Revision 1.47 / (download) - annotate - [select for diffs], Sun Dec 25 01:05:44 2011 UTC (12 years, 3 months ago) by christos
Branch: MAIN
CVS Tags: yamt-pagecache-base8, yamt-pagecache-base7, yamt-pagecache-base6, yamt-pagecache-base5, yamt-pagecache-base4, netbsd-6-base, netbsd-6-1-RELEASE, netbsd-6-1-RC4, netbsd-6-1-RC3, netbsd-6-1-RC2, netbsd-6-1-RC1, netbsd-6-1-5-RELEASE, netbsd-6-1-4-RELEASE, netbsd-6-1-3-RELEASE, netbsd-6-1-2-RELEASE, netbsd-6-1-1-RELEASE, netbsd-6-1, netbsd-6-0-RELEASE, netbsd-6-0-RC2, netbsd-6-0-RC1, netbsd-6-0-6-RELEASE, netbsd-6-0-5-RELEASE, netbsd-6-0-4-RELEASE, netbsd-6-0-3-RELEASE, netbsd-6-0-2-RELEASE, netbsd-6-0-1-RELEASE, netbsd-6-0, netbsd-6, matt-nb6-plus-nbase, matt-nb6-plus-base, matt-nb6-plus, agc-symver-base, agc-symver
Branch point for: tls-maxphys
Changes since 1.46: +3 -2 lines
Diff to previous 1.46 (colored) to selected 1.17 (colored)

correct debugging flags.

Revision 1.45.2.1 / (download) - annotate - [select for diffs], Tue Feb 8 16:20:13 2011 UTC (13 years, 1 month ago) by bouyer
Branch: bouyer-quota2
Changes since 1.45: +4 -1 lines
Diff to previous 1.45 (colored) next main 1.46 (colored) to selected 1.17 (colored)

Sync with HEAD

Revision 1.46 / (download) - annotate - [select for diffs], Fri Feb 4 23:32:44 2011 UTC (13 years, 1 month ago) by christos
Branch: MAIN
CVS Tags: yamt-pagecache-base3, yamt-pagecache-base2, yamt-pagecache-base, cherry-xenmp-base, cherry-xenmp, bouyer-quota2-nbase, bouyer-quota2-base
Branch point for: yamt-pagecache
Changes since 1.45: +4 -1 lines
Diff to previous 1.45 (colored) to selected 1.17 (colored)

generate ops table dynamically. Will move the other table from tree.c there
too.

Revision 1.38.6.1 / (download) - annotate - [select for diffs], Wed Dec 8 04:35:23 2010 UTC (13 years, 3 months ago) by riz
Branch: netbsd-5
CVS Tags: netbsd-5-2-RELEASE, netbsd-5-2-RC1, netbsd-5-2-3-RELEASE, netbsd-5-2-2-RELEASE, netbsd-5-2-1-RELEASE, netbsd-5-2, matt-nb5-pq3-base, matt-nb5-pq3
Changes since 1.38: +2 -2 lines
Diff to previous 1.38 (colored) next main 1.39 (colored) to selected 1.17 (colored)

Pull up following revision(s) (requested by uwe in ticket #1491):
	usr.bin/xlint/lint1/Makefile: revision 1.41
Comment out CFLAGS+=-g.

Revision 1.45 / (download) - annotate - [select for diffs], Sun Jul 11 12:07:32 2010 UTC (13 years, 8 months ago) by mrg
Branch: MAIN
CVS Tags: matt-mips64-premerge-20101231
Branch point for: bouyer-quota2
Changes since 1.44: +1 -3 lines
Diff to previous 1.44 (colored) to selected 1.17 (colored)

remove the remaining non-ELF code.

Revision 1.44 / (download) - annotate - [select for diffs], Tue Jul 6 06:00:03 2010 UTC (13 years, 8 months ago) by mrg
Branch: MAIN
Changes since 1.43: +1 -11 lines
Diff to previous 1.43 (colored) to selected 1.17 (colored)

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

Revision 1.39.2.1 / (download) - annotate - [select for diffs], Wed May 13 19:20:13 2009 UTC (14 years, 10 months ago) by jym
Branch: jym-xensuspend
Changes since 1.39: +3 -3 lines
Diff to previous 1.39 (colored) next main 1.40 (colored) to selected 1.17 (colored)

Sync with HEAD.

Third (and last) commit. See http://mail-index.netbsd.org/source-changes/2009/05/13/msg221222.html

Revision 1.43 / (download) - annotate - [select for diffs], Fri May 1 22:03:36 2009 UTC (14 years, 11 months ago) by christos
Branch: MAIN
CVS Tags: matt-premerge-20091211, jym-xensuspend-nbase, jym-xensuspend-base
Changes since 1.42: +2 -1 lines
Diff to previous 1.42 (colored) to selected 1.17 (colored)

add variable declarations in for loops for c99

Revision 1.42 / (download) - annotate - [select for diffs], Tue Apr 14 09:10:00 2009 UTC (14 years, 11 months ago) by lukem
Branch: MAIN
Changes since 1.41: +1 -2 lines
Diff to previous 1.41 (colored) to selected 1.17 (colored)

Compile lint with WARNS=3.
Currently there are too many -Wsign-compare issues for WARNS=4.

Revision 1.41 / (download) - annotate - [select for diffs], Sat Feb 14 14:05:58 2009 UTC (15 years, 1 month ago) by uebayasi
Branch: MAIN
Changes since 1.40: +2 -2 lines
Diff to previous 1.40 (colored) to selected 1.17 (colored)

Comment out CFLAGS+=-g.

Revision 1.40 / (download) - annotate - [select for diffs], Fri Feb 13 01:27:43 2009 UTC (15 years, 1 month ago) by lukem
Branch: MAIN
Changes since 1.39: +2 -2 lines
Diff to previous 1.39 (colored) to selected 1.17 (colored)

this code isn't -Wsign-compare friendly -- drop the WARNS to 3.

Revision 1.39 / (download) - annotate - [select for diffs], Sun Nov 16 07:06:37 2008 UTC (15 years, 4 months ago) by dholland
Branch: MAIN
Branch point for: jym-xensuspend
Changes since 1.38: +2 -1 lines
Diff to previous 1.38 (colored) to selected 1.17 (colored)

WARNS=4

Revision 1.37.16.1 / (download) - annotate - [select for diffs], Sun May 18 12:36:11 2008 UTC (15 years, 10 months ago) by yamt
Branch: yamt-pf42
Changes since 1.37: +2 -1 lines
Diff to previous 1.37 (colored) next main 1.38 (colored) to selected 1.17 (colored)

sync with head.

Revision 1.38 / (download) - annotate - [select for diffs], Fri Apr 25 22:18:34 2008 UTC (15 years, 11 months ago) by christos
Branch: MAIN
CVS Tags: yamt-pf42-base4, yamt-pf42-base3, yamt-pf42-base2, wrstuden-revivesa-base-3, wrstuden-revivesa-base-2, wrstuden-revivesa-base-1, wrstuden-revivesa-base, wrstuden-revivesa, netbsd-5-base, netbsd-5-1-RELEASE, netbsd-5-1-RC4, netbsd-5-1-RC3, netbsd-5-1-RC2, netbsd-5-1-RC1, netbsd-5-1-5-RELEASE, netbsd-5-1-4-RELEASE, netbsd-5-1-3-RELEASE, netbsd-5-1-2-RELEASE, netbsd-5-1-1-RELEASE, netbsd-5-1, netbsd-5-0-RELEASE, netbsd-5-0-RC4, netbsd-5-0-RC3, netbsd-5-0-RC2, netbsd-5-0-RC1, netbsd-5-0-2-RELEASE, netbsd-5-0-1-RELEASE, netbsd-5-0, matt-nb5-mips64-u2-k2-k4-k7-k8-k9, matt-nb5-mips64-u1-k1-k5, matt-nb5-mips64-premerge-20101231, matt-nb5-mips64-premerge-20091211, matt-nb5-mips64-k15, matt-nb5-mips64, matt-nb4-mips64-k7-u2a-k9b, matt-mips64-base2, hpcarm-cleanup-nbase
Branch point for: netbsd-5
Changes since 1.37: +2 -1 lines
Diff to previous 1.37 (colored) to selected 1.17 (colored)

preliminary _Complex support.
NB: Does not really understand type conversions between complex and doubles.

Revision 1.37 / (download) - annotate - [select for diffs], Sat Oct 14 21:08:50 2006 UTC (17 years, 5 months ago) by christos
Branch: MAIN
CVS Tags: yamt-pf42-baseX, yamt-pf42-base, wrstuden-fixsa-newbase, wrstuden-fixsa-base-1, wrstuden-fixsa-base, wrstuden-fixsa, netbsd-4-base, netbsd-4-0-RELEASE, netbsd-4-0-RC5, netbsd-4-0-RC4, netbsd-4-0-RC3, netbsd-4-0-RC2, netbsd-4-0-RC1, netbsd-4-0-1-RELEASE, netbsd-4-0, netbsd-4, matt-mips64-base, matt-mips64, matt-armv6-prevmlocking, matt-armv6-nbase, matt-armv6-base, matt-armv6, keiichi-mipv6-nbase, keiichi-mipv6-base, keiichi-mipv6, hpcarm-cleanup-base, hpcarm-cleanup, cube-autoconf-base, cube-autoconf
Branch point for: yamt-pf42
Changes since 1.36: +2 -2 lines
Diff to previous 1.36 (colored) to selected 1.17 (colored)

Fix c99 initialization issues. Now the regression tests work.

Revision 1.36 / (download) - annotate - [select for diffs], Sun Oct 8 17:52:29 2006 UTC (17 years, 5 months ago) by peter
Branch: MAIN
Changes since 1.35: +1 -2 lines
Diff to previous 1.35 (colored) to selected 1.17 (colored)

WFORMAT is no more...

Revision 1.35 / (download) - annotate - [select for diffs], Thu Apr 7 16:28:40 2005 UTC (18 years, 11 months ago) by christos
Branch: MAIN
CVS Tags: chap-midi-nbase, chap-midi-base, chap-midi, abandoned-netbsd-4-base, abandoned-netbsd-4
Changes since 1.34: +3 -3 lines
Diff to previous 1.34 (colored) to selected 1.17 (colored)

Factor out tyname() so that it can be used both by lint1 and lint2.
Since type_t is different between lint1.h and lint2.h include the
appropriate file depending on the pass. Make the argument mismatch
error print the type names of the types involved. Now that we have
a tyname() function we can fix the rest of the pass2 warnings to be
more explanatory, but not now.

Revision 1.34 / (download) - annotate - [select for diffs], Tue Oct 21 10:01:22 2003 UTC (20 years, 5 months ago) by lukem
Branch: MAIN
CVS Tags: netbsd-3-base, netbsd-3-1-RELEASE, netbsd-3-1-RC4, netbsd-3-1-RC3, netbsd-3-1-RC2, netbsd-3-1-RC1, netbsd-3-1-1-RELEASE, netbsd-3-1, netbsd-3-0-RELEASE, netbsd-3-0-RC6, netbsd-3-0-RC5, netbsd-3-0-RC4, netbsd-3-0-RC3, netbsd-3-0-RC2, netbsd-3-0-RC1, netbsd-3-0-3-RELEASE, netbsd-3-0-2-RELEASE, netbsd-3-0-1-RELEASE, netbsd-3-0, netbsd-3, netbsd-2-base, netbsd-2-1-RELEASE, netbsd-2-1-RC6, netbsd-2-1-RC5, netbsd-2-1-RC4, netbsd-2-1-RC3, netbsd-2-1-RC2, netbsd-2-1-RC1, netbsd-2-1, netbsd-2-0-base, netbsd-2-0-RELEASE, netbsd-2-0-RC5, netbsd-2-0-RC4, netbsd-2-0-RC3, netbsd-2-0-RC2, netbsd-2-0-RC1, netbsd-2-0-3-RELEASE, netbsd-2-0-2-RELEASE, netbsd-2-0-1-RELEASE, netbsd-2-0, netbsd-2
Changes since 1.33: +2 -3 lines
Diff to previous 1.33 (colored) to selected 1.17 (colored)

Rework how MAKEVERBOSE operates:

    *	Don't bother prefixing commands with a line of  ${_MKCMD}\
	and instead rely upon "make -s".  This is less intrusive on
	all the Makefiles than the former.  Idea from David Laight.

    *	Rename the variables use to print messages.  The scheme now is:
	    _MKMSG_FOO		Run  _MKMSG 'foo'
	    _MKTARGET_FOO	Run  _MKMSG_FOO ${.TARGET}
	From discussion with Alistair Crooks.

Revision 1.33 / (download) - annotate - [select for diffs], Sun Oct 19 04:27:52 2003 UTC (20 years, 5 months ago) by lukem
Branch: MAIN
Changes since 1.32: +4 -2 lines
Diff to previous 1.32 (colored) to selected 1.17 (colored)

support MAKEVERBOSE and use ${HOST_SH}

Revision 1.32 / (download) - annotate - [select for diffs], Fri Aug 1 17:04:06 2003 UTC (20 years, 8 months ago) by lukem
Branch: MAIN
Changes since 1.31: +1 -3 lines
Diff to previous 1.31 (colored) to selected 1.17 (colored)

Rework how dependency generation is performed:

* DPSRCS contains extra dependencies, but is _NOT_ added to CLEANFILES.
  This is a change of behaviour.  If a Makefile wants the clean semantics
  it must specifically append to CLEANFILES.
  Resolves PR toolchain/5204.

* To recap: .d (depend) files are generated for all files in SRCS and DPSRCS
  that have a suffix of: .c .m .s .S .C .cc .cpp .cxx

* If YHEADER is set, automatically add the .y->.h to DPSRCS & CLEANFILES

* Ensure that ${OBJS} ${POBJS} ${LOBJS} ${SOBJS} *.d  depend upon ${DPSRCS}

* Deprecate the (short lived) DEPENDSRCS


Update the various Makefiles to these new semantics; generally either
adding to CLEANFILES (because DPSRCS doesn't do that anymore), or replacing
specific .o dependencies with DPSRCS entries.

Tested with "make -j 8 distribution" and "make distribution".

Revision 1.31 / (download) - annotate - [select for diffs], Fri May 30 13:38:09 2003 UTC (20 years, 10 months ago) by christos
Branch: MAIN
Changes since 1.30: +2 -2 lines
Diff to previous 1.30 (colored) to selected 1.17 (colored)

Back out debugging Makefile.

Revision 1.30 / (download) - annotate - [select for diffs], Fri May 30 13:37:49 2003 UTC (20 years, 10 months ago) by christos
Branch: MAIN
Changes since 1.29: +2 -2 lines
Diff to previous 1.29 (colored) to selected 1.17 (colored)

PR/21706: Krister Walfridsson: CVT nodes not handled in ?: expressions.

Revision 1.29 / (download) - annotate - [select for diffs], Sat May 24 22:17:46 2003 UTC (20 years, 10 months ago) by christos
Branch: MAIN
Changes since 1.28: +2 -2 lines
Diff to previous 1.28 (colored) to selected 1.17 (colored)

handle void ({ })

Revision 1.28 / (download) - annotate - [select for diffs], Sun May 18 07:57:37 2003 UTC (20 years, 10 months ago) by lukem
Branch: MAIN
Changes since 1.27: +2 -2 lines
Diff to previous 1.27 (colored) to selected 1.17 (colored)

Now that <bsd.prog.mk> DTRT if HOSTPROG is defined (i.e, it is a no-op),
there's no need to special-case .include-ing it.

Revision 1.27 / (download) - annotate - [select for diffs], Wed May 14 00:24:07 2003 UTC (20 years, 10 months ago) by dbj
Branch: MAIN
Changes since 1.26: +2 -2 lines
Diff to previous 1.26 (colored) to selected 1.17 (colored)

remove dependencies on ${LIBC} ${LIBM} and ${LIBTERMCAP} static libraries
from host tool targets.  Commits fix from PR toolchain/21495

Revision 1.26 / (download) - annotate - [select for diffs], Fri Feb 1 05:44:40 2002 UTC (22 years, 2 months ago) by lukem
Branch: MAIN
CVS Tags: netbsd-1-6-base, netbsd-1-6-RELEASE, netbsd-1-6-RC3, netbsd-1-6-RC2, netbsd-1-6-RC1, netbsd-1-6-PATCH002-RELEASE, netbsd-1-6-PATCH002-RC4, netbsd-1-6-PATCH002-RC3, netbsd-1-6-PATCH002-RC2, netbsd-1-6-PATCH002-RC1, netbsd-1-6-PATCH002, netbsd-1-6-PATCH001-RELEASE, netbsd-1-6-PATCH001-RC3, netbsd-1-6-PATCH001-RC2, netbsd-1-6-PATCH001-RC1, netbsd-1-6-PATCH001, netbsd-1-6, fvdl_fs64_base
Changes since 1.25: +6 -3 lines
Diff to previous 1.25 (colored) to selected 1.17 (colored)

need -lm in the HOSTPROG case too...

Revision 1.25 / (download) - annotate - [select for diffs], Fri Feb 1 01:32:20 2002 UTC (22 years, 2 months ago) by ross
Branch: MAIN
Changes since 1.24: +3 -3 lines
Diff to previous 1.24 (colored) to selected 1.17 (colored)

now needs -lm for finite(3)

Revision 1.24 / (download) - annotate - [select for diffs], Thu Jan 31 22:44:00 2002 UTC (22 years, 2 months ago) by tv
Branch: MAIN
Changes since 1.23: +4 -3 lines
Diff to previous 1.23 (colored) to selected 1.17 (colored)

Roll in fixes to permit cross-compiling from non-NetBSD hosts.  This
round has been tested on Solaris/x86 and Linux hosts.

* Add host tools cap_mkdb, ctags, m4, uudecode.
* Protect __RCSID() and __COPYRIGHT() better.
* Reduce the number of places that need to include "config.h", to keep
  sources closer to their "vanilla" versions.
* Add more compat #defines and autoconf-checked functions.

Revision 1.23 / (download) - annotate - [select for diffs], Fri Jan 18 21:01:39 2002 UTC (22 years, 2 months ago) by thorpej
Branch: MAIN
Changes since 1.22: +2 -2 lines
Diff to previous 1.22 (colored) to selected 1.17 (colored)

Centralize the initialization/declaration of the ttab.

Revision 1.22 / (download) - annotate - [select for diffs], Wed Dec 19 18:10:40 2001 UTC (22 years, 3 months ago) by tv
Branch: MAIN
Changes since 1.21: +9 -3 lines
Diff to previous 1.21 (colored) to selected 1.17 (colored)

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.

Revision 1.21 / (download) - annotate - [select for diffs], Mon Nov 12 23:16:37 2001 UTC (22 years, 4 months ago) by tv
Branch: MAIN
Changes since 1.20: +17 -24 lines
Diff to previous 1.20 (colored) to selected 1.17 (colored)

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.

Revision 1.20 / (download) - annotate - [select for diffs], Thu Oct 25 02:22:55 2001 UTC (22 years, 5 months ago) by thorpej
Branch: MAIN
Changes since 1.19: +3 -1 lines
Diff to previous 1.19 (colored) to selected 1.17 (colored)

Give host tool builds better control over the HOST_CPPFLAGS.

Revision 1.19 / (download) - annotate - [select for diffs], Wed Oct 24 02:31:09 2001 UTC (22 years, 5 months ago) by thorpej
Branch: MAIN
Changes since 1.18: +8 -3 lines
Diff to previous 1.18 (colored) to selected 1.17 (colored)

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.

Revision 1.18 / (download) - annotate - [select for diffs], Wed Oct 24 01:12:45 2001 UTC (22 years, 5 months ago) by tv
Branch: MAIN
Changes since 1.17: +2 -2 lines
Diff to previous 1.17 (colored)

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.)

Revision 1.17 / (download) - annotate - [selected], Wed Oct 24 00:42:35 2001 UTC (22 years, 5 months ago) by thorpej
Branch: MAIN
Changes since 1.16: +16 -1 lines
Diff to previous 1.16 (colored)

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.

Revision 1.16 / (download) - annotate - [select for diffs], Wed Oct 24 00:07:39 2001 UTC (22 years, 5 months ago) by tv
Branch: MAIN
Changes since 1.15: +2 -4 lines
Diff to previous 1.15 (colored) to selected 1.17 (colored)

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.

Revision 1.15 / (download) - annotate - [select for diffs], Mon Oct 22 05:19:31 2001 UTC (22 years, 5 months ago) by jmc
Branch: MAIN
Changes since 1.14: +2 -2 lines
Diff to previous 1.14 (colored) to selected 1.17 (colored)

Move CPPFLAGS addition for lint1/arch to Makefile.inc so each subdir will
pick them up

Revision 1.14 / (download) - annotate - [select for diffs], Sun Oct 21 21:39:49 2001 UTC (22 years, 5 months ago) by thorpej
Branch: MAIN
Changes since 1.13: +2 -2 lines
Diff to previous 1.13 (colored) to selected 1.17 (colored)

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.

Revision 1.13 / (download) - annotate - [select for diffs], Tue Aug 14 10:18:28 2001 UTC (22 years, 7 months ago) by tv
Branch: MAIN
Changes since 1.12: +3 -1 lines
Diff to previous 1.12 (colored) to selected 1.17 (colored)

Add hooks to allow toolchain bits to be reachover-built at the top level.

Revision 1.7.2.1 / (download) - annotate - [select for diffs], Thu Oct 19 16:33:18 2000 UTC (23 years, 5 months ago) by he
Branch: netbsd-1-4
CVS Tags: netbsd-1-4-PATCH003
Changes since 1.7: +2 -2 lines
Diff to previous 1.7 (colored) next main 1.8 (colored) to selected 1.17 (colored)

Pull up revision 1.12 (requested by he):
  Format string cleanup.

Revision 1.7.10.1 / (download) - annotate - [select for diffs], Wed Oct 18 01:32:54 2000 UTC (23 years, 5 months ago) by tv
Branch: netbsd-1-5
CVS Tags: netbsd-1-5-RELEASE, netbsd-1-5-PATCH003, netbsd-1-5-PATCH002, netbsd-1-5-PATCH001, netbsd-1-5-BETA2, netbsd-1-5-BETA
Changes since 1.7: +2 -2 lines
Diff to previous 1.7 (colored) next main 1.8 (colored) to selected 1.17 (colored)

Pullup usr.bin string format fixes [is].
See "cvs log" for explicit revision numbers per file, from sommerfeld.

Revision 1.12 / (download) - annotate - [select for diffs], Wed Oct 11 14:46:23 2000 UTC (23 years, 5 months ago) by is
Branch: MAIN
Changes since 1.11: +2 -2 lines
Diff to previous 1.11 (colored) to selected 1.17 (colored)

More format string cleanup by sommerfeld.

Revision 1.11 / (download) - annotate - [select for diffs], Sun Jul 23 22:17:14 2000 UTC (23 years, 8 months ago) by mycroft
Branch: MAIN
Changes since 1.10: +2 -2 lines
Diff to previous 1.10 (colored) to selected 1.17 (colored)

Fix problem building lint.7.

Revision 1.10 / (download) - annotate - [select for diffs], Thu Jul 6 01:21:46 2000 UTC (23 years, 8 months ago) by christos
Branch: MAIN
Changes since 1.9: +6 -2 lines
Diff to previous 1.9 (colored) to selected 1.17 (colored)

better way to handle lint.7

Revision 1.9 / (download) - annotate - [select for diffs], Thu Jul 6 01:11:23 2000 UTC (23 years, 8 months ago) by christos
Branch: MAIN
Changes since 1.8: +5 -2 lines
Diff to previous 1.8 (colored) to selected 1.17 (colored)

build lint.7 man page

Revision 1.8 / (download) - annotate - [select for diffs], Mon Jul 3 02:51:44 2000 UTC (23 years, 9 months ago) by matt
Branch: MAIN
Changes since 1.7: +2 -2 lines
Diff to previous 1.7 (colored) to selected 1.17 (colored)

Make gcc 2.96 (and maybe earlier) happier.  Include <stdlib.h>,<string.>,
etc. as appropriate to get exit,srncmp,abs,abort,etc.
Add -I${.CURDIR} to a few Makefiles

Revision 1.7 / (download) - annotate - [select for diffs], Sat Feb 13 02:54:57 1999 UTC (25 years, 1 month ago) by lukem
Branch: MAIN
CVS Tags: wrstuden-devbsize-base, wrstuden-devbsize-19991221, wrstuden-devbsize, netbsd-1-5-base, netbsd-1-5-ALPHA2, netbsd-1-4-base, netbsd-1-4-RELEASE, netbsd-1-4-PATCH002, netbsd-1-4-PATCH001, minoura-xpg4dl-base, minoura-xpg4dl, comdex-fall-1999-base, comdex-fall-1999
Branch point for: netbsd-1-5, netbsd-1-4
Changes since 1.6: +2 -2 lines
Diff to previous 1.6 (colored) to selected 1.17 (colored)

convert from NOxxx= to MKxxx=no.
include <bsd.own.mk> if testing a MKxxx variable.

Revision 1.6 / (download) - annotate - [select for diffs], Thu Apr 9 00:32:38 1998 UTC (25 years, 11 months ago) by tv
Branch: MAIN
Changes since 1.5: +5 -4 lines
Diff to previous 1.5 (colored) to selected 1.17 (colored)

.y.c <sys.mk> rule fixes.  Don't create a y.tab.h file unless asked for,
and use smarter creation of the header file.

Revision 1.4.2.1 / (download) - annotate - [select for diffs], Tue Nov 4 21:42:12 1997 UTC (26 years, 4 months ago) by thorpej
Branch: netbsd-1-3
CVS Tags: netbsd-1-3-RELEASE, netbsd-1-3-PATCH003-CANDIDATE2, netbsd-1-3-PATCH003-CANDIDATE1, netbsd-1-3-PATCH003-CANDIDATE0, netbsd-1-3-PATCH003, netbsd-1-3-PATCH002, netbsd-1-3-PATCH001, netbsd-1-3-BETA
Changes since 1.4: +2 -2 lines
Diff to previous 1.4 (colored) next main 1.5 (colored) to selected 1.17 (colored)

Pull up from trunk: make renaming work and other minor fixes.

Revision 1.5 / (download) - annotate - [select for diffs], Fri Oct 24 09:01:12 1997 UTC (26 years, 5 months ago) by lukem
Branch: MAIN
Changes since 1.4: +2 -2 lines
Diff to previous 1.4 (colored) to selected 1.17 (colored)

use CPPFLAGS instead of CFLAGS

Revision 1.4 / (download) - annotate - [select for diffs], Wed Mar 12 18:28:55 1997 UTC (27 years ago) by mycroft
Branch: MAIN
CVS Tags: netbsd-1-3-base
Branch point for: netbsd-1-3
Changes since 1.3: +1 -4 lines
Diff to previous 1.3 (colored) to selected 1.17 (colored)

Remove hack for (very old) GCC bug on i386.

Revision 1.3 / (download) - annotate - [select for diffs], Tue Jul 4 01:53:05 1995 UTC (28 years, 9 months ago) by cgd
Branch: MAIN
CVS Tags: netbsd-1-2-base, netbsd-1-2-RELEASE, netbsd-1-2-PATCH001, netbsd-1-2-BETA, netbsd-1-2, netbsd-1-1-base, netbsd-1-1-RELEASE, netbsd-1-1-PATCH001, netbsd-1-1
Changes since 1.2: +4 -1 lines
Diff to previous 1.2 (colored) to selected 1.17 (colored)

hack around a bug in our gcc.

Revision 1.2 / (download) - annotate - [select for diffs], Mon Jul 3 21:23:53 1995 UTC (28 years, 9 months ago) by cgd
Branch: MAIN
Changes since 1.1: +1 -1 lines
Diff to previous 1.1 (colored) to selected 1.17 (colored)

RCS id cleanup

Revision 1.1.1.1 / (download) - annotate - [select for diffs] (vendor branch), Mon Jul 3 20:56:35 1995 UTC (28 years, 9 months ago) by cgd
Branch: Jochen_Pohl
CVS Tags: Jochen_Pohl-950703
Changes since 1.1: +0 -0 lines
Diff to previous 1.1 (colored) to selected 1.17 (colored)

lint(1) implementation, by Jochen Pohl.  named 'xlint' for a similar
reason to why 'install' is named 'xinstall'.

Revision 1.1 / (download) - annotate - [select for diffs], Mon Jul 3 20:56:35 1995 UTC (28 years, 9 months ago) by cgd
Branch: MAIN
Diff to selected 1.17 (colored)

Initial revision

This form allows you to request diff's between any two revisions of a file. You may select a symbolic revision name using the selection box or you may type in a numeric name using the type-in text box.




CVSweb <webmaster@jp.NetBSD.org>