The NetBSD Project

CVS log for src/usr.bin/make/nonints.h

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

Request diff between arbitrary revisions


Default branch: MAIN
Current tag: MAIN


Revision 1.66 / (download) - annotate - [select for diffs], Sat Aug 23 15:05:40 2014 UTC (8 days, 23 hours ago) by christos
Branch: MAIN
CVS Tags: HEAD
Changes since 1.65: +5 -5 lines
Diff to previous 1.65 (colored)

PR/46096: Jarmo Jaakkola: fix many problems with dependencies (PR 49086)

Quite extensive rewrite of the Suff module.  Some ripple effects into
Parse and Targ modules too.

Dependency searches in general were made to honor explicit rules so
implicit and explicit sources are no longer applied on targets that
do not invoke a transformation rule.

Archive member dependency search was rewritten.  Explicit rules now
work properly and $(.TARGET) is set correctly.  POSIX semantics for
lib(member.o) and .s1.a rules are supported.

.SUFFIXES list maintenance was rewritten so that scanning of existing
rules works when suffixes are added and that clearing the suffix list
removes single suffix rules too.  Transformation rule nodes are now
mixed with regular nodes so they are available as regular targets too
if needed (especially after the known suffixes are cleared).

The .NULL target was documented in the manual page, especially to
warn against using it when a single suffix rule would work.
A deprecation warning was also added to the manual and make also
warns the user if it encounters .NULL.

Search for suffix rules no longer allows the explicit dependencies
to override the selected transformation rule.  A check is made in
the search that the transformation that would be tried does not
already exist in the chain.  This prevents getting stuck in an infinite
loop under specific circumstances.  Local variables are now set
before node's children are expanded so dynamic sources work in
multi-stage transformations.  Make_HandleUse() no longer expands
the added children for transformation nodes, preventing triple
expansion and allowing the Suff module to properly postpone their
expansion until proper values are set for the local variables.

Directory prefix is no longer removed from $(.PREFIX) if the target
is found via directory search.

The last rule defined is now used instead of the first one (POSIX
requirement) in case a rule is defined multiple times.  Everything
defined in the first instance is undone, but things added "globally"
are honored.  To implement this, each node tracks attribute bits
which have been set by special targets (global) instead of special
sources (local).  They also track dependencies that were added by
a rule with commands (local) instead of rule with no commands (global).

New attribute, OP_FROM_SYS_MK is introduced.  It is set on all targets
found in system makefiles so that they are not eligible to become
the main target.  We cannot just set OP_NOTMAIN because it is one of
the attributes inherited from transformation and .USE rules and would
make any eligible target that uses a built-in inference rule ineligible.

The $(.IMPSRC) local variable now works like in gmake: it is set to
the first prerequisite for explicit rules.  For implicit rules it
is still the implied source.

The manual page is improved regarding the fixed features.  Test cases
for the fixed problems are added.

Other improvements in the Suff module include:
  - better debug messages for transformation rule search (length of
    the chain is now visualized by indentation)
  - Suff structures are created, destroyed and moved around by a set
    of maintenance functions so their reference counts are easier
    to track (this also gets rid of a lot of code duplication)
  - some unreasonably long functions were split into smaller ones
  - many local variables had their names changed to describe their
    purpose instead of their type

Revision 1.65 / (download) - annotate - [select for diffs], Thu Aug 30 21:17:05 2012 UTC (2 years ago) by sjg
Branch: MAIN
CVS Tags: yamt-pagecache-base9, yamt-pagecache-base8, yamt-pagecache-base7, yamt-pagecache-base6, tls-maxphys-base, tls-maxphys, 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-base, netbsd-7, dholland-make-base, agc-symver-base, agc-symver
Changes since 1.64: +2 -1 lines
Diff to previous 1.64 (colored)

Add a knob to control whether -V fully expands a plain variable by default.
The default retains the traditional NetBSD behavior, but the knob
can be set so that FreeBSD can retain their expected behavior.
This is a compromise to be sure.

Add a debug flag -dV to override the above, so that regardless of
the knob setting, the raw value of a variable can be easily seen.

Revision 1.64 / (download) - annotate - [select for diffs], Tue Jun 12 19:21:51 2012 UTC (2 years, 2 months ago) by joerg
Branch: MAIN
Changes since 1.63: +7 -15 lines
Diff to previous 1.63 (colored)

Replace __dead, __unused and the various printf format attributes
with versions prefixed by MAKE_ATTR_* to avoid modifying the
implementation namespace. Make sure they are available in all places
using nonints.h to fix bootstrap on Linux.

