History log of /netbsd-src/usr.bin/make/Makefile (Results 1 – 25 of 128)
Revision Date Author Comments
# 1557cacd 19-Jan-2025 rillig <rillig@NetBSD.org>

make: fix code coverage counts

See tests/usr.bin/gcov/t_gcov.sh.


# 5efe3083 19-Dec-2023 rillig <rillig@NetBSD.org>

make: clean up code coverage report files

Remove trailing whitespace.

Remove the first line, as it only repeats the filename.

Remove the line numbers, as they are mostly the same as in the origina

make: clean up code coverage report files

Remove trailing whitespace.

Remove the first line, as it only repeats the filename.

Remove the line numbers, as they are mostly the same as in the original
source file.

show more ...


# 8e6814b7 17-Dec-2023 rillig <rillig@NetBSD.org>

make: on cleandir, clean the unit-tests as well


# 2c318887 19-Jun-2023 rillig <rillig@NetBSD.org>

make: sort files in coverage report alphabetically


# c4b7a9e7 03-Jun-2023 lukem <lukem@NetBSD.org>

bsd.own.mk: rename GCC_NO_* to CC_WNO_*

Rename compiler-warning-disable variables from
GCC_NO_warning
to
CC_WNO_warning
where warning is the full warning name as used by the compiler.

GCC_NO_IMPL

bsd.own.mk: rename GCC_NO_* to CC_WNO_*

Rename compiler-warning-disable variables from
GCC_NO_warning
to
CC_WNO_warning
where warning is the full warning name as used by the compiler.

GCC_NO_IMPLICIT_FALLTHRU is CC_WNO_IMPLICIT_FALLTHROUGH

Using the convention CC_compilerflag, where compilerflag
is based on the full compiler flag name.

show more ...


# 04db2675 27-Sep-2022 rillig <rillig@NetBSD.org>

make: set WARNS to 6, from the default 5

No binary change on x86_64.


# 71fe82a5 03-May-2022 rillig <rillig@NetBSD.org>

make: remove test scenarios for old GCC versions

These had been useful for NetBSD 8, which used GCC 5.


# 8764ef09 26-Jan-2022 rillig <rillig@NetBSD.org>

make: generate coverage summary on 'make test-coverage'


# d150208a 09-Jan-2022 rillig <rillig@NetBSD.org>

make: in Cmd_Exec, return error message instead of format string

This change leaves only literal format strings in parse.c. It allows
for more detailed error messages than the current "non-zero sta

make: in Cmd_Exec, return error message instead of format string

This change leaves only literal format strings in parse.c. It allows
for more detailed error messages than the current "non-zero status" or
"exited on a signal".

No functional change.

show more ...


# 3c5bb9b1 12-Dec-2021 rillig <rillig@NetBSD.org>

make: do not report '?' for fully covered header files


# d4dbd5c3 12-Dec-2021 rillig <rillig@NetBSD.org>

make: only define target report-coverage if USE_COVERAGE is yes

Without USE_COVERAGE, GCOV was undefined, the '2>&1' passed all error
messages to GCOV_PERL, when then discarded them. If the error m

make: only define target report-coverage if USE_COVERAGE is yes

Without USE_COVERAGE, GCOV was undefined, the '2>&1' passed all error
messages to GCOV_PERL, when then discarded them. If the error messages
had been left on stderr, the error message 'sh: arch.o.gcda: not found'
would have been a clear indicator of the actual cause of an empty
coverage report.

show more ...


# f6612c3d 28-Nov-2021 rillig <rillig@NetBSD.org>

make: replace bloated bit-set-to-string code with simple code

It was a nice idea to implement a bit-set using an enum type and have a
generic ToString function for them. In the end, the implementat

make: replace bloated bit-set-to-string code with simple code

It was a nice idea to implement a bit-set using an enum type and have a
generic ToString function for them. In the end, the implementation
involved really heavy preprocessor magic and was probably difficult to
understand. Replace all the code with a few bits of straight-forward
preprocessor magic that can be readily understood by just looking 5
lines around, instead of digging through 130 lines of lengthy macro
definitions.

Curiously, this reduces the binary size even though the 3 ToString
functions now have a few lines of duplicate code and there are more
explicit function calls.

The ToString functions are only seldom used, so the additional memory
allocation is acceptable.

No functional change.

show more ...


# cc821a91 31-Jul-2021 rillig <rillig@NetBSD.org>

