1 2005-04-07 Paul D. Smith <psmith@gnu.org>
3 * main.c (main) [WINDOWS32]: Export PATH to sub-shells, not Path.
4 * variable.c (sync_Path_environment): Ditto.
5 Patch by Alessandro Vesely. Fixes Savannah bug #12209.
7 * main.c (main): Define the .FEATURES variable.
8 * NEWS: Announce .FEATURES.
9 * doc/make.texi (Special Variables): Document .FEATURES.
11 * remake.c (check_dep): If a file is .PHONY, update it even if
12 it's marked intermediate. Fixes Savannah bug #12331.
14 2005-03-15 Boris Kolpackov <boris@kolpackov.net>
16 * file.c (expand_deps): Factor out the second expansion and
17 prerequisite line parsing logic from snap_deps().
19 * file.c (snap_deps): Use expand_deps(). Expand and parse
20 prerequisites of the .SUFFIXES special target first. Fixes
23 2005-03-13 Paul D. Smith <psmith@gnu.org>
25 * main.c (main) [MSDOS]: Export SHELL in MSDOS. Requested by Eli
28 2005-03-11 Paul D. Smith <psmith@gnu.org>
30 * signame.c (strsignal): HAVE_DECL_SYS_SIGLIST is 0 when not
31 available, not undefined (from Earnie Boyd).
33 2005-03-10 Boris Kolpackov <boris@kolpackov.net>
35 * implicit.c (pattern_search): Mark an intermediate target as
36 precious if it happened to be a prerequisite of some (other)
37 target. Fixes Savannah bug #12267.
39 2005-03-09 Paul D. Smith <psmith@gnu.org>
41 * read.c (eval_makefile): Add alloca(0).
44 2005-03-09 Boris Kolpackov <boris@kolpackov.net>
46 * main.c (main): Use o_file instead of o_default when defining
47 the .DEFAULT_TARGET special variable.
48 * read.c (eval): Use define_variable_global() instead of
49 define_variable() when setting new value for the .DEFAULT_TARGET
50 special variable. Fixes Savannah bug #12266.
52 2005-03-04 Boris Kolpackov <boris@kolpackov.net>
54 * imlicit.c (pattern_search): Mark files for which an implicit
55 rule has been found as targets. Fixes Savannah bug #12202.
57 2005-03-04 Paul D. Smith <psmith@gnu.org>
60 * doc/make.texi (Automatic Variables): Document $|.
62 2005-03-03 Boris Kolpackov <boris@kolpackov.net>
64 * read.c (record_files): Instead of substituting % with
65 actual stem value in dependency list replace it with $*.
66 This fixes stem triple expansion bug.
68 * implicit.c (pattern_search): Copy stem to a separate
69 buffer and make it a properly terminated string. Assign
70 this buffer instead of STEM (which is not terminated) to
71 f->stem. Instead of substituting % with actual stem value
72 in dependency list replace it with $*. This fixes stem
75 2005-03-01 Paul D. Smith <psmith@gnu.org>
77 * commands.c (fatal_error_signal) [WINDOWS32]: Don't call kill()
78 on Windows, as it takes a handle not a pid. Just exit.
79 Fix from patch #3679, provided by Alessandro Vesely.
81 * configure.in: Update check for sys_siglist[] from autoconf manual.
82 * signame.c (strsignal): Update to use the new autoconf macro.
84 2005-03-01 Boris Kolpackov <boris@kolpackov.net>
86 * read.c (record_files): Add a check for the list of prerequisites
87 of a static pattern rule being empty. Fixes Savannah bug #12180.
89 2005-02-28 Paul D. Smith <psmith@gnu.org>
91 * doc/make.texi (Text Functions): Update docs to allow the end
92 ordinal for $(wordlist ...) to be 0.
93 * function.c (func_wordlist): Fail if the start ordinal for
94 $(wordlist ...) is <1. Matches documentation.
95 Resolves Savannah support request #103195.
97 * remake.c (update_goal_chain): Fix logic for stopping in -q:
98 previously we were stopping when !-q, exactly the opposite. This
99 has been wrong since version 1.34, in 1994!
100 (update_file): If we got an error don't break out to run more
101 double-colon rules: just return immediately.
102 Fixes Savannah bug #7144.
104 2005-02-27 Paul D. Smith <psmith@gnu.org>
106 * misc.c (end_of_token): Make argument const.
107 * make.h: Update prototype.
109 * function.c (abspath, func_realpath, func_abspath): Use
110 PATH_VAR() and GET_PATH_MAX instead of PATH_MAX.
111 * dir.c (downcase): Use PATH_VAR() instead of PATH_MAX.
112 * read.c (record_files): Ditto.
113 * variable.c (do_variable_definition): Ditto.
115 * function.c (func_error): Create a new function $(info ...) that
116 simply prints the message to stdout with no extras.
117 (function_table_init): Add new function to the table.
118 * NEWS: Add $(info ...) reference.
119 * doc/make.texi (Make Control Functions): Document it.
121 New feature: if the system supports symbolic links, and the user
122 provides the -L/--check-symlink-time flag, then use the latest
123 mtime between the symlink(s) and the target file.
125 * configure.in (MAKE_SYMLINKS): Check for lstat() and
126 readlink(). If both are available, define MAKE_SYMLINKS.
127 * main.c: New variable: check_symlink_flag.
128 (usage): Add a line for -L/--check-symlink-times to the help string.
129 (switches): Add -L/--check-symlink-times command line argument.
130 (main): If MAKE_SYMLINKS is not defined but the user specified -L,
131 print a warning and disable it again.
132 * make.h: Declare check_symlink_flag.
133 * remake.c (name_mtime): If MAKE_SYMLINKS and check_symlink_flag,
134 if the file is a symlink then check each link in the chain and
135 choose the NEWEST mtime we find as the mtime for the file. The
136 newest mtime might be the file itself!
137 * NEWS: Add information about this new feature.
138 * doc/make.texi (Options Summary): Add -L/--check-symlink-times docs.
140 Avoid core dumps described in Savannah bug # 12124:
142 * file.c: New variable snapped_deps remember whether we've run
145 * filedef.h: Extern it.
146 * read.c (record_files): Check snapped_deps; if it's set then
147 we're trying to eval a new target/prerequisite relationship from
148 within a command script, which we don't support. Fatal.
150 2005-02-28 Boris Kolpackov <boris@kolpackov.net>
152 Implementation of the .DEFAULT_TARGET special variable.
154 * read.c (eval): If necessary, update default_target_name when
156 * read.c (record_files): Update default_target_file if
157 default_target_name has changed.
158 * main.c (default_target_name): Define.
159 * main.c (main): Enter .DEFAULT_TARGET as make variable. If
160 default_target_name is set use default_target_file as a root
162 * filedef.h (default_target_name): Declare.
163 * dep.h (free_dep_chain):
164 * misc.c (free_dep_chain): Change to operate on struct nameseq
165 and change name to free_ns_chain.
166 * file.c (snap_deps): Update to use free_ns_chain.
168 2005-02-27 Boris Kolpackov <boris@kolpackov.net>
170 Implementation of the second expansion in explicit rules,
171 static pattern rules and implicit rules.
173 * read.c (eval): Refrain from chopping up rule's dependencies.
174 Store them in a struct dep as a single dependency line. Remove
175 the code that implements SySV-style automatic variables.
177 * read.c (record_files): Adjust the code that handles static
178 pattern rules to expand all percents instead of only the first
179 one. Reverse the order in which dependencies are stored so that
180 when the second expansion reverses them again they appear in
181 the makefile order (with some exceptions, see comments in
182 the code). Remove the code that implements SySV-style automatic
185 * file.c (snap_deps): Implement the second expansion and chopping
186 of dependency lines for explicit rules.
188 * implicit.c (struct idep): Define an auxiliary data type to hold
189 implicit rule's dependencies after stem substitution and
192 * implicit.c (free_idep_chain): Implement.
194 * implicit.c (get_next_word): Implement helper function for
195 parsing implicit rule's dependency lines into words taking
196 into account variable expansion requests. Used in the stem
199 * implicit.c (pattern_search): Implement the second expansion
200 for implicit rules. Also fixes bug #12091.
202 * commands.h (set_file_variables): Declare.
203 * commands.c (set_file_variables): Remove static specifier.
205 * dep.h (free_dep_chain): Declare.
206 * misc.c (free_dep_chain): Implement.
208 * variable.h (variable_expand_for_file): Declare.
209 * expand.c (variable_expand_for_file): Remove static specifier.
211 * make.h (strip_whitespace): Declare.
212 * function.c (strip_whitespace): Remove static specifier.
214 2005-02-26 Paul D. Smith <psmith@gnu.org>
216 * main.c (main): Check for ferror() when reading makefiles from stdin.
217 Apparently some shells in Windows don't close pipes properly and
220 2005-02-24 Jonathan Grant <jg@jguk.org>
222 * configure.in: Add MinGW configuration options, and extra w32 code
224 * Makefile.am: Add MinGW configuration options, and extra w32 code
226 * main.c: Determine correct program string (after last \ without .exe).
227 * subproc/sub_proc.c: `GetExitCodeProcess' from incompatible pointer
229 * w32/Makefile.am: Import to build win32 lib of sub_proc etc.
230 * subproc/w32err.c: MSVC thread directive not applied to MinGW builds.
231 * tests/run_make_tests.pl, tests/test_driver.pl: MSYS testing
234 2004-04-16 Dmitry V. Levin <ldv@altlinux.org>
236 * function.c (func_shell): When initializing error_prefix, check
237 that reading file name is not null. This fixes long-standing
238 segfault in cases like "make 'a1=$(shell :)' 'a2:=$(a1)'".
240 2005-02-09 Paul D. Smith <psmith@gnu.org>
242 * maintMakefile: Update the CVS download URL to simplify them.
243 Also, the ftp://ftp.gnu.org/GNUinfo site was removed so I'm
244 downloading the .texi files from Savannah now.
246 Fixed these issues reported by Markus Mauhart <qwe123@chello.at>:
248 * main.c (handle_non_switch_argument): Only add variables to
249 command_variables if they're not already there: duplicate settings
250 waste space and can be confusing to read.
252 * w32/include/sub_proc.h: Remove WINDOWS32. It's not needed since
253 this header is never included by non-WINDOWS32 code, and it
254 requires <config.h> to define which isn't always included first.
256 * dir.c (read_dirstream) [MINGW]: Use proper macro names when
257 testing MINGW32 versions.
259 * main.c (log_working_directory): flush stdout to be sure the WD
260 change is printed before any stderr messages show up.
262 2005-02-01 Paul D. Smith <psmith@gnu.org>
264 * maintMakefile (po_repo): Update the GNU translation site URL.
266 2004-12-01 Paul D. Smith <psmith@gnu.org>
268 * main.c (main): Change char* env_shell to struct variable shell_var.
269 * variable.c (target_environment): Use new shell_var.
271 2004-11-30 Paul D. Smith <psmith@gnu.org>
273 * configure.in: The old way we avoided creating build.sh from
274 build.sh.in before build.sh.in exists doesn't work anymore; we
275 have to use raw M4 (thanks to Andreas Schwab <schwab@suse.de> for
276 the help!). This also keeps automake from complaining.
277 * Makefile.am (README): Add a dummy target so automake won't
278 complain that this file doesn't exist when we checkout from CVS.
279 * maintMakefile (.dep_segment): Rewrite this rule since newer
280 versions of automake don't provide DEP_FILES.
282 2004-11-30 Boris Kolpackov <boris@kolpackov.net>
284 Implementation of `realpath' and `abspath' built-in functions.
286 * configure.in: Check for realpath.
287 * function.c (abspath): Return an absolute file name that does
288 not contain any `.' or `..' components, nor repeated `/'.
289 * function.c (func_abspath): For each name call abspath.
290 * function.c (func_realpath): For each name call realpath
291 from libc or delegate to abspath if realpath is not available.
292 * doc/make.texi (Functions for File Names): Document new functions.
293 * doc/make.texi (Quick Reference): Ditto.
295 2004-11-28 Paul D. Smith <psmith@gnu.org>
297 * main.c (main) [WINDOWS32]: Remove any trailing slashes from -C
298 arguments. Fixes bug #10252.
300 Fix for bug #1276: Handle SHELL according to POSIX requirements.
302 * main.c (main): Set SHELL to v_noexport by default. Remember the
303 original environment setting of SHELL in the env_shell variable.
304 * main.h: Export new env_shell variable.
305 * variable.c (target_environment): If we find a v_noexport
306 variable for SHELL, add a SHELL variable with the env_shell value.
307 * doc/make.texi (Quick Reference): Document the POSIX behavior.
308 * doc/make.texi (Variables/Recursion): Ditto.
310 2004-11-28 Paul D. Smith <psmith@gnu.org>
312 * main.c (find_and_set_default_shell) [WINDOWS32]: check for
313 equality of "cmd"/"cmd.exe", not inequality. Fixes bug #11155.
314 Patch by Alessandro Vesely.
316 2004-11-12 Paul D. Smith <psmith@gnu.org>
318 * job.c (child_execute_job) [VMS]: Don't treat "#" as a comment on
319 the command line if it's inside a string.
320 Patch by: Hartmut Becker <Hartmut.Becker@hp.com>
322 2004-10-21 Boris Kolpackov <boris@kolpackov.net>
324 * function.c (func_lastword): New function: return last word
325 from the list of words.
326 * doc/make.texi: Document $(lastword ). Fix broken links in
327 Quick Reference section.
329 2004-10-06 Paul D. Smith <psmith@gnu.org>
331 Apply patch from Alessandro Vesely, provided with bug # 9748.
332 Fix use of tmpnam() to work with Borland C.
334 * job.c (construct_command_argv_internal) [WINDOWS32]: Remove
335 construction of a temporary filename, and call new function
336 create_batch_filename().
337 (create_batch_filename) [WINDOWS32]: New function to create a
340 2004-10-05 Boris Kolpackov <boris@kolpackov.net>
342 * read.c (record_target_var): Expand simple pattern-specific
344 * variable.c (initialize_file_variables): Do not expand simple
345 pattern-specific variable.
347 2004-09-28 Boris Kolpackov <boris@kolpackov.net>
349 * remake.c (update_file_1): When rebuilding makefiles inherit
350 dontcare flag from a target that triggered update.
352 2004-09-27 Boris Kolpackov <boris@kolpackov.net>
354 * variable.c (initialize_file_variables): Mark pattern-specific
355 variable as a per-target and copy export status.
357 2004-09-21 Boris Kolpackov <boris@kolpackov.net>
359 * file.c (snap_deps): Mark .PHONY prerequisites as targets.
361 * implicit.c (pattern_search): When considering an implicit rule's
362 prerequisite check that it is actually a target rather then
363 just an entry in the file hashtable.
365 2004-09-21 Paul D. Smith <psmith@gnu.org>
367 * read.c (readstring): Fix some logic errors in backslash handling.
368 (eval): Remove some unnecessary processing in buffer handling.
369 (record_target_var): Assert that parse_variable_definition() succeeded.
370 Reported by: Markus Mauhart <qwe123@chello.at>.
372 * misc.c: Removed the sindex() function. All instances of this
373 function were trivially replaceable by the standard strstr()
374 function, and that function will always have better (or certainly
375 no worse) performance than the very simple-minded algorithm
376 sindex() used. This can matter with complex makefiles.
377 * make.h: Remove the prototype for sindex().
378 * function.c (subst_expand): Convert sindex() call to strstr().
379 This means we no longer need to track the TLEN value so remove that.
380 (func_findstring): Convert sindex() to strstr().
381 * commands.c (chop_commands): Convert sindex() calls to strstr().
382 Suggested by: Markus Mauhart <qwe123@chello.at>.
384 * main.c (find_and_set_default_shell) [WINDOWS32]: Implement the
385 idea behind Savannah Patch #3144 from david.baird@homemail.com.
386 If SHELL is set to CMD.EXE then assume it's batch-mode and
387 non-unixy. I wrote the code differently from the patch, though,
388 to make it safer. This also resolves bug #9174.
390 2004-09-20 Paul D. Smith <psmith@gnu.org>
392 * expand.c (variable_expand_string): Modify to invoke
393 patsubst_expand() instead of subst_expand(); the latter didn't
394 handle suffix patterns correctly.
395 * function.c (subst_expand): Remove the SUFFIX_ONLY parameter; it
396 was used only from variable_expand_string() and is no longer used
398 (func_subst): Ditto, on call to subst_expand().
399 (patsubst_expand): Require the percent pointers to point to the
400 character after the %, not to the % itself.
401 * read.c (record_files): New call criteria for patsubst_expand().
402 * variable.h: Remove SUFFIX_ONLY from subst_expand() prototype.
403 This is to fix a bug reported by Markus Mauhart <qwe123@chello.at>.
405 2004-09-19 Paul D. Smith <psmith@gnu.org>
407 * function.c (subst_expand): Fix a check in by_word: look for a
408 previous blank if we're beyond the beginning of the string, not
409 the beginning of the word.
410 Bugs reported by Markus Mauhart <qwe123@chello.at>.
412 2004-05-16 Paul D. Smith <psmith@gnu.org>
414 * remake.c (update_goal_chain): Change the argument specifying
415 whether we're rebuilding makefiles to be a global variable,
416 REBUILDING_MAKEFILES.
417 (complain): Extract the code that complains about no rules to make
418 a target into a separate function.
419 (update_file_1): If we tried to rebuild a file during the makefile
420 rebuild phase and it was dontcare, then no message was printed.
421 If we then try to build the same file during the normal build,
422 print a message this time.
423 (remake_file): Don't complain about un-remake-able files when
424 we're rebuilding makefiles.
426 2004-05-11 Paul D. Smith <psmith@gnu.org>
428 * job.c (construct_command_argv_internal): OS/2 patches from
429 Andreas Buening <andreas.buening@nexgo.de>.
431 2004-05-10 Paul D. Smith <psmith@gnu.org>
433 * remake.c (update_file): Don't walk the double-colon chain unless
434 this is a double-colon rule. Fix suggested by Boris Kolpackov
435 <boris@kolpackov.net>.
437 * makefile.vms (CFLAGS): Remove glob/globfree (see readme.vms docs)
438 * readme.vms: New section describing OpenVMS support and issues.
439 * default.c (default_variables): Add support for IA64.
440 * job.c (tryToSetupYAst) [VMS]: On VMS running make in batch mode
441 without some privilege aborts make with the error
442 %SYSTEM-F-NOPRIV. It happens when setting up a handler for
443 pressing Ctrl+Y and the input device is no terminal. The change
444 catches this error and just continues.
446 Patches by Hartmut Becker <Hartmut.Becker@hp.com>
448 2004-04-25 Paul D. Smith <psmith@gnu.org>
450 * commands.c (set_file_variables): Set $< properly in the face of
451 order-only prerequisites.
452 Patch from Boris Kolpackov <boris@kolpackov.net>
454 2004-04-21 Bob Byrnes <byrnes@curl.com>
456 * main.c (main): Notice failures to remake makefiles.
458 2004-03-28 Paul D. Smith <psmith@gnu.org>
460 Patches for Acorn RISC OS by Peter Naulls <peter@chocky.org>
462 * job.c: No default shell for RISC OS.
463 (load_too_high): Hard-code the return to 1.
464 (construct_command_argv_internal): No sh_chars or sh_cmds.
465 * getloadavg.c: Don't set LOAD_AVE_TYPE on RISC OS.
467 2004-03-20 Paul D. Smith <psmith@gnu.org>
469 * variable.c (do_variable_definition): Don't append from the
470 global set if a previous non-appending target-specific variable
471 definition exists. Reported by Oliver Schmidt <oschmidt@gmx.net>
474 * expand.c (reference_variable): Don't give up on variables with
475 no value that have the target-specific append flag set: they might
476 have a value after all. Reported by Oliver Schmidt
477 <oschmidt@gmx.net> (with fix) and also by Maksim A. Nikulin
478 <nikulin@dx1cmd.inp.nsk.su>.
480 * rule.c (count_implicit_rule_limits): Don't delete patterns which
481 refer to absolute pathnames in directories that don't exist: some
482 portion of the makefile could create those directories before we
483 match the pattern. Fixes bugs #775 and #108.
485 Fixes from Jonathan R. Grant <jg-make@jguk.org>:
487 * main.c (main): Free makefile_mtimes if we have any.
488 * README.W32.template: Update documentation for the current status
489 of the MS-Windows port.
490 * NMakefile.template (MAKE): Add "MAKE = nmake". A conflicting
491 environment variable is sometimes already defined which causes the
493 * main.c (debug_signal_handler): Only define this function if
494 SIGUSR1 is available.
496 Fixes for OS/2 from Andreas Beuning <andreas.buening@nexgo.de>:
498 * configure.in [OS/2]: Relocate setting of HAVE_SA_RESTART for OS/2.
499 * README.OS2.template: Documentation updates.
500 * build.template: Add LIBINTL into LOADLIBES. Add $CFLAGS to the
501 link line for safety.
502 * maintMakefile (build.sh.in): Remove an extraneous ")".
503 * job.c (child_execute_job): Close saved FDs.
504 * job.c (exec_command) [OS/2]: exec_command(): If the command
505 can't be exec'ed and if the shell is not Unix-sh, then try again
506 with argv = { "cmd", "/c", ... }. Normally, this code is never
507 reached for the cmd shell unless the command really doesn't exist.
508 (construct_command_argv_internal) [OS/2]: The code for cmd
509 handling now uses new_argv = { "cmd", "/c", "original line", NULL}.
510 The CMD builtin commands are case insensitive so use strcasecmp().
512 2004-03-19 Paul D. Smith <psmith@gnu.org>
514 * read.c (do_define): Re-order line counter increment so the count
515 is accurate (we were losing one line per define). Reported by
516 Dave Yost <Dave@Yost.com>.
518 2004-03-06 Paul D. Smith <psmith@gnu.org>
520 * configure.in (HAVE_ANSI_COMPILER): Define if we have an ANSI/ISO
522 * make.h: Convert uses of __STDC__ to HAVE_ANSI_COMPILER.
523 * misc.c (message,error,fatal): Ditto.
524 * configh.dos.template: Define HAVE_ANSI_COMPILER.
525 * config.h.W32.template: Ditto.
526 * config.h-vms.template: Ditto.
527 * config.ami.template: Ditto.
529 2004-03-04 Paul D. Smith <psmith@gnu.org>
531 * README.template: Add a note about broken /bin/sh on SunOS
532 4.1.3_U1 & 4.1.4. Fix up Savannah links.
534 * misc.c (message, error, fatal): Don't use "..." if we're using
535 varargs. ansi2knr should handle this but it doesn't work: it
536 translates "..." to va_dcl etc. but _AFTER_ the preprocessor is
537 done. On many systems (SunOS for example) va_dcl is a #define.
538 So, force the use of the non-"..." version on pre-ANSI compilers.
540 * maintMakefile (sign-dist): Create some rules to help automate
541 the new GNU ftp upload method.
543 2004-02-24 Paul D. Smith <psmith@gnu.org>
545 * config.h.W32.template: Add HAVE_STDARG_H
546 * config.h-vms.template: Ditto.
547 * config.ami.template: Ditto.
549 2004-02-23 Jonathan Grant <jg-make@jguk.org>
551 * README.W32.template: Add a notation about -j with BATCH_MODE_ONLY.
552 * build_w32.bat: Remove extra "+".
554 2004-02-23 Paul D. Smith <psmith@gnu.org>
556 * make.h: Create an UNUSED macro to mark unused parameters.
557 * (many): Clean up warnings by applying UNUSED, fixing
558 signed/unsigned incompatibilities, etc.
560 * acinclude.m4 (AC_STRUCT_ST_MTIM_NSEC): Add quoting to silence
562 * filedef.h: Name the command_state enumeration.
563 * file.c (set_command_state): Use the enumeration in the function
566 * configure.in: Explicitly set SET_MAKE to empty, to disable
567 MAKE=make even when no make already exists. Fix bug #3823.
569 2004-02-22 Paul D. Smith <psmith@gnu.org>
571 * maintMakefile: Perl script to clean up all non-CVS files. Use
572 it on all the subdirectories for the cvs-clean target.
574 * main.c (decode_switches): Require non-empty strings for all our
575 string command-line options. Fixes Debian bug # 164165.
577 * configure.in: Check for stdarg.h and varargs.h.
578 * make.h (USE_VARIADIC): Set this if we can use variadic functions
579 for printing messages.
580 * misc.c: Check USE_VARIADIC instead of (obsolete) HAVE_STDVARARGS.
585 A number of patches for OS/2 support from Andreas Buening
586 <andreas.buening@nexgo.de>:
588 * job.c (child_handler) [OS/2]: Allow this on OS/2 but we have to
589 disable the SIGCHLD handler.
590 (reap_children) [OS/2]: Remove special handling of job_rfd.
591 (set_child_handler_action_flags) [OS/2]: Use this function in OS/2.
592 (new_job) [OS/2]: Disable the SIGCHLD handler on OS/2.
593 * main.c (main) [OS/2]: Special handling for paths in OS/2.
594 * configure.in [OS/2]: Force SA_RESTART for OS/2.
595 * Makefile.am (check-regression): Use $(EXEEXT) for Windows-type
598 2004-02-21 Paul D. Smith <psmith@gnu.org>
600 * w32/subproc/sub_proc.c (process_easy) [W32]: Christoph Schulz
601 <mail@kristov.de> reports that if process_begin() fails we don't
602 handle the error condition correctly in all cases.
603 * w32/subproc/w32err.c (map_windows32_error_to_string): Make sure
604 to have a newline on the message.
606 * job.c (construct_command_argv_internal): Add "test" to UNIX
607 sh_cmds[]. Fixes Savannah bug # 7606.
609 2004-02-04 Paul D. Smith <psmith@gnu.org>
611 * job.c (vms_handle_apos) [VMS]: Fix various string handling
612 situations in VMS DCL. Fixes Savannah bug #5533. Fix provided by
613 Hartmut Becker <Hartmut.Becker@hp.com>.
615 2004-01-21 Paul D. Smith <psmith@gnu.org>
617 * job.c (load_too_high): Implement an algorithm to control the
618 "thundering herd" problem when using -l to control job creation
619 via the load average. The system only recomputes the load once a
620 second but we can start many jobs in a second. To solve this we
621 keep track of the number of jobs started in the last second and
622 apply a weight to try to guess what a correct load would be.
623 The algorithm was provided by Thomas Riedl <thomas.riedl@siemens.com>.
624 Also fixes bug #4693.
625 (reap_children): Decrease the job count for this second.
626 (start_job_command): Increase the job count for this second.
628 * read.c (conditional_line): Expand the text after ifn?def before
629 checking to see if it's a single word. Fixes bug #7257.
631 2004-01-09 Paul D. Smith <psmith@gnu.org>
633 * file.c (print_file): Recurse to print all targets in
634 double-colon rules. Fixes bug #4518, reported (with patch) by
635 Andrew Chatham <chatham@google.com>.
637 2004-01-07 Paul D. Smith <psmith@gnu.org>
639 * acinclude.m4: Remove make_FUNC_SETVBUF_REVERSED.
640 * configure.in: Change make_FUNC_SETVBUF_REVERSED to
641 AC_FUNC_SETVBUF_REVERSED.
643 * doc/make.texi (Target-specific): Fix Savannah bug #1772.
644 (MAKE Variable): Fix Savannah bug #4898.
646 * job.c (construct_command_argv_internal): Add "!" to the list of
647 shell escape chars. POSIX sh allows it to appear before a
648 command, to negate the exit code. Fixes bug #6404.
650 * implicit.c (pattern_search): When matching an implicit rule,
651 remember which dependencies have the ignore_mtime flag set.
652 Original fix provided in Savannah patch #2349, by Benoit
653 Poulot-Cazajous <Benoit.Poulot-Cazajous@jaluna.com>.
655 2003-11-22 Paul D. Smith <psmith@gnu.org>
657 * README.W32.template (Outputs): Clarification on -j with
658 BATCH_MODE_ONLY_SEHLL suggested by Jonathan R. Grant
661 2003-11-02 Paul D. Smith <psmith@gnu.org>
663 * function.c (func_if): Strip all the trailing whitespace from the
664 condition, then don't expand it. Fixed bug # 5798.
666 * expand.c (recursively_expand_for_file): If we're expanding a
667 variable with no file context, then use the variable's context.
670 2003-10-21 Paul D. Smith <psmith@gnu.org>
672 * main.c (log_working_directory): Add newlines to printf()s.
674 * README.cvs: Add a note to ignore warnings during autoreconf.
676 * maintMakefile (po_repo): Set a new URL for PO file updates.
677 (get-config/config.guess get-config/config.sub): Get these files
678 from the Savannah config project instead of ftp.gnu.org.
680 2003-10-05 Paul Eggert <eggert@twinsun.com>
682 * main.c (main): Avoid potential subscript error if environ has
685 2003-08-22 Paul D. Smith <psmith@gnu.org>
687 * misc.c (xmalloc, xrealloc): Add one to 0 sizes, to cater to
688 systems which don't yet implement the C89 standard :-/.
690 2003-07-18 Paul D. Smith <psmith@gnu.org>
692 * dir.c (directory_contents_hash_1, directory_contents_hash_1)
693 [WINDOWS32]: Initialize hash.
695 2003-06-19 Earnie Boyd <earnie@uses.sf.net>
697 * dir.c (read_dirstream): Provide a workaround for broken versions of
698 the MinGW dirent structure.
700 2003-05-30 Earnie Boyd <earnie@users.sf.net>
702 * w32/include/dirent.h: Add __MINGW32__ filter.
704 2003-05-30 Earnie Boyd <earnie@users.sf.net>
706 * make.h: Add global declaration of *make_host.
707 * main.c (print_usage): Remove local declaration of *make_host.
708 (print_version): Display "This program built for ..." after Copyright
711 2003-05-30 Earnie Boyd <earnie@users.sf.net>
713 * doc/make.texi: Change "ifinfo" to "ifnottex" as suggested by the
714 execution of "makeinfo --html make.texi".
716 2003-04-30 Paul D. Smith <psmith@gnu.org>
718 * build.template: Make some changes to maybe allow this script to
719 work on DOS/Windows/OS2 systems. Suggested by Andreas Buening.
721 * README.OS2.template: New file for OS/2 support. Original
722 contributed by Andreas Buening.
723 * configure.in: Invoke new pds_AC_DOS_PATHS macro to test for
726 2003-04-19 Paul D. Smith <psmith@gnu.org>
728 Fix bug #1405: allow a target to match multiple pattern-specific
731 * rule.c (create_pattern_var, lookup_pattern_var): Move these to
732 variable.c, where they've always belonged.
733 * rule.h: Move the prototypes and struct pattern_var as well.
734 * variable.c (initialize_file_variables): Invoke
735 lookup_pattern_var() in a loop, until no more matches are found.
736 If a match is found, create a new variable set for the target's
737 pattern variables. Then merge the contents of each matching
738 pattern variable set into the target's pattern variable set.
739 (lookup_pattern_var): Change this function to be usable
740 in a loop. It takes a starting position: if NULL, start at the
741 beginning; if non-NULL, start with the pattern variable after that
742 position, and return the next matching pattern.
743 (create_pattern_var): Create a unique instance of
744 pattern-specific variables for every definition in the makefile.
745 Don't combine the same pattern together. This allows us to
746 process the variable handling properly even when the same pattern
747 is used multiple times.
748 (parse_variable_definition): New function: break out the parsing
749 of a variable definition line from try_variable_definition.
750 (try_variable_definition): Call parse_variable_definition to
752 (print_variable_data_base): Print out pattern-specific variables.
753 * variable.h (struct variable): Remember when a variable is
754 conditional. Also remember its flavor.
755 (struct pattern_var): Instead of keeping a variable set, we just
756 keep a single variable for each pattern.
757 * read.c (record_target_var): Each pattern variable contains only a
758 single variable, not a set, so create it properly.
759 * doc/make.texi (Pattern-specific): Document the new behavior.
761 2003-04-17 Paul D. Smith <psmith@gnu.org>
763 * dir.c (file_exists_p) [VMS]: Patch provided with Bug #3018 by
764 Jean-Pierre Portier <portierjp2@free.fr>. I don't understand the
765 file/directory naming rules for VMS so I can't tell whether this
768 2003-04-09 Paul D. Smith <psmith@gnu.org>
770 * configure.in (HAVE_DOS_PATHS): Define this on systems that need
771 DOS-style pathnames: backslash separators and drive specifiers.
773 2003-03-28 Paul D. Smith <psmith@gnu.org>
775 * file.c (snap_deps): If .SECONDARY with no targets is given, set
776 the intermediate flag on all targets. Fixes bug #2515.
778 2003-03-24 Paul D. Smith <psmith@gnu.org>
780 * configure.in, Makefile.am, glob/Makefile.am, doc/Makefile.am:
781 Upgrade to autoconf 2.57 and automake 1.7.3.
783 * job.c: More OS/2 changes from Andreas Buening.
785 * file.c (print_file): Fix variable initialization.
788 * remake.c (notice_finished_file):
790 * make.h (ENULLLOOP): Set errno = 0 before invoking the command;
791 some calls (like readdir()) return NULL in valid situations
792 without resetting errno. Fixes bug #2846.
794 2003-02-25 Paul D. Smith <psmith@gnu.org>
796 Port to OS/2 (__EMX__) by Andreas Buening <andreas.buening@nexgo.de>.
798 * job.c (_is_unixy_shell) [OS/2]: New function.
799 Set default shell to /bin/sh.
800 (reap_children): Close the job_rfd pipe here since we don't use a
802 (set_child_handler_action_flags): define this to empty on OS/2.
803 (start_job_command): Close the jobserver pipe and use
804 child_execute_job() instead of fork/exec.
805 (child_execute_job): Rewrite to handle stdin/stdout FDs and spawn
806 rather than exec'ing, then reconfigure stdin/stdout.
807 (exec_command): Rewrite to use spawn instead of exec. Return the
810 * main.c (main) [OS/2]: Call initialize_main(). Handle argv[0] as
811 in DOS. Handle the TEMP environment variable as in DOS. Don't
812 use a SIGCHLD handler on OS/2. Choose a shell as in DOS. Don't
813 use -j in DOS mode. Use child_execute_job() instead of
816 * function.c (func_shell) [OS/2]: Can't use fork/exec on OS/2: use
819 * job.h [OS/2]: Move CLOSE_ON_EXEC here from job.c. Add
820 prototypes that return values.
822 * remake.c (f_mtime) [OS/2]: Handle FAT timestamp offsets for OS/2.
824 * read.c (readline) [OS/2]: Don't handle CRLF specially on OS/2.
825 * default.c (default_suffixes) [OS/2]: Set proper default suffixes
827 * vpath.c (construct_vpath_list) [OS/2]: Handle OS/2 paths like
830 2003-02-24 Paul D. Smith <psmith@gnu.org>
832 * default.c [VMS]: New default rules for .cxx -> .obj compiles.
833 * job.c (child_execute_job) [VMS]: New code for handling spawn().
834 (child_execute_job) [VMS]: Handle error status properly.
835 Patches provided by Hartmut Becker <Hartmut.Becker@compaq.com>.
837 * function.c (func_shell): Use EINTRLOOP() while reading from the
838 subshell pipe (Fixes bug #2502).
839 * job.c (free_child): Use EINTRLOOP() while writing tokens to the
841 * main.c (main): Ditto.
843 2003-01-30 Paul D. Smith <psmith@gnu.org>
845 * read.c (eval): eval() was not fully reentrant, because the
846 collapsed buffer was static. Change it to be an automatic
847 variable so that eval() can be invoked recursively.
849 (eval): Apply patch # 1022: fix memory reference error on long
850 target-specific variable lines.
851 Patch provided by Steve Brown <Steve.Brown@macquarie.com>.
853 * function.c (check_numeric): Combine the is_numeric() function
854 into this function, since it's only called from one place.
855 Constify this function. Have it print the incorrect string in the
856 error message. Fixes bug #2407.
857 (strip_whitespace): Constify.
859 * expand.c (expand_argument): Constify.
861 2003-01-29 Paul D. Smith <psmith@gnu.org>
863 Fix bug # 2169, also reported by other people on various systems.
865 * make.h: Some systems, such as Solaris and PTX, do not fully
866 implement POSIX-compliant SA_RESTART functionality; important
867 system calls like stat() and readdir() can still fail with EINTR
868 even if SA_RESTART has been set on the signal handler. So,
869 introduce macros EINTRLOOP() and ENULLLOOP() which can loop on
870 EINTR for system calls which return -1 or 0 (NULL), respectively,
872 Also, remove the old atomic_stat()/atomic_readdir() and
873 HAVE_BROKEN_RESTART handling.
875 * configure.in: Remove setting of HAVE_BROKEN_RESTART.
877 * arscan.c (ar_member_touch): Use EINTRLOOP() to wrap fstat().
878 * remake.c (touch_file): Ditto.
880 * commands.c (delete_target): Use EINTRLOOP() to wrap stat().
881 * read.c (construct_include_path): Ditto.
882 * remake.c (name_mtime): Ditto.
883 * vpath.c (selective_vpath_search): Ditto.
884 * dir.c (find_directory): Ditto.
886 (find_directory): Use ENULLLOOP() to wrap opendir().
887 (dir_contents_file_exists_p): Use ENULLLOOP() to wrap readdir().
889 * misc.c: Remove HAVE_BROKEN_RESTART, atomic_stat(), and
890 atomic_readdir() handling.
892 2003-01-22 Paul D. Smith <psmith@gnu.org>
894 * function.c (func_call): Fix Bug #1744. If we're inside a
895 recursive invocation of $(call ...), mask any of the outer
896 invocation's arguments that aren't used by this one, so that this
897 invocation doesn't "inherit" them accidentally.
899 2002-12-05 Paul D. Smith <psmith@gnu.org>
901 * function.c (subst_expand): Valery Khamenia reported a
902 pathological performance hit when doing substitutions on very
903 large values with lots of words: turns out we were invoking
904 strlen() a ridiculous number of times. Instead of having each
905 call to sindex() call strlen() again, keep track of how much of
906 the text we've seen and pass the length to sindex().
908 2002-11-19 Paul D. Smith <psmith@gnu.org>
910 * README.cvs, configure.in: Upgrade to require autoconf 2.56.
913 2002-11-16 Paul D. Smith <psmith@gnu.org>
915 * NMakefile.template (OBJS): Add hash.c object file.
916 * SMakefile.template (srcs): Ditto.
917 * Makefile.ami (objs): Ditto.
918 * build_w32.bat: Ditto.
920 * Makefile.DOS.template: Remove extra dependencies.
922 2002-10-25 Paul D. Smith <psmith@gnu.org>
924 * expand.c (install_variable_buffer): New function. Install a new
925 variable_buffer context and return the previous one.
926 (restore_variable_buffer): New function. Free the current
927 variable_buffer context and put a previously saved one back.
928 * variable.h: Prototypes for {install,restore}_variable_buffer.
929 * function.c (func_eval): Push a new variable_buffer context
930 before we eval, then restore the old one when we're done.
933 * read.c (install_conditionals): New function. Install a new
934 conditional context and return the previous one.
935 (restore_conditionals): New function. Free the current
936 conditional context and put a previously saved one back.
937 (eval): Use the {install,restore}_conditionals for "include"
939 (eval_buffer): Use {install,restore}_conditionals to preserve the
940 present conditional state before we evaluate the buffer.
943 * doc/make.texi (Quick Reference): Add references to $(eval ...)
945 (Recursion): Add a variable index entry for CURDIR.
947 * README.cvs: Update to appropriate versions.
948 * Makefile.am (nodist_loadavg_SOURCES): automake gurus point out I
949 don't need to copy loadavg.c: automake is smart enough to create
950 it for me. Still have a bug in automake related to ansi2knr tho.
952 2002-10-14 Paul D. Smith <psmith@gnu.org>
954 * remake.c (notice_finished_file): Only touch targets if they have
955 at least one command (as per POSIX). Resolve Bug #1418.
957 * *.c: Convert to using ANSI C-style function definitions.
958 * Makefile.am: Enable the ansi2knr feature of automake.
959 * configure.in: ditto.
961 2002-10-13 Paul D. Smith <psmith@gnu.org>
963 * commands.c (set_file_variables): Bug #1379: Don't use alloca()
964 for automatic variable values like $^, etc. In the case of very
965 large lists of prerequisites this causes problems. Instead reuse
966 a static buffer (resizeable) for each variable.
968 * read.c (eval): Fix Bug #1391: allow "export" keyword in
969 target-specific variable definitions. Check for it and set an
971 (record_target_var): Set the export field to v_export if the
972 "exported" flag is set.
973 * doc/make.texi (Target-specific): Document the ability to use
976 * doc/make.texi: Change the name of the section on automatic
977 variables from "Automatic" to "Automatic Variables". Added text
978 clarifying the scope of automatic variables.
980 2002-10-04 Paul D. Smith <psmith@gnu.org>
982 * read.c (eval): Allow SysV $$@ variables to use {} braces as well
984 (record_files): Ditto.
986 * expand.c (variable_expand_string): In $(A:x=y) expansion limit
987 the search for the '=' to only within the enclosing parens.
989 2002-10-03 Paul D. Smith <psmith@gnu.org>
991 Version 3.80 released.
993 * dir.c: Change hash functions to use K&R function definition style.
998 Update to automake 1.7.
1000 * Makefile.am (AUTOMAKE_OPTIONS): Update to require 1.7.
1001 (pdf): Remove this target as automake now provides one.
1003 * configure.in: Change AM_CONFIG_HEADER to AC_CONFIG_HEADERS.
1005 2002-09-30 Martin P.J. Zinser <zinser@decus.de>
1007 * makefile.com: Updates for GNU make 3.80.
1008 * makefile.vms: Ditto.
1010 2002-09-23 Paul D. Smith <psmith@gnu.org>
1012 * read.c (enum make_word_type): Remove w_comment.
1013 (get_next_mword): Don't treat comment characters as special; where
1014 this function is used we will never see a comment (it's stripped
1015 before we get here) and treating comments specially means that
1016 targets like "foo\#bar" aren't handled properly.
1018 2002-09-18 Paul D. Smith <psmith@gnu.org>
1020 * doc/make.texi (Bugs): Update with some info on Savannah, etc.
1022 * read.c (eval): Expansion of arguments to export/unexport was
1023 ignoring all arguments after the first one. Change the algorithm
1024 to expand the whole line once, then parse the results.
1026 2002-09-17 Paul D. Smith <psmith@gnu.org>
1028 Fix Bug #940 (plus another bug I found while looking at this):
1030 * read.c (record_target_var): enter_file() will add a new entry if
1031 it's a double-colon target: we don't want to do that in this
1032 situation. Invoke lookup_file() and only enter_file() if it does
1033 not already exist. If the file we get back is a double-colon then
1034 add this variable to the "root" double-colon target.
1036 * variable.c (initialize_file_variables): If this file is a
1037 double-colon target but is not the "root" target, then initialize
1038 the root and make the root's variable list the parent of our
1041 2002-09-13 Paul D. Smith <psmith@gnu.org>
1043 * doc/make.texi (MAKE Variable): Add some indexing for "+".
1045 * hash.c (round_up_2): Get rid of a warning.
1047 2002-09-12 Paul D. Smith <psmith@gnu.org>
1049 * Makefile.am (loadavg_SOURCES, loadavg.c): Tiptoe around automake
1050 so it doesn't complain about getloadavg.c.
1052 * commands.c (set_file_variables): Make sure we always alloca() at
1053 least 1 character for the value of $? (for '\0').
1055 2002-09-11 Paul D. Smith <psmith@gnu.org>
1057 * hash.h (STRING_COMPARE, ISTRING_COMPARE, STRING_N_COMPARE): Fix
1058 macro to use RESULT instead of the incorrect _RESULT_.
1060 * make.h (HAVE_BROKEN_RESTART): Add prototypes for atomic_stat()
1061 and atomic_readdir(). We need to #include dirent.h to get this to
1063 * misc.c (atomic_readdir): Fix typos.
1065 2002-09-10 Paul D. Smith <psmith@gnu.org>
1067 * read.c (eval): Expand variable lists given to export and
1068 unexport, so that "export $(LIST_OF_VARIABLES)" (etc.) works.
1069 (conditional_line): Ditto for "ifdef". Fixes bug #103.
1071 * doc/make.texi (Variables/Recursion): Document this.
1072 (Conditional Syntax): And here.
1074 2002-09-09 Paul D. Smith <psmith@gnu.org>
1076 * configure.in: Check for memmove().
1078 2002-09-07 Paul D. Smith <psmith@gnu.org>
1080 * configure.in (HAVE_BROKEN_RESTART): Define this on PTX systems;
1081 Michael Sterrett <msterret@coat.com> reports that while it has
1082 SA_RESTART, it does not work properly.
1084 * misc.c (atomic_stat): If HAVE_BROKEN_RESTART, create a function
1085 that invokes stat() and loops to do it again if it returns EINTR.
1086 (atomic_readdir): Ditto, with readdir().
1088 * make.h (stat, readdir): If HAVE_BROKEN_RESTART, alias stat()
1089 and readdir() to atomic_stat() and atomic_readdir().
1091 2002-09-04 Paul D. Smith <psmith@gnu.org>
1093 * implicit.c (pattern_search): Daniel <barkalow@reputation.com>
1094 reports that GNU make sometimes doesn't recognize that targets can
1095 be made, when directories can be created as prerequisites. He
1096 reports that changing the order of predicates in the DEP->changed
1097 flag test so that lookup_file() is always performed, solves this
1100 2002-08-08 Paul D. Smith <psmith@gnu.org>
1102 * configure.in: Require a newer version of gettext.
1104 * misc.c (perror_with_name): Translate the format string (for
1105 right-to-left language support).
1106 (pfatal_with_name): Ditto.
1108 * main.c: Create a static array of strings to store the usage
1109 text. This is done to facilitate translations.
1110 (struct command_switch): Remove argdesc and description fields.
1111 (switches): Remove values for obsolete fields.
1112 (print_usage): Print each element of the usage array.
1114 * hash.c: Change function definitions to be K&R style.
1116 2002-08-02 Paul D. Smith <psmith@gnu.org>
1118 * NEWS: Remove the mention of .TARGETS; we aren't going to publish
1119 this one because it's too hard to get right. We'll look at it for
1121 * main.c (main): Don't create the .TARGETS variable.
1122 * variable.c (handle_special_var): Don't handle .TARGETS.
1124 2002-08-01 Paul D. Smith <psmith@gnu.org>
1126 * main.c (switches): Add a new option, -B (--always-make). If
1127 specified, make will rebuild all targets that it encounters even
1128 if they don't appear to be out of date.
1129 (always_make_flag): New flag.
1130 * make.h: Extern always_make_flag.
1131 * remake.c (update_file_1): Check always_make_flag; if it's set we
1132 will always rebuild any target we can, even if none of its
1133 prerequisites are newer.
1136 * doc/make.texi (Shell Function): Make it clear that make
1137 variables marked as "export" are not passed to instances of the
1140 Add new introspection variable .VARIABLES and .TARGETS.
1142 * variable.c (handle_special_var): New function. If the variable
1143 reference passed in is "special" (.VARIABLES or .TARGETS),
1144 calculate the new value if necessary. .VARIABLES is handled here:
1145 walk through the hash of defined variables and construct a value
1146 which is a list of the names. .TARGETS is handled by
1147 build_target_list().
1148 (lookup_variable): Invoke handle_special_var().
1149 * file.c (build_target_list): Walk through the hask of known files
1150 and construct a list of the names of all the ones marked as
1152 * main.c (main): Initialize them to empty (and as simple variables).
1153 * doc/make.texi (Special Variables): Document them.
1154 * NEWS: Mention them.
1156 * variable.h (struct variable): Add a new flag "exportable" which
1157 is true if the variable name is valid for export.
1158 * variable.c (define_variable_in_set): Set "exportable" when a new
1159 variable is defined.
1160 (target_environment): Use the "exportable" flag instead of
1161 re-checking the name here... an efficiency improvement.
1163 2002-07-31 Paul D. Smith <psmith@gnu.org>
1165 * config.h-vms.template: Updates to build on VMS. Thanks to
1166 Brian_Benning@aksteel.com for helping verify the build.
1167 * makefile.com: Build the new hash.c file.
1168 * hash.h: Use strcpmi(), not stricmp(), in the
1169 HAVE_CASE_INSENSITIVE_FS case.
1171 2002-07-30 Paul D. Smith <psmith@gnu.org>
1173 * hash.h (ISTRING_COMPARE, return_ISTRING_COMPARE): Add missing
1174 backslashes to the HAVE_CASE_INSENSITIVE_FS case.
1175 Reported by <Brian_Benning@aksteel.com>.
1177 2002-07-10 Paul D. Smith <psmith@gnu.org>
1179 * variable.c (pop_variable_scope): Remove variable made unused by
1180 new hash infrastructure.
1181 * read.c (dep_hash_cmp): Rewrite this to handle ignore_mtime
1182 comparisons as well as name comparisons.
1183 * variable.h: Add a prototype for new hash_init_function_table().
1184 * file.c (lookup_file): Remove variables made unused by new hash
1186 * dir.c (directory_contents_hash_2): Missing return of hash value.
1187 (dir_contents_file_exists_p): Remove variables made unused by new
1188 hash infrastructure.
1191 Installed Greg McGary's integration of the hash functions from the
1192 GNU id-utils package:
1194 2002-07-10 Greg McGary <greg@mcgary.org>
1196 * scripts/functions/filter-out: Add literals to to the
1197 pattern space in order to add complexity, and trigger
1198 use of an internal hash table. Fix documentation strings.
1199 * scripts/targets/INTERMEDIATE: Reverse order of files
1200 passed to expected `rm' command.
1202 2002-07-10 Greg McGary <greg@mcgary.org>
1204 * Makefile.am (SRCS): Add hash.c (noinst_HEADERS): Add hash.h
1205 * hash.c: New file, taken from id-utils.
1206 * hash.h: New file, taken from id-utils.
1208 * make.h (HASH, HASHI): Remove macros.
1209 (find_char_unquote): Change arglist in decl.
1210 (hash_init_directories): New function decl.
1211 * variable.h (hash.h): New #include.
1212 (MAKELEVEL_NAME, MAKELEVEL_LENGTH): New constants.
1213 * filedef.h (hash.h): New #include.
1214 (struct file) [next]: Remove member.
1215 (file_hash_enter): Remove function decl.
1216 (init_hash_files): New function decl.
1218 * ar.c (ar_name): Delay call to strlen until needed.
1219 * main.c (initialize_global_hash_tables): New function.
1220 (main): Call it. Use MAKELEVEL_NAME & MAKELEVEL_LENGTH.
1221 * misc.c (remove_comments): Pass char constants to find_char_unquote.
1222 * remake.c (notice_finished_file): Update last_mtime on `prev' chain.
1224 * dir.c (hash.h): New #include.
1225 (struct directory_contents) [next, files]: Remove members.
1226 [ctime]: Add member for VMS. [dirfiles]: Add hash-table member.
1227 (directory_contents_hash_1, directory_contents_hash_2,
1228 directory_contents_hash_cmp): New functions.
1229 (directories_contents): Change type to `struct hash_table'.
1230 (struct directory) [next]: Remove member.
1231 (directory_hash_1, directory_hash_2, directory_hash_cmp): New funcs.
1232 (directory): Change type to `struct hash_table'.
1233 (struct dirfile) [next]: Remove member.
1234 [length]: Add member. [impossible]: widen type to fill alignment gap.
1235 (dirfile_hash_1, dirfile_hash_2, dirfile_hash_cmp): New functions.
1236 (find_directory): Use new hash table package.
1237 (dir_contents_file_exists_p): Likewise.
1238 (file_impossible): Likewise.
1239 (file_impossible_p): Likewise.
1240 (print_dir_data_base): Likewise.
1241 (open_dirstream): Likewise.
1242 (read_dirstream): Likewise.
1243 (hash_init_directories): New function.
1245 * file.c (hash.h): New #include.
1246 (file_hash_1, file_hash_2, file_hash_cmp): New functions.
1247 (files): Change type to `struct hash_table'.
1248 (lookup_file): Use new hash table package.
1249 (enter_file): Likewise.
1250 (remove_intermediates): Likewise.
1251 (snap_deps): Likewise.
1252 (print_file_data_base): Likewise.
1255 (function_table_entry_hash_1, function_table_entry_hash_2,
1256 function_table_entry_hash_cmp): New functions.
1257 (lookup_function): Remove `table' argument.
1258 Use new hash table package.
1259 (struct a_word) [chain, length]: New members.
1260 (a_word_hash_1, a_word_hash_2, a_word_hash_cmp): New functions.
1261 (struct a_pattern): New struct.
1262 (func_filter_filterout): Pass through patterns noting boundaries
1263 and '%', if present. Note a_word length. Use a hash table if
1264 arglists are large enough to justify cost.
1265 (function_table_init): Renamed from function_table.
1266 (function_table): Declare as `struct hash_table'.
1267 (FUNCTION_TABLE_ENTRIES): New constant.
1268 (hash_init_function_table): New function.
1270 * read.c (hash.h): New #include.
1271 (read_makefile): Pass char constants to find_char_unquote.
1272 (dep_hash_1, dep_hash_2, dep_hash_cmp): New functions.
1273 (uniquize_deps): Use hash table to efficiently identify duplicates.
1274 (find_char_unquote): Accept two char-constant stop chars, rather
1275 than a string constant, avoiding zillions of calls to strchr.
1276 Tighten inner search loops to test only for desired delimiters.
1278 * variable.c (variable_hash_1, variable_hash_2,
1279 variable_hash_cmp): New functions.
1280 (variable_table): Declare as `struct hash_table'.
1281 (global_variable_set): Remove initialization.
1282 (init_hash_global_variable_set): New function.
1283 (define_variable_in_set): Use new hash table package.
1284 (lookup_variable): Likewise.
1285 (lookup_variable_in_set): Likewise.
1286 (initialize_file_variables): Likewise.
1287 (pop_variable_scope): Likewise.
1288 (create_new_variable_set): Likewise.
1289 (merge_variable_sets): Likewise.
1290 (define_automatic_variables): Likewise.
1291 (target_environment): Likewise.
1292 (print_variable_set): Likewise.
1294 2002-07-10 Paul D. Smith <psmith@gnu.org>
1296 Implement the SysV make syntax $$@, $$(@D), and $$(@F) in the
1297 prerequisite list. A real SysV make will expand the entire
1298 prerequisites list _twice_: we don't do that as it's a big
1299 backward-compatibility problem. We only replace those specific
1302 * read.c (record_files): Replace any $@, $(@D), and $(@F) variable
1303 references left in the list of prerequisites. Check for .POSIX as
1304 we record targets, so we can disable non-POSIX behavior while
1305 reading makefiles as well as running them.
1306 (eval): Check the prerequisite list to see if we have anything
1307 that looks like a SysV prerequisite variable reference.
1309 2002-07-09 Paul D. Smith <psmith@gnu.org>
1311 * doc/make.texi (Prerequisite Types): Add a new section describing
1312 order-only prerequisites.
1314 * read.c (uniquize_deps): If we have the same file as both a
1315 normal and order-only prereq, get rid of the order-only prereq,
1316 since the normal one supersedes it.
1318 2002-07-08 Paul D. Smith <psmith@gnu.org>
1320 * AUTHORS: Added Greg McGary to the AUTHORS file.
1321 * NEWS: Blurbed order-only prerequisites.
1322 * file.c (print_file): Show order-only deps properly when printing
1325 * maintMakefile: Add "update" targets for wget'ing the latest
1326 versions of various external files. Taken from Makefile.maint in
1329 * dosbuild.bat: Somehow we got _double_ ^M's. Remove them.
1330 Reported by Eli Zaretskii <eliz@is.elta.co.il>.
1332 2002-07-07 Paul D. Smith <psmith@gnu.org>
1334 * po/*.po: Remove. We'll use wget to retrieve them at release
1337 * variable.c (do_variable_definition) [W32]: On W32 using cmd
1338 rather than a shell you get an exception. Make sure we look up
1339 the variable. Patch provided by Eli Zaretskii <eliz@is.elta.co.il>.
1341 * remake.c (notice_finished_file): Fix handling of -t flag.
1342 Patch provided by Henning Makholm <henning@makholm.net>.
1344 * implicit.c (pattern_search): Some systems apparently run short
1345 of stack space, and using alloca() in this function caused an
1346 overrun. I modified it to use xmalloc() on the two variables
1347 which seemed like they might get large. Fixes Bug #476.
1349 * main.c (print_version): Update copyright notice to conform with
1351 (print_usage): Update help output.
1353 * function.c (func_eval): Create a new make function, $(eval
1354 ...). Expand the arguments, put them into a buffer, then invoke
1355 eval_buffer() on the resulting string.
1356 (func_quote): Create a new function, $(quote VARNAME). Inserts
1357 the value of the variable VARNAME without expanding it any
1360 * read.c (struct ebuffer): Change the linebuffer structure to an
1361 "eval buffer", which can be either a file or a buffer.
1362 (eval_makefile): Move the code in the old read_makefile() which
1363 located a makefile into here: create a struct ebuffer with that
1364 information. Have it invoke the new function eval() with that
1366 (eval_buffer): Create a new function that creates a struct ebuffer
1367 that holds a string buffer instead of a file. Have it invoke
1368 eval() with that ebuffer.
1369 (eval): New function that contains the guts of the old
1370 read_makefile() function: this function parses makefiles. Obtains
1371 data to parse from the provided ebuffer. Some modifications to
1372 make the flow of the function cleaner and clearer. Still could
1373 use some work here...
1374 (do_define): Takes a struct ebuffer instead of a FILE*. Read the
1375 contents of the define/endef variable from the ebuffer.
1376 (readstring): Read the next line from a string-style ebuffer.
1377 (readline): Read the next line from an ebuffer. If it's a string
1378 ebuffer, invoke readstring(). If it's a FILE* ebuffer, read it
1381 * dep.h (eval_buffer): Prototype eval_buffer();
1383 * variable.c (do_variable_definition): Make sure that all
1384 non-target-specific variables are registered in the global set.
1385 If we're invoked from an $(eval ...) we might be inside a $(call
1386 ...) or other function which has pushed a variable scope; we still
1387 want to define our variables from evaluated makefile code in the
1390 2002-07-03 Greg McGary <greg@mcgary.org>
1392 * dep.h (struct dep) [ignore_mtime]: New member.
1393 [changed]: convert to a bitfield.
1394 * implicit.c (pattern_search): Zero ignore_mtime.
1395 * main.c (main, handle_non_switch_argument): Likewise.
1396 * rule.c (convert_suffix_rule): Likewise.
1397 * read.c (read_all_makefiles, read_makefile, multi_glob): Likewise.
1398 (read_makefile): Parse '|' in prerequisite list.
1399 (uniquize_deps): Consider ignore_mtime when comparing deps.
1400 * remake.c (update_file_1, check_dep): Don't force remake for
1401 dependencies that have d->ignore_mtime.
1402 * commands.c (FILE_LIST_SEPARATOR): New constant.
1403 (set_file_variables): Don't include a
1404 prerequisite in $+, $^ or $? if d->ignore_mtime.
1407 2002-06-18 Paul D. Smith <psmith@gnu.org>
1409 * make.texinfo: Updates for next revision. New date/rev/etc.
1410 Recreate all Info menus. Change license on the manual to the GNU
1411 Free Documentation License. A number of typos.
1412 (Variables Simplify): Don't use "-" before it's defined.
1413 (Automatic Prerequisites): Rewrite the target example to work
1414 properly if the compile fails. Remove incorrect comments about
1415 how "set -e" behaves.
1416 (Text Functions): Move the "word", "wordlist", "words", and
1417 "firstword" functions here, from "File Name Functions".
1418 * make-stds.texi: Update from latest GNU version.
1419 * fdl.texi: (created) Import the latest GNU version.
1421 2002-06-06 Paul D. Smith <psmith@gnu.org>
1423 * variable.c (do_variable_definition): New function: extract the
1424 part of try_variable_definition() that actually sets the value
1425 into a separate function.
1426 (try_variable_definition): Call do_variable_definition() after
1427 parsing the variable definition string.
1428 (define_variable_in_set): Make the name argument const.
1430 * variable.h (enum variable_flavor): Make public.
1431 (do_variable_definition): Create prototype.
1433 * read.c (read_all_makefiles): Create a new built-in variable,
1435 (read_makefile): Add each makefile read in to this variable value.
1437 2002-05-18 Eli Zaretskii <eliz@is.elta.co.il>
1439 * Makefile.DOS.template: Tweak according to changes in the
1440 distribution. Add back the dependencies of *.o files.
1442 * configh.dos.template: Synchronize with config.h.in.
1444 2002-05-09 Paul D. Smith <psmith@gnu.org>
1446 * file.c (file_timestamp_now): Use K&R function declaration.
1448 * getloadavg.c (getloadavg): Merge setlocale() fix from sh-utils
1449 getloadavg.c. Autoconf thinks QNX is SVR4-like, but it isn't, so
1450 #undef it. Remove predefined setup of NLIST_STRUCT. Decide
1451 whether to include nlist.h based on HAVE_NLIST_H. Change obsolete
1452 NLIST_NAME_UNION to new HAVE_STRUCT_NLIST_N_UN_N_NAME.
1453 * configure.in (NLIST_STRUCT): Define this if we have nlist.h and
1454 nlist.n_name is a pointer rather than an array.
1456 * acinclude.m4 (make_FUNC_SETVBUF_REVERSED): Grab the latest
1457 version of AC_FUNC_SETVBUF_REVERSED from autoconf CVS.
1458 * configure.in: Use it instead of the old version.
1460 * main.c (main): Prefer setvbuf() to setlinebuf().
1462 2002-05-08 Paul D. Smith <psmith@gnu.org>
1464 * Makefile.am (make_LDADD): Add GETLOADAVG_LIBS.
1465 (loadavg_LDADD): Ditto.
1467 2002-04-29 Paul D. Smith <psmith@gnu.org>
1469 * expand.c (recursively_expand_for_file): Rename
1470 recursively_expand() to recursively_expand_for_file() and provide
1471 an extra argument, struct file. If the argument is provided, set
1472 the variable scope to that of the file before expanding.
1473 * variable.h (recursively_expand): Make this a macro that invokes
1474 recursively_expand_for_file() with a NULL file pointer.
1475 * variable.c (target_environment): Call the renamed function and
1476 provide the current file context.
1477 Fixes Debian bug #144306.
1479 2002-04-28 Paul D. Smith <psmith@gnu.org>
1481 Allow $(call ...) user-defined variables to be self-referencing
1482 without throwing an error. Allows implementation of transitive
1483 closures, among other possibly useful things.
1484 Requested by: Philip Guenther <guenther@sendmail.com>
1486 * variable.h (struct variable): Add a new field: exp_count, and
1487 new macros to hold its size and maximum value.
1488 (warn_undefined): Make this a macro.
1489 * variable.c (define_variable_in_set): Initialize it.
1490 * expand.c (recursively_expand): If we detect recursive expansion
1491 of a variable, check the exp_count field. If it's greater than 0
1492 allow the recursion and decrement the count.
1493 (warn_undefined): Remove this (now a macro in variable.h).
1494 * function.c (func_call): Before we expand the user-defined
1495 function, modify its exp_count field to contain the maximum
1496 number of recursive calls we'll allow. After the call, reset it
1499 2002-04-21 Paul D. Smith <psmith@gnu.org>
1501 Modified to use latest autoconf (2.53), automake (1.6.1), and
1502 gettext (0.11.1). We're using gettext's new "external" support,
1503 to avoid including libintl source with GNU make.
1505 * README.cvs: New file. Explain how to build GNU make from CVS.
1507 * configure.in: Modify checking for the system glob library.
1508 Use AC_EGREP_CPP instead of AC_TRY_CPP. Remove the setting of
1509 GLOBDIR (we will always put "glob" in SUBDIRS, so automake
1510 etc. will manage it correctly). Set an automake conditional
1511 USE_LOCAL_GLOB to decide whether to compile the glob library.
1513 * getloadavg.c (main): Include make.h in the "TEST" program to
1516 * Makefile.am: Remove special rules for loadavg. Replace them
1517 with Automake capabilities for building extra programs.
1519 * signame.c: This file does nothing if the system provide
1520 strsignal(). If not, it implements strsignal(). If the system
1521 doesn't define sys_siglist, then we make our own; otherwise we use
1523 * signame.h: Removed.
1525 * main.c (main): No need to invoke signame_init(). Update copyright.
1527 * ABOUT-NLS: Removed.
1528 * gettext.c: Removed.
1529 * gettext.h: Get a simplified copy from the gettext package.
1531 * i18n/*.po: Moved to po/.
1534 * config/*: Created. Contains package configuration helper files.
1535 * config.guess, config.sub: Moved to config directory.
1537 * configure.in (AC_CONFIG_FILES): Add po/Makefile.in, config/Makefile.
1538 Rework to use new-style autoconf features. Use the "external"
1539 mode for gettext. Make the build.sh config file conditional on
1540 whether build.sh.in exists, to avoid autoconf errors.
1541 * acinclude.m4: Removed almost all macros as being obsolete.
1542 Rewrote remaining macros to use AC_DEFINE.
1543 * acconfig.h: Removed.
1545 * Makefile.am (EXTRA_DIST): Add config/config.rpath. Use a
1546 conditional to handle customs support. Remove special handling
1549 2002-04-20 Paul D. Smith <psmith@gnu.org>
1551 * function.c (func_call): Don't mark the argument variables $1,
1552 etc. as recursive. They've already been fully expanded so
1553 there's no need to do it again, and doing so strips escaped $'s.
1554 Reported by Sebastian Glita <glseba@yahoo.com>.
1556 * remake.c (notice_finished_file): Walk through double-colon
1557 entries via the prev field, not the next field!
1558 Reported by Greg McGary <greg@mcgary.org>.
1560 * main.c (main): If the user specifies -q and asks for a specific
1561 target which is a makefile, we got an assert. In that case it
1562 turns out we should continue normally instead.
1564 * i18n/de.po, i18n/fr.po: Installed an updated translation.
1566 * i18n/he.po: Installed a new translation.
1568 2002-01-07 Paul D. Smith <psmith@gnu.org>
1570 * i18n/es.po, i18n/ru.po: Installed an updated translation.
1572 2001-12-04 Paul D. Smith <psmith@gnu.org>
1574 * i18n/ja.po: Installed an updated translation.
1576 2001-09-06 Paul Eggert <eggert@twinsun.com>
1578 * configure.in (AC_CHECK_HEADERS): Add sys/resource.h.
1579 (AC_CHECK_FUNCS): Add getrlimit, setrlimit.
1581 * main.c: Include <sys/resource.h> if it, getrlimit, and setrlimit
1583 (main): Get rid of any avoidable limit on stack size.
1585 2001-09-04 Paul D. Smith <psmith@gnu.org>
1587 * i18n/da.po: Installed an updated translation.
1589 2001-08-03 Paul D. Smith <psmith@gnu.org>
1591 * i18n/fr.po: Installed an updated translation.
1592 Resolves Debian bug #106720.
1594 2001-06-13 Paul D. Smith <psmith@gnu.org>
1596 * i18n/da.po, configure.in (ALL_LINGUAS): Installed a new
1599 2001-06-11 Paul D. Smith <psmith@gnu.org>
1601 * i18n/ko.po: Installed a new translation.
1603 2001-05-06 Paul D. Smith <psmith@gnu.org>
1605 Modify the EINTR handling.
1607 * job.c (new_job): Reorganize the jobserver algorithm. Reorder
1608 the way in which we manage the file descriptor/signal handler race
1609 trap to be more efficient.
1611 2001-05-06 Paul Eggert <eggert@twinsun.com>
1613 Restart almost all system calls that are interrupted, instead
1614 of worrying about EINTR. The lone exception is the read() for
1617 * configure.in (HAVE_SA_RESTART): New macro.
1618 (MAKE_JOBSERVER): Define to 1 only if HAVE_SA_RESTART.
1619 * main.c (main): Use SA_RESTART instead of the old,
1620 nonstandard SA_INTERRUPT.
1622 * configure.in (AC_CHECK_FUNCS): Add bsd_signal.
1623 * main.c (bsd_signal): New function or macro,
1624 if the implementation doesn't supply it.
1625 (The bsd_signal function will be in POSIX 1003.1-200x.)
1626 (HANDLESIG): Remove.
1627 (main, FATAL_SIG): Use bsd_signal instead of signal or HANDLESIG.
1629 * make.h (EINTR_SET): Remove.
1630 (SA_RESTART): New macro.
1632 * arscan.c (ar_member_touch): Don't worry about EINTR.
1633 * function.c (func_shell): Likewise.
1634 * job.c (reap_children, free_child, new_job): Likewise.
1635 * main.c (main): Likewise.
1636 * remake.c (touch_file, name_mtime): Likewise.
1638 * arscan.c (ar_member_touch): Fix bug uncovered by EINTR removal;
1639 if fstat failed with errno!=EINTR, the error was ignored.
1641 * job.c (set_child_handler_action_flags): New function.
1642 (new_job): Use it to temporarily clear the SIGCHLD action flags
1643 while reading the token.
1645 2001-05-02 Paul D. Smith <psmith@gnu.org>
1647 * job.c (start_job_command): Don't add define/endef per-line flags
1648 to the top-level flags setting.
1650 2001-04-03 Paul D. Smith <psmith@gnu.org>
1652 * arscan.c (VMS_get_member_info,ar_scan) [VMS]: VMS sets the low
1653 bit on error, so check for odd return values, not non-0 return
1655 (VMS_get_member_info): Calculate the timezone differences correctly.
1656 Reported by John Fowler <jfowler@nyx.net>.
1659 2001-03-14 Paul D. Smith <psmith@gnu.org>
1661 * variable.c (lookup_variable) [VMS]: Null-terminate the variable
1662 value before invoking define_variable().
1663 Reported by John Fowler <jfowler@nyx.net>.
1665 2001-02-07 Paul D. Smith <psmith@gnu.org>
1667 * read.c (record_target_var): If we reset the variable due to a
1668 command-line variable setting overriding it, turn off the "append"
1671 2001-01-17 Paul D. Smith <psmith@gnu.org>
1673 * variable.c (lookup_variable) [VMS]: When getting values from the
1674 environment, allocate enough space for the _value_ plus escapes,
1675 not enough space for the name plus escapes :-/.
1676 Reported by John Fowler <jfowler@nyx.net>.
1678 * remake.c (f_mtime): Removed the "***" prefix from the mod time
1679 warnings that make generates, so it doesn't look like an error.
1680 Reported by Karl Berry <karl@gnu.org>.
1683 Fix for PR/2020: Rework appended target-specific variables. I'm
1684 fairly confident this algorithm is finally correct.
1686 * expand.c (allocated_variable_append): Rewrite. Instead of
1687 expanding each appended variable then adding all the expanded
1688 strings together, we append all the unexpanded values going up
1689 through the variable set contexts, then expand the final result.
1690 This behaves just like non-target-specific appended variable
1691 values, while the old way didn't in various corner cases.
1692 (variable_append): New function: recursively append the unexpanded
1693 value of a variable, walking from the outermost variable scope to
1695 * variable.c (lookup_variable): Remove the code that looked up the
1696 variable set list if the found variable was "append". We don't
1698 (lookup_variable_in_set): Make this non-static so we can use it
1700 (try_variable_definition): Use lookup_variable_in_set() rather
1701 than faking out current_variable_set_list by hand (cleanup).
1702 * variable.h: Add a prototype for the now non-static
1703 lookup_variable_in_set().
1705 2000-11-17 Paul D. Smith <psmith@gnu.org>
1707 * remake.c (f_mtime) [WINDOWS32]: On various advice, I changed the
1708 WINDOWS32 port to assume timestamps can be up to 3 seconds away
1709 before throwing a fit.
1711 2000-11-17 Paul D. Smith <psmith@gnu.org>
1713 * read.c (readline): CRLF calculations had a hole, if you hit the
1714 buffer grow scenario just right. Reworked the algorithm to avoid
1715 the need for len or lastlen at all. Problem description with
1716 sample code chages provided by Chris Faylor <cgf@redhat.com>.
1718 2000-10-24 Paul D. Smith <psmith@gnu.org>
1720 * gettext.c (SWAP): Declare this with the prototype, otherwise
1721 some systems don't work (non-32-bit? Reported for Cray T3E).
1722 Reported by Thorstein Thorsteinsson <thor@signe.teokem.lu.se>.
1724 2000-10-05 Paul D. Smith <psmith@gnu.org>
1726 * acinclude.m4 (AM_LC_MESSAGES): Remove undefined macro
1727 AM_LC_MESSAGES; it doesn't seem to do anything anyway??
1729 * i18n/gl.po, configure.in (ALL_LINGUAS): New Galician translation.
1731 2000-09-22 Paul D. Smith <psmith@gnu.org>
1733 * gettext.c: Don't #define _GETTEXT_H here; we only include some
1734 parts of the real gettext.h here, and we expect to really include
1735 the real gettext.h later. If we keep this #define, it's ignored.
1737 2000-09-21 Paul D. Smith <psmith@gnu.org>
1739 * main.c (log_working_directory): Rework the text to use complete
1740 sentences, to make life simpler for the translators.
1742 2000-08-29 Paul D. Smith <psmith@gnu.org>
1744 * file.c (remove_intermediates): Print a debug message before we
1745 remove intermediate files, so the user (if she uses -d) knows
1748 2000-08-21 Paul D. Smith <psmith@gnu.org>
1750 * variable.c (try_variable_definition): Change how we handle
1751 target-specific append variable defns: instead of just setting the
1752 value, expand it as an append _but_ only within the current
1753 target's context. Otherwise we lose all but the last value if the
1754 variable is appended more than once within the current target
1755 context. Fixes PR/1831.
1757 2000-08-16 Paul D. Smith <psmith@gnu.org>
1759 * function.c (func_shell): Nul-terminate the buffer before
1760 printing an exec error message (just in case it's not!).
1761 Fixes PR/1860, reported by Joey Hess <joey@valinux.com>.
1763 2000-07-25 Paul D. Smith <psmith@gnu.org>
1765 * job.c (construct_command_argv_internal): Add "~" to the list of
1766 sh_chars[] which disallow optimizing out the shell call.
1768 2000-07-23 Paul Eggert <eggert@twinsun.com>
1770 * NEWS, make.texinfo: Document .LOW_RESOLUTION_TIME, which
1771 supersedes --disable-nsec-timestamps.
1772 * make.texinfo: Consistently use "time stamp" instead of "timestamp".
1773 * README: Remove --disable-nsec-timestamps.
1775 * filedef.h (struct file.low_resolution_time): New member.
1776 * file.c (snap_deps): Add support for .LOW_RESOLUTION_TIME.
1777 * remake.c (update_file_1):
1778 Avoid spurious rebuilds due to low resolution time stamps,
1779 generalizing the earlier code that applied only to archive members.
1780 (f_mtime): Archive members always have low resolution time stamps.
1782 * configure.in: Remove --disable-nsec-timestamps, as this has
1783 been superseded by .LOW_RESOLUTION_TIME.
1785 2000-07-23 Paul Eggert <eggert@twinsun.com>
1787 * configure.in (enable_nsec_timestamps): Renamed from
1788 make_cv_nsec_timestamps, since enable/disable options
1789 shouldn't be cached.
1791 2000-07-23 Bruno Haible <haible@clisp.cons.org>
1792 and Paul Eggert <eggert@twinsun.com>
1794 * file.c (file_timestamp_now):
1795 Use preprocessor-time check for FILE_TIMESTAMP_HI_RES
1796 so that clock_gettime is not linked unless needed.
1798 * filedef.h (FILE_TIMESTAMP_HI_RES):
1799 Remove definition; "configure" now does this.
1801 * configure.in (jm_AC_TYPE_UINTMAX_T): Move up,
1802 to before high resolution file timestamp check,
1803 since that check now uses uintmax_t.
1804 (FILE_TIMESTAMP_HI_RES): Define to nonzero if the code should use
1805 high resolution file timestamps.
1806 (HAVE_CLOCK_GETTIME): Do not define if !FILE_TIMESTAMP_HI_RES,
1807 so that we don't link in clock_gettime unnecessarily.
1809 2000-07-17 Paul D. Smith <psmith@gnu.org>
1811 * i18n/ja.po: New version of the translation file.
1813 2000-07-07 Paul D. Smith <psmith@gnu.org>
1815 * remake.c (f_mtime): If NO_FLOAT is defined, don't bother with
1816 the offset calculation.
1817 (name_mtime): Replace EINTR test with EINTR_SET macro.
1819 2000-07-07 Paul Eggert <eggert@twinsun.com>
1823 * remake.c (update_file_1):
1824 Avoid spurious rebuilds of archive members due to their
1825 timestamp resolution being only one second.
1826 (f_mtime): Avoid spurious warnings of timestamps in the future due to
1827 the clock's resolution being lower than file timestamps'.
1828 When warning about future timestamps, report only the discrepancy,
1829 not the absolute value of the timestamp and the current time.
1831 * file.c (file_timestamp_now): New arg RESOLUTION.
1832 * filedef.h (file_timestamp_now): Likewise.
1833 (FILE_TIMESTAMP_NS): Now returns int. All uses changed.
1835 2000-07-05 Paul D. Smith <psmith@gnu.org>
1837 * variable.c (lookup_variable) [VMS]: Remove vestigial references
1838 to listp. Fixes PR/1793.
1840 2000-06-26 Paul Eggert <eggert@twinsun.com>
1842 * Makefile.am (MAINTAINERCLEANFILES): New macro, with stamp-pot in it.
1844 * dir.c (vms_hash): Ensure ctype macro args are nonnegative.
1846 * remake.c (f_mtime): Remove unused var memtime.
1848 2000-06-25 Martin Buchholz <martin@xemacs.org>
1850 * make.texinfo, NEWS, TODO.private: Minor spelling corrections.
1851 Ran spell-check on make.texinfo.
1853 2000-06-23 Paul D. Smith <psmith@gnu.org>
1855 * main.c (main): Replace EXIT_SUCCESS, EXIT_FAILURE, and
1856 EXIT_TROUBLE with MAKE_SUCCESS, MAKE_FAILURE, and MAKE_TROUBLE.
1857 * make.h: Define these macros.
1859 * Version 3.79.1 released.
1861 * configure.in: Add a new option, --disable-nsec-timestamps, to
1862 avoid using sub-second timestamps on systems that support it. It
1863 can lead to problems, e.g. if your makefile relies on "cp -p".
1864 * README.template: Document the issue with "cp -p".
1866 * config.guess, config.sub: Updated.
1870 See ChangeLog.2, available in the CVS repository at:
1872 http://savannah.gnu.org/cvs/?group=make
1874 for earlier changes.