Revision 1.63 / (download) - annotate - [select for diffs], Fri Sep 16 15:38:04 2011 UTC (2 years, 11 months ago) by joerg
Branch: MAIN
CVS Tags: yamt-pagecache-base5, yamt-pagecache-base4, yamt-pagecache-base3, yamt-pagecache-base2, yamt-pagecache-base, 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-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-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
Branch point for: yamt-pagecache
Changes since 1.62: +2 -2 lines
Diff to previous 1.62 (colored)

Use __dead consistently. If it doesn't exist, define it away.

Revision 1.62 / (download) - annotate - [select for diffs], Sat Dec 25 04:57:07 2010 UTC (3 years, 8 months ago) by dholland
Branch: MAIN
CVS Tags: matt-mips64-premerge-20101231, cherry-xenmp-base, cherry-xenmp, bouyer-quota2-nbase, bouyer-quota2-base, bouyer-quota2
Changes since 1.61: +2 -2 lines
Diff to previous 1.61 (colored)

Begin cleanup of the make parser: separate out the logic for reading files
from the parsing goo. This will now use mmap for reading if it works and
fall back to read only for pipes and such. Step 1 of a cleanup program
proposed without objection on tech-toolchain.

Revision 1.61 / (download) - annotate - [select for diffs], Thu Dec 9 22:30:17 2010 UTC (3 years, 8 months ago) by sjg
Branch: MAIN
Changes since 1.60: +2 -1 lines
Diff to previous 1.60 (colored)

meta_oodate(): we should track 'latestdir' on a per process basis.
Also, only consider target out of date if a not-found file is outside
'CWD'.  Ignore anything in "/tmp/" or tmpdir.

Revision 1.60 / (download) - annotate - [select for diffs], Sat Aug 7 06:44:08 2010 UTC (4 years ago) by sjg
Branch: MAIN
Changes since 1.59: +4 -1 lines
Diff to previous 1.59 (colored)

wait[pid]() is called in several places.
If we encounter an error and run the .ERROR target, we may
reap a pid which jobs is waiting for.  Ensure that we
cleanup so that make isn't left waiting for an already
deceased child.

Revision 1.59 / (download) - annotate - [select for diffs], Thu Jun 3 15:40:16 2010 UTC (4 years, 2 months ago) by sjg
Branch: MAIN
Changes since 1.58: +4 -1 lines
Diff to previous 1.58 (colored)

We have required sigaction() for quite a while.
Use bmake_signal() - a wrapper around sigaction()
rather than signal() to ensure that signals are handled
consistently.

Revision 1.58 / (download) - annotate - [select for diffs], Wed Apr 7 00:11:27 2010 UTC (4 years, 4 months ago) by sjg
Branch: MAIN
Changes since 1.57: +2 -1 lines
Diff to previous 1.57 (colored)

Add:

.error "message"
.warning "message"
	based on FreeBSD implementation.
	add .info while were at it.

.ERROR:	a target to run on error.
	We pass the failing GNode to PrintOnError so it can set
	.ERROR_TARGET.

.MAKE.MAKEFILE_PREFERENCE
	As a means to control make's list of prefered makefile names.
	(Default: "makefile Makefile")

.MAKE.DEPENDFILE
	Names the file to read dependencies from
	(Default ".depend")

.MAKE.MODE
	Processed after all makefiles are read.
	Can put make into "compat" mode (more to come).

Fix:

compat.c: Error code should not be sent to debug_file.
Make_DoAllVar: use DONE_ALLSRC to avoid processing a node multiple times.
ReadMakefile: we can simply use doing_depend to control setting MAKEFILE.

Revision 1.57 / (download) - annotate - [select for diffs], Thu Nov 19 00:30:24 2009 UTC (4 years, 9 months ago) by sjg
Branch: MAIN
CVS Tags: matt-premerge-20091211
Changes since 1.56: +2 -1 lines
Diff to previous 1.56 (colored)

Add .unexport - the exact opposite of .export
and .unexport-env which unexport's all previously .export'd globals
as well as clearing environ[].
Allow's sys.mk near total controll.

Reviewed by: apb

Revision 1.56 / (download) - annotate - [select for diffs], Wed Jan 28 21:38:13 2009 UTC (5 years, 7 months ago) by dsl
Branch: MAIN
CVS Tags: jym-xensuspend-nbase, jym-xensuspend-base, jym-xensuspend
Changes since 1.55: +3 -2 lines
Diff to previous 1.55 (colored)