make: fix lint warnings

The string functions from str.h are declared as 'static __unused' when
compiled with GCC, but lint explicitly undefines __GCC__ during
preprocessing. Therefore, make those f

make: fix lint warnings

The string functions from str.h are declared as 'static __unused' when
compiled with GCC, but lint explicitly undefines __GCC__ during
preprocessing. Therefore, make those functions inline, to prevent
warnings that they are unused.

The macro UNCONST is used in a few places, and (again) since lint
undefines __GCC__, that macro expanded to a simple type cast, which lint
warned about. To prevent this warning, implement UNCONST as a function
that works everywhere and hides the type cast.

In filemon_open, the code for closing F->in was obviously unreachable.

No functional change.

show more ...


# 91c42d4f 30-May-2021 rillig <rillig@NetBSD.org>

make: fix reported code coverage for *.h

In 'make test-coverage', the number of uncovered lines for inline
functions in headers was reported too high. The cause for this is that
gcov reports the co

make: fix reported code coverage for *.h

In 'make test-coverage', the number of uncovered lines for inline
functions in headers was reported too high. The cause for this is that
gcov reports the coverage for these functions multiple times, once per
translation unit. If some of the translation units don't use these
inline functions, summing the lines containing '#####' quickly leads to
numbers that are obviously too high.

show more ...


# 48cf19f1 11-Apr-2021 rillig <rillig@NetBSD.org>

make: clean up Makefile

The dependencies on the header files are handled by 'make depend'. They
do not need to be spelled out.


# f62aab28 22-Feb-2021 rillig <rillig@NetBSD.org>

make: fix report-coverage

On NetBSD 8.0 it still worked. Maybe gcov doesn't support .c files as
arguments anymore. Using the .gcda files works and is more reliable
anyway since it covers the inlin

make: fix report-coverage

On NetBSD 8.0 it still worked. Maybe gcov doesn't support .c files as
arguments anymore. Using the .gcda files works and is more reliable
anyway since it covers the inline functions in the headers as well.

show more ...


# 4470ca26 30-Jan-2021 rillig <rillig@NetBSD.org>

make(1): run lint with strict bool mode

The make code is not supposed to use constructs such as "if (strcmp(s1,
s2))" or "if (p && *p)", instead all boolean expressions have a form
that would be acc

make(1): run lint with strict bool mode

The make code is not supposed to use constructs such as "if (strcmp(s1,
s2))" or "if (p && *p)", instead all boolean expressions have a form
that would be accepted by a C#, Go or Java compiler as well. This also
ensures that pre-C99 compilers generate equivalent code as C99
compilers, at least regarding boolean expressions.

show more ...


# dc6cc25f 12-Dec-2020 rillig <rillig@NetBSD.org>

make(1): add number of uncovered lines to coverage report


# e7e184a2 12-Dec-2020 rillig <rillig@NetBSD.org>

make(1): add target test-coverage


# 856b05fe 06-Dec-2020 rillig <rillig@NetBSD.org>

make(1): move .include lines as far down as possible


# b95bc08b 06-Dec-2020 rillig <rillig@NetBSD.org>

make(1): move COPTS above <bsd.prog.mk>


# 1c121ce6 03-Dec-2020 rillig <rillig@NetBSD.org>

make(1): format coverage summary as a table

This is only used interactively, not in the official builds, therefore
the additional dependency on Perl doesn't matter. The same result could
have been

make(1): format coverage summary as a table

This is only used interactively, not in the official builds, therefore
the additional dependency on Perl doesn't matter. The same result could
have been achieved in any other programming language, but probably not
as concisely.

show more ...


# f1132483 25-Oct-2020 rillig <rillig@NetBSD.org>

make(1): remove unused strlist_t


# 6f608dee 23-Oct-2020 rillig <rillig@NetBSD.org>

make(1): add target-specific COPTS when generating cpre or casm


# 587ff3c4 18-Oct-2020 rillig <rillig@NetBSD.org>

make(1): fix GCC warning about small buffer for cohort_num

Since unmade_cohorts is a signed number (the code contains an underflow
check), the result of the '%' operator could be negative and result

make(1): fix GCC warning about small buffer for cohort_num

Since unmade_cohorts is a signed number (the code contains an underflow
check), the result of the '%' operator could be negative and result in
"#-999999", which would overflow the buffer, truncating the last digit.

show more ...


123456