mirror of
https://github.com/freebsd/freebsd-src
synced 2024-07-21 02:06:37 +00:00
![Simon J. Gerraty](/assets/img/avatar_default.png)
Relevant/interesting changes: o parse.c: fix out-of-bounds read when parsing an invalid line https://bugs.freebsd.org/265119 fix memory leak in wildcard targets and sources fix off-by-one error in buffer for .WAIT nodes o allow to randomize build order of targets .MAKE.MODE += randomize-targets can help uncover dependency bugs
33 lines
623 B
Makefile
33 lines
623 B
Makefile
# $NetBSD: directive-for-lines.mk,v 1.4 2022/05/08 06:51:27 rillig Exp $
|
|
#
|
|
# Tests for the line numbers that are reported in .for loops.
|
|
#
|
|
# Since parse.c 1.127 from 2007-01-01 and before parse.c 1.494 from
|
|
# 2020-12-19, the line numbers for the .info directives and error
|
|
# messages inside .for loops had been wrong since ParseGetLine skipped empty
|
|
# lines, even when collecting the lines for the .for loop body.
|
|
|
|
.for outer in a b
|
|
|
|
# comment \
|
|
# continued comment
|
|
|
|
.for inner in 1 2
|
|
|
|
# comment \
|
|
# continued comment
|
|
|
|
VAR= \
|
|
multi-line
|
|
|
|
.info expect 23
|
|
|
|
.endfor
|
|
|
|
# comment \
|
|
# continued comment
|
|
|
|
.info expect 30
|
|
|
|
.endfor
|