Allow for () in the argument to .ifdef et al.
Save/restore current values of global data across expression evaluation
to give ${foo:? ...} a change of working inside another .if.

Revision 1.55 / (download) - annotate - [select for diffs], Sat Jan 24 11:59:39 2009 UTC (5 years, 7 months ago) by dsl
Branch: MAIN
Changes since 1.54: +1 -13 lines
Diff to previous 1.54 (colored)

Move the bmake_malloc() functions into their own .c and .h files.
Include instead of make.h in a few places.

Revision 1.54 / (download) - annotate - [select for diffs], Fri Jan 23 21:26:30 2009 UTC (5 years, 7 months ago) by dsl
Branch: MAIN
Changes since 1.53: +7 -7 lines
Diff to previous 1.53 (colored)

Change 'ClientData' to 'void *' so that relevant parameters can
be made 'const void *'.

Revision 1.53 / (download) - annotate - [select for diffs], Sat Jan 17 13:29:37 2009 UTC (5 years, 7 months ago) by dsl
Branch: MAIN
Changes since 1.52: +2 -2 lines
Diff to previous 1.52 (colored)

Change 'Buffer' so that it is the actual struct, not a pointer to it.
Saves having to malloc/free a fixed size structure.
Buf_Init() now takes ptr to Buffer to initialiase.
Change Buf_Destroy() to return ptr to string when not freed.
Remove large number of casts to (Byte) and (Byte *) - 'Byte' is 'char' here.
Buf_AddByte[s] guarantees that the data is 0 termininated, so never add '\0'.
Keep 'count' not 'left' and 'inPtr', code is simplier with only one update.
Fix fallou, no functional change.

Revision 1.52 / (download) - annotate - [select for diffs], Tue Jan 13 18:22:34 2009 UTC (5 years, 7 months ago) by dsl
Branch: MAIN
Changes since 1.51: +2 -2 lines
Diff to previous 1.51 (colored)

Sprinkle a const. (arg of Main_ParseArgLine())

Revision 1.51 / (download) - annotate - [select for diffs], Sun Jan 11 15:50:06 2009 UTC (5 years, 7 months ago) by dsl
Branch: MAIN
Changes since 1.50: +2 -2 lines
Diff to previous 1.50 (colored)

Instead of stashing the body of every iteration of a .for loop, pass
Parse_SetInput() the name of a function to get the loop data blocks.
This should only be a change to the program logic.

Revision 1.50 / (download) - annotate - [select for diffs], Sat Nov 29 17:50:11 2008 UTC (5 years, 9 months ago) by dsl
Branch: MAIN
Changes since 1.49: +2 -1 lines
Diff to previous 1.49 (colored)

Split For_Eval() into two functions.
For_Eval() is now only called for the first line of a .for.
For_Accum() is called for the subsequent lines.
Stops any problems with forLevel being left invalid after an error.
Use a return value of -1 from For_Eval() to mean 'skip input line' to stop
a .for line with a syntax error being reparsed by make.

Revision 1.49 / (download) - annotate - [select for diffs], Mon Oct 6 22:09:21 2008 UTC (5 years, 10 months ago) by joerg
Branch: MAIN
CVS Tags: netbsd-5-base, netbsd-5-2-RELEASE, netbsd-5-2-RC1, netbsd-5-2-2-RELEASE, netbsd-5-2-1-RELEASE, netbsd-5-2, netbsd-5-1-RELEASE, netbsd-5-1-RC4, netbsd-5-1-RC3, netbsd-5-1-RC2, netbsd-5-1-RC1, 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, netbsd-5, matt-nb5-pq3-base, matt-nb5-pq3, 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
Changes since 1.48: +10 -8 lines
Diff to previous 1.48 (colored)

Don't use emalloc and friends directly, but call them consistently
bmake_malloc and friends. Implement them via macros for the native case
and provide fallback implementations otherwise. Avoid polluting the
namespace by not defining enomem globally. Don't bother to provide
strdup and strndup, they were only used for the estrdup and estrndup
comapt code.

This addresses the presence of emalloc in system libraries on A/UX and
resulted strange issues as reported by Timothy E. Larson.

