summaryrefslogtreecommitdiff
path: root/usr.bin/make
AgeCommit message (Collapse)Author
2006-08-29protect libutil with HOSTPROGchristos
2006-08-26Fix non-native build.christos
2006-08-26Don't include <util.h> if we are not NetBSD. Other OS's don't have it.christos
2006-08-26More programs using efun.christos
2006-08-11If a word is "" eat the last quote since we ate the first.christos
2006-07-28Indicate which modifier a result applies to, helps debug complex cases.sjg
2006-07-28Add debug output for CondDoExists() - the results can be surprising.sjg
2006-07-28Fix minor mem leak in PrintOnError().sjg
2006-06-29Fixed gcc warnings about signed vs. unsigned in comparisons.rillig
2006-06-29Fixed the bug reported in PR 33866, which is that the :Q operator does notrillig
handle newlines correctly. Ok'ed by christos.
2006-06-17Fix mispelling.reed
2006-06-15Remove a hack that's no longer needed with gcc 3.3.6.skrll
2006-05-19Coverity CI D3758: Plug memory leak.christos
2006-05-19Coverity CID 3757: Plug memory leak.christos
2006-05-19Coverity CID 3147: Plug memory leak.christos
2006-05-11Remove the modterm case from moderrs, the syntax errorssjg
generated by /bin/sh on other systems are not consistent.
2006-05-11Extract the variable modifier logic to a separate function.sjg
This cuts Var_Parse in half! and allows the modifier logic to be used recursively - when getting modifiers via variables. Add new unit-test, to check that certain error cases are handled correctly.
2006-05-08Our gcc 3.3.3 (nb3) for hppa gets an "unrecognized insn" internalhe
compiler error when building buf.c with -O2, so reduce optimization level to -O1 for this single file. To be documented in docs/HACKS, discussed with skrll.
2006-04-22Coverity CID 529: Call VarFreeEnv to prevent leak.christos
2006-04-22Coverity CID 534: Free junk variables on return from Var_Parse.christos
2006-04-22Coverity CID 533: Plug memory leak.christos
Add a new function VarFreeEnv() to free environment variables and use it.
2006-04-22Coverity CID 526: Check for condTop < 0 where we decrement it, not laterchristos
when the damage is already done.
2006-04-22Coverity CID 527: Make it painfully obvious that av is freed.christos
2006-04-22Coverity CID 528: Avoid NULL deref.christos
2006-04-22Coverity CID 530: Don't leak the argument vector.christos
2006-04-22Coverity CID 523: Fix off by one mistake.christos
2006-04-12Change ReadMakefile to return 0 on success so that it better meetssjg
the expectations of Lst_Find*. This way we only read the first sys.mk found via sysIncPath. At the same time we need to add a ReadAllMakefiles() for the case where multiple -f makefile args are provided (uncommon, but documented).
2006-04-02Remove bogus debugging code I accidentally committed.christos
2006-03-31Add some coverity allocation comments, and change the way the allocatorchristos
functions work. When they allocate storage that needs to be freed, instead of setting a boolean, set the pointer to be freed. Plug some more memory leaks found by inspection.
2006-03-31There is no need to count jobs and job tokens.dsl
If we don't create the job pipe, use the '-j n' option to limit the number of tokens we will remove from the pipe.
2006-03-31Coverity CID 544: Fix memory leak.christos
2006-03-28- Change where variable substitution is done when processing traditionalginsbach
include statements so that if a variable expands to more than one file name make will "do the right thing". - Add additional debug print Reviewed by christos.
2006-03-19New sentence, new line.wiz
2006-03-19Fix :P modifier so it actually works as described.sjg
I.e ${var.c:P} should expand to the absolute path of var.c found via .PATH
2006-03-19Document an interesting kwirk in := handling of undefined variables.sjg
2006-03-17Coverity CID 2719: argvalue can be NULL when passed into functions.christos
De-obfuscate by undefining optarg, and check explicitly for NULL before use.
2006-03-15nJobs and jobTokensRunning are both counting the same thing.dsl
Kill nJobs and just use the count of tokens in use. Don't eat job tokens when we are ignoring errors.
2006-03-13JOB_FIRST is always set (since we only execute the shell once for everydsl
target). Nuke it.
2006-03-12Remove the 'never non-NULL' 'previous' argument to JobStart.dsl
Looks like it was intended as a minor (and pointless) optimisation to remove a free() malloc() pair. Make he comment about the stoppedJobs list more correct.
2006-03-12It isn't possibly to execute any part of job.c that references compatMakedsl
when it is 'true'. So delete the unexecutable code.
2006-03-11Remove most of the code seemed to be there to support 'remote jobs'.dsl
It isn't clear that it ever worked, if it did it has almost certainly bitrotted in the last 12 years. I'm not even sure all the required components were present. I suspect it was written to attempt to use a 'farm' of diskless sun3s. In any case the apparant random assignment fo jobs to other systems doesn't actually seem like a good idea! Things like 'distcc' han be used to help slow systems run native builds. Removing this code also simplifies make, and should let me speed up some of its processing - without worrying about bitrotting it further.
2006-03-11Markup fixes.wiz
2006-03-10PR/33049: OKANO Takayoshi: Fix the spelling of NetBSD RCS tags.christos
2006-03-08Avoid calling JobRestartJobs() from the SIGCONT signal handler, insteaddsl
push a byte through the (now badly named) exit_pipe and call JobRestartJobs() from the main code path when poll() wakes up. Part of a plan to remove JobSigLock() and the zillions of system calls it does.
2006-02-26Make ".WAIT" apply recursively to all children of nodes on the rightapb
hand side of the .WAIT, except when the recursive interpretation would cause a cycle in the dependency graph. Discussed in tech-toolchain. Reviewed by christos, sjg.
2006-02-26Fix typo.wiz
2006-02-26Using ./bin in the test case, causes problems when 'make test' issjg
run from 'unit-tests' rather than the parent dir.
2006-02-26Update man page and add test case for specifying modifiers via variable.sjg
Also allow said variable to appear anywhere in the modifier list.
2006-02-18Don't use data in freed stack.tsutsui
2006-02-18Allow variable modifiers to be specified via variable.sjg