Revision 1.48 / (download) - annotate - [select for diffs], Fri Feb 15 21:29:50 2008 UTC (6 years, 6 months ago) by christos
Branch: MAIN
CVS Tags: yamt-pf42-baseX, yamt-pf42-base4, yamt-pf42-base3, yamt-pf42-base2, yamt-pf42-base, yamt-pf42, wrstuden-revivesa-base-3, wrstuden-revivesa-base-2, wrstuden-revivesa-base-1, wrstuden-revivesa-base, wrstuden-revivesa, mjf-devfs2-base, mjf-devfs2, matt-armv6-nbase, keiichi-mipv6-nbase, keiichi-mipv6-base, keiichi-mipv6, hpcarm-cleanup-nbase, hpcarm-cleanup-base
Changes since 1.47: +5 -5 lines
Diff to previous 1.47 (colored)

back all changes out until I fix it properly.

Revision 1.47 / (download) - annotate - [select for diffs], Thu Feb 14 22:11:20 2008 UTC (6 years, 6 months ago) by christos
Branch: MAIN
CVS Tags: christos-broken
Changes since 1.46: +6 -6 lines
Diff to previous 1.46 (colored)

- use pid_t/size_t as appropriate instead of int.
- use %ld to print pids.
- fix a bit of lint.
- WARNS=4

Revision 1.46 / (download) - annotate - [select for diffs], Mon Oct 15 01:07:34 2007 UTC (6 years, 10 months ago) by sjg
Branch: MAIN
CVS Tags: matt-armv6-base, cube-autoconf-base, cube-autoconf
Changes since 1.45: +2 -1 lines
Diff to previous 1.45 (colored)

If we don't have emalloc, we won't have strndup either.
Allows building current make on 2.0.

Revision 1.45 / (download) - annotate - [select for diffs], Sat Oct 13 16:16:41 2007 UTC (6 years, 10 months ago) by apb
Branch: MAIN
Changes since 1.44: +2 -1 lines
Diff to previous 1.44 (colored)

* Convert all uses of strdup() to estrdup();
* Use estrndup() in a few cases where it simplifies the code;
* Provide compatibility definitions of strndup and estrndup;

Revision 1.44 / (download) - annotate - [select for diffs], Fri Oct 5 15:27:45 2007 UTC (6 years, 10 months ago) by sjg
Branch: MAIN
Changes since 1.43: +3 -1 lines
Diff to previous 1.43 (colored)

Add the ability to .export variables to the environment.

Revision 1.43 / (download) - annotate - [select for diffs], Sun Feb 4 19:23:49 2007 UTC (7 years, 6 months ago) by dsl
Branch: MAIN
CVS Tags: matt-mips64-base, matt-mips64, hpcarm-cleanup
Branch point for: matt-armv6
Changes since 1.42: +3 -2 lines
Diff to previous 1.42 (colored)

Add code to ensure that .if/.endif are correctly nested with .for/.endfor
and also include files don't have mismatched .if/.endif
It has been suggested that make used to have this test, but I can't
remember removing any code that might have performed it.

Revision 1.42 / (download) - annotate - [select for diffs], Sat Dec 16 08:59:29 2006 UTC (7 years, 8 months ago) by dsl
Branch: MAIN
Changes since 1.41: +3 -3 lines
Diff to previous 1.41 (colored)

Use open/read/close instead of stdio for makefiles.
Commons up the code for reading files and buffers, and allows a further
change where we don't copy the data out of the buffer when generating 'lines.
This will speed up makefile parsing (esp .if clauses).

Revision 1.41 / (download) - annotate - [select for diffs], Fri Nov 17 22:07:39 2006 UTC (7 years, 9 months ago) by dsl
Branch: MAIN
CVS Tags: netbsd-4-base
Branch point for: wrstuden-fixsa, netbsd-4
Changes since 1.40: +2 -1 lines
Diff to previous 1.40 (colored)

A rather large rototil in the way the parallel make code schedules jobs.
This gives a considerable speedup in the processing of .WAIT and .ORDER.
Both .WAIT and .ORDER stop both the commands of the node, and its dependant
nodes being built until the LH nodes are complete.
.WAIT only applies to the dependency line on which it appears, whereas
.ORDER applies globally between the two nodes.
In both cases dependant nodes can be built because other targets need them.
make now processes the target list left to right, scheduling child nodes
as they are needed to make other nodes (instead of attempting to generate
a bottom-up dependency graph at the start).  This means that 'make -j1'
will tend to build in the same order as a non-parallel make.
Note that:
    all: x y
    x: a .WAIT b
    y: b .WAIT a
does not generate a dependency loop.
But
    x: y
    .ORDER y x
does (unless something elswhere causes 'y' to be built).

Revision 1.40 / (download) - annotate - [select for diffs], Wed Nov 1 23:48:20 2006 UTC (7 years, 10 months ago) by sjg
Branch: MAIN
Changes since 1.39: +2 -2 lines
Diff to previous 1.39 (colored)

Use of libutil to provide emalloc et al, should be predicated on
a native NetBSD build using TOOLDIR etc.
Otherwise use the local versions.

Reviewed by: christos

Revision 1.39 / (download) - annotate - [select for diffs], Sat Aug 26 22:19:03 2006 UTC (8 years ago) by christos
Branch: MAIN
Changes since 1.38: +2 -2 lines
Diff to previous 1.38 (colored)

Fix non-native build.

Revision 1.38 / (download) - annotate - [select for diffs], Sat Aug 26 22:13:00 2006 UTC (8 years ago) by christos
Branch: MAIN
Changes since 1.37: +2 -2 lines
Diff to previous 1.37 (colored)

Don't include <util.h> if we are not NetBSD. Other OS's don't have it.

Revision 1.37 / (download) - annotate - [select for diffs], Sat Aug 26 18:17:42 2006 UTC (8 years ago) by christos
Branch: MAIN
Changes since 1.36: +5 -1 lines
Diff to previous 1.36 (colored)

More programs using efun.

Revision 1.36 / (download) - annotate - [select for diffs], Fri Mar 31 21:58:08 2006 UTC (8 years, 5 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.35: +2 -2 lines
Diff to previous 1.35 (colored)

Add some coverity allocation comments, and change the way the allocator
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.

Revision 1.35 / (download) - annotate - [select for diffs], Sat Feb 11 18:37:36 2006 UTC (8 years, 6 months ago) by dsl
Branch: MAIN
Changes since 1.34: +2 -1 lines
Diff to previous 1.34 (colored)

Debug trace all the targets we are actually intending making.
De-optimise the getting of a job token so we don't re-order the job
list when there are no tokens.
This might have helped etc/Makefile, but isn't enough.

Revision 1.34 / (download) - annotate - [select for diffs], Sun May 8 00:38:47 2005 UTC (9 years, 3 months ago) by christos
Branch: MAIN
Changes since 1.33: +3 -2 lines
Diff to previous 1.33 (colored)

Now that dependencies in .BEGIN, .END, and .INTERRUPT work, allow them.

Revision 1.33 / (download) - annotate - [select for diffs], Wed Dec 29 00:43:02 2004 UTC (9 years, 8 months ago) by christos
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
Changes since 1.32: +2 -1 lines
Diff to previous 1.32 (colored)

Dir_MTime did not search for a file using the correct parh; i.e. it was
ignoring suffix-specific path search. So if a node was marked .MADE,
then suffix rules would not be applied to it, and we would look for
the file only in the default path, not the suffix-specific path.

XXX: Now that we looked for the suffix, we can save it in the GNode,
but we don't do this yet.

Revision 1.32 / (download) - annotate - [select for diffs], Fri May 7 08:12:16 2004 UTC (10 years, 3 months ago) by sjg
Branch: MAIN
Changes since 1.31: +2 -1 lines
Diff to previous 1.31 (colored)

Remove use of sh -e when running in compat mode.
Its not posix compliant and serves very little purpose.
With this change compat and jobs modes are consistent wrt how
they treat each line of a script.

Add support for the '+' command line prefix as required by posix.
Lines prefixed with '+' are executed even when -n is given.
[Actually posix says they should also be done for -q and -t]

PR:
Reviewed by: jmc

Revision 1.31 / (download) - annotate - [select for diffs], Fri May 7 00:04:40 2004 UTC (10 years, 3 months ago) by ross
Branch: MAIN
Changes since 1.30: +2 -2 lines
Diff to previous 1.30 (colored)

Simplify build, no functional changes.

Instead of adding MAKE_BOOTSTRAP for hosted environments, i.e., when
you want things simple, instead add MAKE_NATIVE to get those hugely
important features like __RCSID().

It's now possible to build make on some hosts with: cc *.c */*.c

Revision 1.30 / (download) - annotate - [select for diffs], Sat Mar 6 03:57:07 2004 UTC (10 years, 5 months ago) by enami
Branch: MAIN
CVS Tags: netbsd-2-0-base
Branch point for: netbsd-2-0
Changes since 1.29: +3 -3 lines
Diff to previous 1.29 (colored)

Print useful line number on error while executing .for directive.

Revision 1.29 / (download) - annotate - [select for diffs], Thu Aug 7 11:14:55 2003 UTC (11 years ago) by agc
Branch: MAIN
Changes since 1.28: +33 -1 lines
Diff to previous 1.28 (colored)

Move UCB-licensed code from 4-clause to 3-clause licence.

Patches provided by Joel Baker in PR 22365, verified by myself.

Revision 1.28 / (download) - annotate - [select for diffs], Mon Jul 14 18:19:13 2003 UTC (11 years, 1 month ago) by christos
Branch: MAIN
Changes since 1.27: +23 -23 lines
Diff to previous 1.27 (colored)

Pass WARNS=3

Revision 1.27 / (download) - annotate - [select for diffs], Sat Jun 15 18:24:57 2002 UTC (12 years, 2 months ago) by wiz
Branch: MAIN
CVS Tags: fvdl_fs64_base
Changes since 1.26: +89 -91 lines
Diff to previous 1.26 (colored)

Remove !__STDC__ stuff, de-__P(), ANSIfy, and de-register.

Revision 1.26 / (download) - annotate - [select for diffs], Thu Mar 14 16:08:39 2002 UTC (12 years, 5 months ago) by pk
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
Changes since 1.25: +2 -2 lines
Diff to previous 1.25 (colored)

JobExec(): don't use Punt() in the child; it can't possibly DTRT, and will also
mess up the parents variables.

Instead, use execError() for all error paths in the child code.

Revision 1.25 / (download) - annotate - [select for diffs], Fri Jan 18 03:36:00 2002 UTC (12 years, 7 months ago) by thorpej
Branch: MAIN
Changes since 1.24: +2 -1 lines
Diff to previous 1.24 (colored)

Before we #define __attribute__ away, #undef it.

Revision 1.24 / (download) - annotate - [select for diffs], Fri Jan 18 03:34:19 2002 UTC (12 years, 7 months ago) by thorpej
Branch: MAIN
Changes since 1.23: +2 -2 lines
Diff to previous 1.23 (colored)

Make sure to eat __attribute__'s argument, too.

Revision 1.23 / (download) - annotate - [select for diffs], Thu Jan 17 19:15:02 2002 UTC (12 years, 7 months ago) by eeh
Branch: MAIN
Changes since 1.22: +5 -1 lines
Diff to previous 1.22 (colored)

__attribute__() if we're doing MAKE_BOOTSTRAP is a no-no.

Revision 1.22 / (download) - annotate - [select for diffs], Tue Jun 12 23:36:18 2001 UTC (13 years, 2 months ago) by sjg
Branch: MAIN
Changes since 1.21: +2 -2 lines
Diff to previous 1.21 (colored)

Add 4th arg (flags) to Var_Set so that VarLoopExpand can tell it not
to export interator variables when using context VAR_CMD.

Reviewed: christos

Revision 1.21 / (download) - annotate - [select for diffs], Tue May 29 17:37:52 2001 UTC (13 years, 3 months ago) by christos
Branch: MAIN
Changes since 1.20: +2 -1 lines
Diff to previous 1.20 (colored)

better error messages on exec* failures. From Simon Burge.

Revision 1.20 / (download) - annotate - [select for diffs], Sun Dec 3 02:18:14 2000 UTC (13 years, 9 months ago) by christos
Branch: MAIN
Changes since 1.19: +9 -5 lines
Diff to previous 1.19 (colored)

add noreturn attribute to the functions that need it.

Revision 1.19 / (download) - annotate - [select for diffs], Wed Oct 11 14:46:12 2000 UTC (13 years, 10 months ago) by is
Branch: MAIN
Changes since 1.18: +6 -5 lines
Diff to previous 1.18 (colored)

More format string cleanup by sommerfeld.

Revision 1.18 / (download) - annotate - [select for diffs], Wed Sep 15 10:47:44 1999 UTC (14 years, 11 months ago) by mycroft
Branch: MAIN
CVS Tags: wrstuden-devbsize-base, wrstuden-devbsize-19991221, wrstuden-devbsize, netbsd-1-5-base, netbsd-1-5-ALPHA2, minoura-xpg4dl-base, minoura-xpg4dl, comdex-fall-1999-base, comdex-fall-1999
Branch point for: netbsd-1-5
Changes since 1.17: +2 -1 lines
Diff to previous 1.17 (colored)

Rework how :: dependencies are handled.
Build a list of `cohorts' as before, but do *not* link each one into all the
parent nodes; instead, copy the `cohort' lists into the stream of targets to
be built inside Make_ExpandUse().  Also do the attribute propagation as a
separate pass after parsing.
This eliminates several O(n^2) algorithms.

Revision 1.17 / (download) - annotate - [select for diffs], Fri Sep 18 20:35:11 1998 UTC (15 years, 11 months ago) by christos
Branch: MAIN
CVS Tags: netbsd-1-4-base, netbsd-1-4-RELEASE, netbsd-1-4-PATCH002, netbsd-1-4-PATCH001
Branch point for: netbsd-1-4
Changes since 1.16: +2 -2 lines
Diff to previous 1.16 (colored)

Fix conditional variable expression parsing (reported by cgd)

Revision 1.16 / (download) - annotate - [select for diffs], Wed Apr 1 14:18:10 1998 UTC (16 years, 5 months ago) by christos
Branch: MAIN
Changes since 1.15: +2 -1 lines
Diff to previous 1.15 (colored)

Add conditional variable evaluation from Alistair Crooks.

Revision 1.15 / (download) - annotate - [select for diffs], Thu Mar 26 19:20:37 1998 UTC (16 years, 5 months ago) by christos
Branch: MAIN
Changes since 1.14: +2 -4 lines
Diff to previous 1.14 (colored)

PR/5210: Hauke Fath: make core dumps with .SHELL
Unfortunately this revealed a deeper problem with the brk_string code.
To fix it:
	- remove sharing of the buffer between brk_string invocations
	- change the semantics of brk_string so that the argument array
	  starts with 0, and return the buffer where the strings are
	  stored

Revision 1.14 / (download) - annotate - [select for diffs], Tue Sep 23 21:15:09 1997 UTC (16 years, 11 months ago) by fair
Branch: MAIN
CVS Tags: netbsd-1-3-base, netbsd-1-3-RELEASE, netbsd-1-3-PATCH001, netbsd-1-3-BETA
Branch point for: netbsd-1-3
Changes since 1.13: +3 -3 lines
Diff to previous 1.13 (colored)

fix some ints that should be "time_t" per PR#4139

Revision 1.13 / (download) - annotate - [select for diffs], Fri May 2 14:24:29 1997 UTC (17 years, 4 months ago) by christos
Branch: MAIN
Changes since 1.12: +3 -2 lines
Diff to previous 1.12 (colored)

- Target searching addition:
	Make used to only use the search path for nodes that were pure
	sources (not targets of other sources). This has been corrected
	and now gnu-autoconf generated Makefiles work in directories other
	than the source one.

- Suffix transformation rescanning:
	Suffix transformations (.c.o:; cc ...) were only recognized in
	the past when both suffixes were members of the suffix list.
	Thus a sequence like:
		.z.b:
			echo ${.TARGET}
		.SUFFIXES: .z
	would cause .z.b: to be inserted as a regular target (and the main
	target in this case). Other make programs always add rules that
	start with a period in the transformation list and never consider
	them as targets. We cannot do that (consider .depend files) so we
	resort to scanning the list of the current targets every time a
	suffix gets added, and we mutate existing targets that are now
	valid transformation rules into transformation rules. If the
	transformed target was also the main target, we set the main target
	to be the next target in the targets list.

Revision 1.12 / (download) - annotate - [select for diffs], Wed Nov 6 17:59:19 1996 UTC (17 years, 9 months ago) by christos
Branch: MAIN
Changes since 1.11: +5 -4 lines
Diff to previous 1.11 (colored)

- Merge in FreeBSD and Lite2 changes.
- Fix bug where a non-archive target with a .a suffix would always
  be considered to be out of date, since it does not have a TOC.

Revision 1.11 / (download) - annotate - [select for diffs], Tue Aug 13 16:42:11 1996 UTC (18 years ago) by christos
Branch: MAIN
Changes since 1.10: +2 -1 lines
Diff to previous 1.10 (colored)

Add estrdup(), a checked version of strdup and use it.

Revision 1.10 / (download) - annotate - [select for diffs], Tue May 28 23:34:44 1996 UTC (18 years, 3 months ago) by christos
Branch: MAIN
Changes since 1.9: +2 -1 lines
Diff to previous 1.9 (colored)

- Move -D flags from Makefile to config.h and explain what they do. Add
  -Wall -Wno-unused to CFLAGS. Add new define SYSVVARSUB to enable SysV
  style variable substitutions and enable them.
- Add SunOS style command substitutions via SUNSHCMD
- Fix core dump with '{variable = value'

Revision 1.9 / (download) - annotate - [select for diffs], Sun Mar 31 21:30:07 1996 UTC (18 years, 5 months ago) by christos
Branch: MAIN
CVS Tags: netbsd-1-2-base, netbsd-1-2-RELEASE, netbsd-1-2-BETA
Branch point for: netbsd-1-2
Changes since 1.8: +3 -3 lines
Diff to previous 1.8 (colored)

make emalloc and erealloc return void *; closes PR/2276

Revision 1.8 / (download) - annotate - [select for diffs], Fri Mar 29 02:17:30 1996 UTC (18 years, 5 months ago) by jtc
Branch: MAIN
Changes since 1.7: +2 -1 lines
Diff to previous 1.7 (colored)

Added erealloc() function that calls enomem() if the allocation fails
(this is like the existing emalloc() function).  Changed all realloc()
calls to erealloc().

Revision 1.7 / (download) - annotate - [select for diffs], Thu Nov 2 23:55:00 1995 UTC (18 years, 10 months ago) by christos
Branch: MAIN
Changes since 1.6: +2 -1 lines
Diff to previous 1.6 (colored)

Minor:
    - ${.PREFIX} should never contain a full pathname
    - Fixed gcc -Wall warnings
Major:
    - compatMake is now FALSE. This means that we are now running in
      full pmake mode:
	  * rules on dependency lines can be executed in parallel and or
	    out of sequence:

	    foo: bar baz

	    can fire the rule for baz before the rule for bar is fired.
	    To enforce bar to be fired before baz, another rule needs to be
	    added. [bar: baz]
	  * adjacent shell commands in a target are now executed by a single
	    invocation of the shell, not one invocation of the shell per line
      (compatMake can be turned off using the -B flag)
    - The -j flag now works... I.e. make -j 4 will fork up to four jobs in
      parallel when it can. The target name is printed before each burst
      of output caused by the target execution as '--- target ---', when j > 1
    - I have changed all the Makefiles so that they work with make -j N, and
      I have tested the whole netbsd by:
	  'make -j 4 cleandir; make -j 4 depend; make -j 4; make -j 4 install'
    - I have not compiled or tested this version of make with -DREMOTE.

Revision 1.6 / (download) - annotate - [select for diffs], Wed Jun 14 15:19:45 1995 UTC (19 years, 2 months ago) by christos
Branch: MAIN
CVS Tags: netbsd-1-1-base, netbsd-1-1-RELEASE, netbsd-1-1-PATCH001, netbsd-1-1
Changes since 1.5: +2 -1 lines
Diff to previous 1.5 (colored)

- $NetBSD$ rcsids
- Fixed so that .[A-Z]* targets that do not match keywords are ignored as
  Posix mandates
- Added .PHONY target keyword

Revision 1.5 / (download) - annotate - [select for diffs], Thu Jun 16 18:50:16 1994 UTC (20 years, 2 months ago) by jtc
Branch: MAIN
CVS Tags: netbsd-1-0-base, netbsd-1-0-RELEASE, netbsd-1-0-PATCH1, netbsd-1-0-PATCH06, netbsd-1-0-PATCH05, netbsd-1-0-PATCH04, netbsd-1-0-PATCH03, netbsd-1-0-PATCH02, netbsd-1-0-PATCH0, netbsd-1-0
Changes since 1.4: +2 -2 lines
Diff to previous 1.4 (colored)

Christos' fix for quoting variable extraction properly.

Revision 1.4 / (download) - annotate - [select for diffs], Mon Jun 6 22:45:37 1994 UTC (20 years, 3 months ago) by jtc
Branch: MAIN
Changes since 1.3: +13 -5 lines
Diff to previous 1.3 (colored)

Fixes from Christos Zoulas, who used purify, objectcenter and testcenter
to find memory leaks and illegal memory accesses.

Revision 1.3 / (download) - annotate - [select for diffs], Sat Mar 5 00:35:02 1994 UTC (20 years, 6 months ago) by cgd
Branch: MAIN
Changes since 1.2: +92 -88 lines
Diff to previous 1.2 (colored)

fixes/improvements from Christos Zoulas <christos@deshaw.com>.

Revision 1.2 / (download) - annotate - [select for diffs], Sun Aug 1 18:11:59 1993 UTC (21 years, 1 month ago) by mycroft
Branch: MAIN
Changes since 1.1: +2 -1 lines
Diff to previous 1.1 (colored)

Add RCS identifiers.

Revision 1.1 / (download) - annotate - [select for diffs], Sun Mar 21 09:45:37 1993 UTC (21 years, 5 months ago) by cgd
Branch: MAIN

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>