Fix a bug handling target/prerequisite names containing comment
[make.git] / ChangeLog
blob5feb3e9466c81ab2662c5cc7d78b999cf7ff3e3f
1 2002-09-23  Paul D. Smith  <psmith@gnu.org>
3         * read.c (enum make_word_type): Remove w_comment.
4         (get_next_mword): Don't treat comment characters as special; where
5         this function is used we will never see a comment (it's stripped
6         before we get here) and treating comments specially means that
7         targets like "foo\#bar" aren't handled properly.
9 2002-09-18  Paul D. Smith  <psmith@gnu.org>
11         * doc/make.texi (Bugs): Update with some info on Savannah, etc.
13         * read.c (eval): Expansion of arguments to export/unexport was
14         ignoring all arguments after the first one.  Change the algorithm
15         to expand the whole line once, then parse the results.
17 2002-09-17  Paul D. Smith  <psmith@gnu.org>
19         Fix Bug #940 (plus another bug I found while looking at this):
21         * read.c (record_target_var): enter_file() will add a new entry if
22         it's a double-colon target: we don't want to do that in this
23         situation.  Invoke lookup_file() and only enter_file() if it does
24         not already exist.  If the file we get back is a double-colon then
25         add this variable to the "root" double-colon target.
27         * variable.c (initialize_file_variables): If this file is a
28         double-colon target but is not the "root" target, then initialize
29         the root and make the root's variable list the parent of our
30         variable list.
32 2002-09-13  Paul D. Smith  <psmith@gnu.org>
34         * doc/make.texi (MAKE Variable): Add some indexing for "+".
36         * hash.c (round_up_2): Get rid of a warning.
38 2002-09-12  Paul D. Smith  <psmith@gnu.org>
40         * Makefile.am (loadavg_SOURCES, loadavg.c): Tiptoe around automake
41         so it doesn't complain about getloadavg.c.
43         * commands.c (set_file_variables): Make sure we always alloca() at
44         least 1 character for the value of $? (for '\0').
46 2002-09-11  Paul D. Smith  <psmith@gnu.org>
48         * hash.h (STRING_COMPARE, ISTRING_COMPARE, STRING_N_COMPARE): Fix
49         macro to use RESULT instead of the incorrect _RESULT_.
51         * make.h (HAVE_BROKEN_RESTART): Add prototypes for atomic_stat()
52         and atomic_readdir().  We need to #include dirent.h to get this to
53         work.
54         * misc.c (atomic_readdir): Fix typos.
56 2002-09-10  Paul D. Smith  <psmith@gnu.org>
58         * read.c (eval): Expand variable lists given to export and
59         unexport, so that "export $(LIST_OF_VARIABLES)" (etc.) works.
60         (conditional_line): Ditto for "ifdef".  Fixes bug #103.
62         * doc/make.texi (Variables/Recursion): Document this.
63         (Conditional Syntax): And here.
65 2002-09-09  Paul D. Smith  <psmith@gnu.org>
67         * configure.in: Check for memmove().
69 2002-09-07  Paul D. Smith  <psmith@gnu.org>
71         * configure.in (HAVE_BROKEN_RESTART): Define this on PTX systems;
72         Michael Sterrett <msterret@coat.com> reports that while it has
73         SA_RESTART, it does not work properly.
75         * misc.c (atomic_stat): If HAVE_BROKEN_RESTART, create a function
76         that invokes stat() and loops to do it again if it returns EINTR.
77         (atomic_readdir): Ditto, with readdir().
79         * make.h (stat, readdir): If HAVE_BROKEN_RESTART, alias stat()
80         and readdir() to atomic_stat() and atomic_readdir().
82 2002-09-04  Paul D. Smith  <psmith@gnu.org>
84         * implicit.c (pattern_search): Daniel <barkalow@reputation.com>
85         reports that GNU make sometimes doesn't recognize that targets can
86         be made, when directories can be created as prerequisites.  He
87         reports that changing the order of predicates in the DEP->changed
88         flag test so that lookup_file() is always performed, solves this
89         problem.
91 2002-08-08  Paul D. Smith  <psmith@gnu.org>
93         * configure.in: Require a newer version of gettext.
95         * misc.c (perror_with_name): Translate the format string (for
96         right-to-left language support).
97         (pfatal_with_name): Ditto.
99         * main.c: Create a static array of strings to store the usage
100         text.  This is done to facilitate translations.
101         (struct command_switch): Remove argdesc and description fields.
102         (switches): Remove values for obsolete fields.
103         (print_usage): Print each element of the usage array.
105         * hash.c: Change function definitions to be K&R style.
107 2002-08-02  Paul D. Smith  <psmith@gnu.org>
109         * NEWS: Remove the mention of .TARGETS; we aren't going to publish
110         this one because it's too hard to get right.  We'll look at it for
111         a future release.
112         * main.c (main): Don't create the .TARGETS variable.
113         * variable.c (handle_special_var): Don't handle .TARGETS.
115 2002-08-01  Paul D. Smith  <psmith@gnu.org>
117         * main.c (switches): Add a new option, -B (--always-make).  If
118         specified, make will rebuild all targets that it encounters even
119         if they don't appear to be out of date.
120         (always_make_flag): New flag.
121         * make.h: Extern always_make_flag.
122         * remake.c (update_file_1): Check always_make_flag; if it's set we
123         will always rebuild any target we can, even if none of its
124         prerequisites are newer.
125         * NEWS: Mention it.
127         * doc/make.texi (Shell Function): Make it clear that make
128         variables marked as "export" are not passed to instances of the
129         shell function.
131         Add new introspection variable .VARIABLES and .TARGETS.
133         * variable.c (handle_special_var): New function.  If the variable
134         reference passed in is "special" (.VARIABLES or .TARGETS),
135         calculate the new value if necessary.  .VARIABLES is handled here:
136         walk through the hash of defined variables and construct a value
137         which is a list of the names.  .TARGETS is handled by
138         build_target_list().
139         (lookup_variable): Invoke handle_special_var().
140         * file.c (build_target_list): Walk through the hask of known files
141         and construct a list of the names of all the ones marked as
142         targets.
143         * main.c (main): Initialize them to empty (and as simple variables).
144         * doc/make.texi (Special Variables): Document them.
145         * NEWS: Mention them.
147         * variable.h (struct variable): Add a new flag "exportable" which
148         is true if the variable name is valid for export.
149         * variable.c (define_variable_in_set): Set "exportable" when a new
150         variable is defined.
151         (target_environment): Use the "exportable" flag instead of
152         re-checking the name here... an efficiency improvement.
154 2002-07-31  Paul D. Smith  <psmith@gnu.org>
156         * config.h-vms.template: Updates to build on VMS.  Thanks to
157         Brian_Benning@aksteel.com for helping verify the build.
158         * makefile.com: Build the new hash.c file.
159         * hash.h: Use strcpmi(), not stricmp(), in the
160         HAVE_CASE_INSENSITIVE_FS case.
162 2002-07-30  Paul D. Smith  <psmith@gnu.org>
164         * hash.h (ISTRING_COMPARE, return_ISTRING_COMPARE): Add missing
165         backslashes to the HAVE_CASE_INSENSITIVE_FS case.
166         Reported by <Brian_Benning@aksteel.com>.
168 2002-07-10  Paul D. Smith  <psmith@gnu.org>
170         * variable.c (pop_variable_scope): Remove variable made unused by
171         new hash infrastructure.
172         * read.c (dep_hash_cmp): Rewrite this to handle ignore_mtime
173         comparisons as well as name comparisons.
174         * variable.h: Add a prototype for new hash_init_function_table().
175         * file.c (lookup_file): Remove variables made unused by new hash
176         infrastructure.
177         * dir.c (directory_contents_hash_2): Missing return of hash value.
178         (dir_contents_file_exists_p): Remove variables made unused by new
179         hash infrastructure.
182         Installed Greg McGary's integration of the hash functions from the
183         GNU id-utils package:
185 2002-07-10  Greg McGary  <greg@mcgary.org>
187         * scripts/functions/filter-out: Add literals to to the
188         pattern space in order to add complexity, and trigger
189         use of an internal hash table.  Fix documentation strings.
190         * scripts/targets/INTERMEDIATE: Reverse order of files
191         passed to expected `rm' command.
193 2002-07-10  Greg McGary  <greg@mcgary.org>
195         * Makefile.am (SRCS): Add hash.c (noinst_HEADERS): Add hash.h
196         * hash.c: New file, taken from id-utils.
197         * hash.h: New file, taken from id-utils.
199         * make.h (HASH, HASHI): Remove macros.
200         (find_char_unquote): Change arglist in decl.
201         (hash_init_directories): New function decl.
202         * variable.h (hash.h): New #include.
203         (MAKELEVEL_NAME, MAKELEVEL_LENGTH): New constants.
204         * filedef.h (hash.h): New #include.
205         (struct file) [next]: Remove member.
206         (file_hash_enter): Remove function decl.
207         (init_hash_files): New function decl.
209         * ar.c (ar_name): Delay call to strlen until needed.
210         * main.c (initialize_global_hash_tables): New function.
211         (main): Call it.  Use MAKELEVEL_NAME & MAKELEVEL_LENGTH.
212         * misc.c (remove_comments): Pass char constants to find_char_unquote.
213         * remake.c (notice_finished_file): Update last_mtime on `prev' chain.
215         * dir.c (hash.h): New #include.
216         (struct directory_contents) [next, files]: Remove members.
217         [ctime]: Add member for VMS.  [dirfiles]: Add hash-table member.
218         (directory_contents_hash_1, directory_contents_hash_2,
219         directory_contents_hash_cmp): New functions.
220         (directories_contents): Change type to `struct hash_table'.
221         (struct directory) [next]: Remove member.
222         (directory_hash_1, directory_hash_2, directory_hash_cmp): New funcs.
223         (directory): Change type to `struct hash_table'.
224         (struct dirfile) [next]: Remove member.
225         [length]: Add member.  [impossible]: widen type to fill alignment gap.
226         (dirfile_hash_1, dirfile_hash_2, dirfile_hash_cmp): New functions.
227         (find_directory): Use new hash table package.
228         (dir_contents_file_exists_p): Likewise.
229         (file_impossible): Likewise.
230         (file_impossible_p): Likewise.
231         (print_dir_data_base): Likewise.
232         (open_dirstream): Likewise.
233         (read_dirstream): Likewise.
234         (hash_init_directories): New function.
236         * file.c (hash.h): New #include.
237         (file_hash_1, file_hash_2, file_hash_cmp): New functions.
238         (files): Change type to `struct hash_table'.
239         (lookup_file): Use new hash table package.
240         (enter_file): Likewise.
241         (remove_intermediates): Likewise.
242         (snap_deps): Likewise.
243         (print_file_data_base): Likewise.
245         * function.c
246         (function_table_entry_hash_1, function_table_entry_hash_2,
247         function_table_entry_hash_cmp): New functions.
248         (lookup_function): Remove `table' argument.
249         Use new hash table package.
250         (struct a_word) [chain, length]: New members.
251         (a_word_hash_1, a_word_hash_2, a_word_hash_cmp): New functions.
252         (struct a_pattern): New struct.
253         (func_filter_filterout): Pass through patterns noting boundaries
254         and '%', if present.  Note a_word length.  Use a hash table if
255         arglists are large enough to justify cost.
256         (function_table_init): Renamed from function_table.
257         (function_table): Declare as `struct hash_table'.
258         (FUNCTION_TABLE_ENTRIES): New constant.
259         (hash_init_function_table): New function.
261         * read.c (hash.h): New #include.
262         (read_makefile): Pass char constants to find_char_unquote.
263         (dep_hash_1, dep_hash_2, dep_hash_cmp): New functions.
264         (uniquize_deps): Use hash table to efficiently identify duplicates.
265         (find_char_unquote): Accept two char-constant stop chars, rather
266         than a string constant, avoiding zillions of calls to strchr.
267         Tighten inner search loops to test only for desired delimiters.
269         * variable.c (variable_hash_1, variable_hash_2,
270         variable_hash_cmp): New functions.
271         (variable_table): Declare as `struct hash_table'.
272         (global_variable_set): Remove initialization.
273         (init_hash_global_variable_set): New function.
274         (define_variable_in_set): Use new hash table package.
275         (lookup_variable): Likewise.
276         (lookup_variable_in_set): Likewise.
277         (initialize_file_variables): Likewise.
278         (pop_variable_scope): Likewise.
279         (create_new_variable_set): Likewise.
280         (merge_variable_sets): Likewise.
281         (define_automatic_variables): Likewise.
282         (target_environment): Likewise.
283         (print_variable_set): Likewise.
285 2002-07-10  Paul D. Smith  <psmith@gnu.org>
287         Implement the SysV make syntax $$@, $$(@D), and $$(@F) in the
288         prerequisite list.  A real SysV make will expand the entire
289         prerequisites list _twice_: we don't do that as it's a big
290         backward-compatibility problem.  We only replace those specific
291         variables.
293         * read.c (record_files): Replace any $@, $(@D), and $(@F) variable
294         references left in the list of prerequisites.  Check for .POSIX as
295         we record targets, so we can disable non-POSIX behavior while
296         reading makefiles as well as running them.
297         (eval): Check the prerequisite list to see if we have anything
298         that looks like a SysV prerequisite variable reference.
300 2002-07-09  Paul D. Smith  <psmith@gnu.org>
302         * doc/make.texi (Prerequisite Types): Add a new section describing
303         order-only prerequisites.
305         * read.c (uniquize_deps): If we have the same file as both a
306         normal and order-only prereq, get rid of the order-only prereq,
307         since the normal one supersedes it.
309 2002-07-08  Paul D. Smith  <psmith@gnu.org>
311         * AUTHORS: Added Greg McGary to the AUTHORS file.
312         * NEWS: Blurbed order-only prerequisites.
313         * file.c (print_file): Show order-only deps properly when printing
314         the database.
316         * maintMakefile: Add "update" targets for wget'ing the latest
317         versions of various external files.  Taken from Makefile.maint in
318         autoconf, etc.
320         * dosbuild.bat: Somehow we got _double_ ^M's.  Remove them.
321         Reported by Eli Zaretskii <eliz@is.elta.co.il>.
323 2002-07-07  Paul D. Smith  <psmith@gnu.org>
325         * po/*.po: Remove.  We'll use wget to retrieve them at release
326         time.
328         * variable.c (do_variable_definition) [W32]: On W32 using cmd
329         rather than a shell you get an exception.  Make sure we look up
330         the variable.  Patch provided by Eli Zaretskii <eliz@is.elta.co.il>.
332         * remake.c (notice_finished_file): Fix handling of -t flag.
333         Patch provided by Henning Makholm <henning@makholm.net>.
335         * implicit.c (pattern_search): Some systems apparently run short
336         of stack space, and using alloca() in this function caused an
337         overrun.  I modified it to use xmalloc() on the two variables
338         which seemed like they might get large.  Fixes Bug #476.
340         * main.c (print_version): Update copyright notice to conform with
341         GNU standards.
342         (print_usage): Update help output.
344         * function.c (func_eval): Create a new make function, $(eval
345         ...).  Expand the arguments, put them into a buffer, then invoke
346         eval_buffer() on the resulting string.
347         (func_quote): Create a new function, $(quote VARNAME).  Inserts
348         the value of the variable VARNAME without expanding it any
349         further.
351         * read.c (struct ebuffer): Change the linebuffer structure to an
352         "eval buffer", which can be either a file or a buffer.
353         (eval_makefile): Move the code in the old read_makefile() which
354         located a makefile into here: create a struct ebuffer with that
355         information.  Have it invoke the new function eval() with that
356         ebuffer.
357         (eval_buffer): Create a new function that creates a struct ebuffer
358         that holds a string buffer instead of a file.  Have it invoke
359         eval() with that ebuffer.
360         (eval): New function that contains the guts of the old
361         read_makefile() function: this function parses makefiles.  Obtains
362         data to parse from the provided ebuffer.  Some modifications to
363         make the flow of the function cleaner and clearer.  Still could
364         use some work here...
365         (do_define): Takes a struct ebuffer instead of a FILE*.  Read the
366         contents of the define/endef variable from the ebuffer.
367         (readstring): Read the next line from a string-style ebuffer.
368         (readline): Read the next line from an ebuffer.  If it's a string
369         ebuffer, invoke readstring().  If it's a FILE* ebuffer, read it
370         from the file.
372         * dep.h (eval_buffer): Prototype eval_buffer();
374         * variable.c (do_variable_definition): Make sure that all
375         non-target-specific variables are registered in the global set.
376         If we're invoked from an $(eval ...) we might be inside a $(call
377         ...) or other function which has pushed a variable scope; we still
378         want to define our variables from evaluated makefile code in the
379         global scope.
381 2002-07-03  Greg McGary  <greg@mcgary.org>
383         * dep.h (struct dep) [ignore_mtime]: New member.
384         [changed]: convert to a bitfield.
385         * implicit.c (pattern_search): Zero ignore_mtime.
386         * main.c (main, handle_non_switch_argument): Likewise.
387         * rule.c (convert_suffix_rule): Likewise.
388         * read.c (read_all_makefiles, read_makefile, multi_glob): Likewise.
389         (read_makefile): Parse '|' in prerequisite list.
390         (uniquize_deps): Consider ignore_mtime when comparing deps.
391         * remake.c (update_file_1, check_dep): Don't force remake for
392         dependencies that have d->ignore_mtime.
393         * commands.c (FILE_LIST_SEPARATOR): New constant.
394         (set_file_variables): Don't include a
395         prerequisite in $+, $^ or $? if d->ignore_mtime.
396         Define $|.
398 2002-06-18  Paul D. Smith  <psmith@gnu.org>
400         * make.texinfo: Updates for next revision.  New date/rev/etc.
401         Recreate all Info menus.  Change license on the manual to the GNU
402         Free Documentation License.  A number of typos.
403         (Variables Simplify): Don't use "-" before it's defined.
404         (Automatic Prerequisites): Rewrite the target example to work
405         properly if the compile fails.  Remove incorrect comments about
406         how "set -e" behaves.
407         (Text Functions): Move the "word", "wordlist", "words", and
408         "firstword" functions here, from "File Name Functions".
409         * make-stds.texi: Update from latest GNU version.
410         * fdl.texi: (created) Import the latest GNU version.
412 2002-06-06  Paul D. Smith  <psmith@gnu.org>
414         * variable.c (do_variable_definition): New function: extract the
415         part of try_variable_definition() that actually sets the value
416         into a separate function.
417         (try_variable_definition): Call do_variable_definition() after
418         parsing the variable definition string.
419         (define_variable_in_set): Make the name argument const.
421         * variable.h (enum variable_flavor): Make public.
422         (do_variable_definition): Create prototype.
424         * read.c (read_all_makefiles): Create a new built-in variable,
425         MAKEFILE_LIST.
426         (read_makefile): Add each makefile read in to this variable value.
428 2002-05-18  Eli Zaretskii  <eliz@is.elta.co.il>
430         * Makefile.DOS.template: Tweak according to changes in the
431         distribution.  Add back the dependencies of *.o files.
433         * configh.dos.template: Synchronize with config.h.in.
435 2002-05-09  Paul D. Smith  <psmith@gnu.org>
437         * file.c (file_timestamp_now): Use K&R function declaration.
439         * getloadavg.c (getloadavg): Merge setlocale() fix from sh-utils
440         getloadavg.c.  Autoconf thinks QNX is SVR4-like, but it isn't, so
441         #undef it.  Remove predefined setup of NLIST_STRUCT.  Decide
442         whether to include nlist.h based on HAVE_NLIST_H.  Change obsolete
443         NLIST_NAME_UNION to new HAVE_STRUCT_NLIST_N_UN_N_NAME.
444         * configure.in (NLIST_STRUCT): Define this if we have nlist.h and
445         nlist.n_name is a pointer rather than an array.
447         * acinclude.m4 (make_FUNC_SETVBUF_REVERSED): Grab the latest
448         version of AC_FUNC_SETVBUF_REVERSED from autoconf CVS.
449         * configure.in: Use it instead of the old version.
451         * main.c (main): Prefer setvbuf() to setlinebuf().
453 2002-05-08  Paul D. Smith  <psmith@gnu.org>
455         * Makefile.am (make_LDADD): Add GETLOADAVG_LIBS.
456         (loadavg_LDADD): Ditto.
458 2002-04-29  Paul D. Smith  <psmith@gnu.org>
460         * expand.c (recursively_expand_for_file): Rename
461         recursively_expand() to recursively_expand_for_file() and provide
462         an extra argument, struct file.  If the argument is provided, set
463         the variable scope to that of the file before expanding.
464         * variable.h (recursively_expand): Make this a macro that invokes
465         recursively_expand_for_file() with a NULL file pointer.
466         * variable.c (target_environment): Call the renamed function and
467         provide the current file context.
468         Fixes Debian bug #144306.
470 2002-04-28  Paul D. Smith  <psmith@gnu.org>
472         Allow $(call ...) user-defined variables to be self-referencing
473         without throwing an error.  Allows implementation of transitive
474         closures, among other possibly useful things.
475         Requested by: Philip Guenther <guenther@sendmail.com>
477         * variable.h (struct variable): Add a new field: exp_count, and
478         new macros to hold its size and maximum value.
479         (warn_undefined): Make this a macro.
480         * variable.c (define_variable_in_set): Initialize it.
481         * expand.c (recursively_expand): If we detect recursive expansion
482         of a variable, check the exp_count field.  If it's greater than 0
483         allow the recursion and decrement the count.
484         (warn_undefined): Remove this (now a macro in variable.h).
485         * function.c (func_call): Before we expand the user-defined
486         function, modify its exp_count field to contain the maximum
487         number of recursive calls we'll allow.  After the call, reset it
488         to 0.
490 2002-04-21  Paul D. Smith  <psmith@gnu.org>
492         Modified to use latest autoconf (2.53), automake (1.6.1), and
493         gettext (0.11.1).  We're using gettext's new "external" support,
494         to avoid including libintl source with GNU make.
496         * README.cvs: New file.  Explain how to build GNU make from CVS.
498         * configure.in: Modify checking for the system glob library.
499         Use AC_EGREP_CPP instead of AC_TRY_CPP.  Remove the setting of
500         GLOBDIR (we will always put "glob" in SUBDIRS, so automake
501         etc. will manage it correctly).  Set an automake conditional
502         USE_LOCAL_GLOB to decide whether to compile the glob library.
504         * getloadavg.c (main): Include make.h in the "TEST" program to
505         avoid warnings.
507         * Makefile.am: Remove special rules for loadavg.  Replace them
508         with Automake capabilities for building extra programs.
510         * signame.c: This file does nothing if the system provide
511         strsignal().  If not, it implements strsignal().  If the system
512         doesn't define sys_siglist, then we make our own; otherwise we use
513         the system version.
514         * signame.h: Removed.
516         * main.c (main): No need to invoke signame_init().  Update copyright.
518         * ABOUT-NLS: Removed.
519         * gettext.c: Removed.
520         * gettext.h: Get a simplified copy from the gettext package.
521         * po/*: Created.
522         * i18n/*.po: Moved to po/.
523         * i18n/: Removed.
525         * config/*: Created.  Contains package configuration helper files.
526         * config.guess, config.sub: Moved to config directory.
528         * configure.in (AC_CONFIG_FILES): Add po/Makefile.in, config/Makefile.
529         Rework to use new-style autoconf features.  Use the "external"
530         mode for gettext.  Make the build.sh config file conditional on
531         whether build.sh.in exists, to avoid autoconf errors.
532         * acinclude.m4: Removed almost all macros as being obsolete.
533         Rewrote remaining macros to use AC_DEFINE.
534         * acconfig.h: Removed.
536         * Makefile.am (EXTRA_DIST): Add config/config.rpath.  Use a
537         conditional to handle customs support.  Remove special handling
538         for i18n features.
540 2002-04-20  Paul D. Smith  <psmith@gnu.org>
542         * function.c (func_call): Don't mark the argument variables $1,
543         etc. as recursive.  They've already been fully expanded so
544         there's no need to do it again, and doing so strips escaped $'s.
545         Reported by Sebastian Glita <glseba@yahoo.com>.
547         * remake.c (notice_finished_file): Walk through double-colon
548         entries via the prev field, not the next field!
549         Reported by Greg McGary <greg@mcgary.org>.
551         * main.c (main): If the user specifies -q and asks for a specific
552         target which is a makefile, we got an assert.  In that case it
553         turns out we should continue normally instead.
555         * i18n/de.po, i18n/fr.po: Installed an updated translation.
557         * i18n/he.po: Installed a new translation.
559 2002-01-07  Paul D. Smith  <psmith@gnu.org>
561         * i18n/es.po, i18n/ru.po: Installed an updated translation.
563 2001-12-04  Paul D. Smith  <psmith@gnu.org>
565         * i18n/ja.po: Installed an updated translation.
567 2001-09-04  Paul D. Smith  <psmith@gnu.org>
569         * i18n/da.po: Installed an updated translation.
571 2001-08-03  Paul D. Smith  <psmith@gnu.org>
573         * i18n/fr.po: Installed an updated translation.
574         Resolves Debian bug #106720.
576 2001-06-13  Paul D. Smith  <psmith@gnu.org>
578         * i18n/da.po, configure.in (ALL_LINGUAS): Installed a new
579         translation.
581 2001-06-11  Paul D. Smith  <psmith@gnu.org>
583         * i18n/ko.po: Installed a new translation.
585 2001-05-06  Paul D. Smith  <psmith@gnu.org>
587         Modify the EINTR handling.
589         * job.c (new_job): Reorganize the jobserver algorithm.  Reorder
590         the way in which we manage the file descriptor/signal handler race
591         trap to be more efficient.
593 2001-05-06  Paul Eggert  <eggert@twinsun.com>
595         Restart almost all system calls that are interrupted, instead
596         of worrying about EINTR.  The lone exception is the read() for
597         job tokens.
599         * configure.in (HAVE_SA_RESTART): New macro.
600         (MAKE_JOBSERVER): Define to 1 only if HAVE_SA_RESTART.
601         * main.c (main): Use SA_RESTART instead of the old,
602         nonstandard SA_INTERRUPT.
604         * configure.in (AC_CHECK_FUNCS): Add bsd_signal.
605         * main.c (bsd_signal): New function or macro,
606         if the implementation doesn't supply it.
607         (The bsd_signal function will be in POSIX 1003.1-200x.)
608         (HANDLESIG): Remove.
609         (main, FATAL_SIG): Use bsd_signal instead of signal or HANDLESIG.
611         * make.h (EINTR_SET): Remove.
612         (SA_RESTART): New macro.
614         * arscan.c (ar_member_touch): Don't worry about EINTR.
615         * function.c (func_shell): Likewise.
616         * job.c (reap_children, free_child, new_job): Likewise.
617         * main.c (main): Likewise.
618         * remake.c (touch_file, name_mtime): Likewise.
620         * arscan.c (ar_member_touch): Fix bug uncovered by EINTR removal;
621         if fstat failed with errno!=EINTR, the error was ignored.
623         * job.c (set_child_handler_action_flags): New function.
624         (new_job): Use it to temporarily clear the SIGCHLD action flags
625         while reading the token.
627 2001-05-02  Paul D. Smith  <psmith@gnu.org>
629         * job.c (start_job_command): Don't add define/endef per-line flags
630         to the top-level flags setting.
632 2001-04-03  Paul D. Smith  <psmith@gnu.org>
634         * arscan.c (VMS_get_member_info,ar_scan) [VMS]: VMS sets the low
635         bit on error, so check for odd return values, not non-0 return
636         values.
637         (VMS_get_member_info): Calculate the timezone differences correctly.
638         Reported by John Fowler <jfowler@nyx.net>.
641 2001-03-14  Paul D. Smith  <psmith@gnu.org>
643         * variable.c (lookup_variable) [VMS]: Null-terminate the variable
644         value before invoking define_variable().
645         Reported by John Fowler <jfowler@nyx.net>.
647 2001-02-07  Paul D. Smith  <psmith@gnu.org>
649         * read.c (record_target_var): If we reset the variable due to a
650         command-line variable setting overriding it, turn off the "append"
651         flag.
653 2001-01-17  Paul D. Smith  <psmith@gnu.org>
655         * variable.c (lookup_variable) [VMS]: When getting values from the
656         environment, allocate enough space for the _value_ plus escapes,
657         not enough space for the name plus escapes :-/.
658         Reported by John Fowler <jfowler@nyx.net>.
660         * remake.c (f_mtime): Removed the "***" prefix from the mod time
661         warnings that make generates, so it doesn't look like an error.
662         Reported by Karl Berry <karl@gnu.org>.
665         Fix for PR/2020:  Rework appended target-specific variables.  I'm
666         fairly confident this algorithm is finally correct.
668         * expand.c (allocated_variable_append): Rewrite.  Instead of
669         expanding each appended variable then adding all the expanded
670         strings together, we append all the unexpanded values going up
671         through the variable set contexts, then expand the final result.
672         This behaves just like non-target-specific appended variable
673         values, while the old way didn't in various corner cases.
674         (variable_append): New function: recursively append the unexpanded
675         value of a variable, walking from the outermost variable scope to
676         the innermost.
677         * variable.c (lookup_variable): Remove the code that looked up the
678         variable set list if the found variable was "append".  We don't
679         need this anymore.
680         (lookup_variable_in_set): Make this non-static so we can use it
681         elsewhere.
682         (try_variable_definition): Use lookup_variable_in_set() rather
683         than faking out current_variable_set_list by hand (cleanup).
684         * variable.h: Add a prototype for the now non-static
685         lookup_variable_in_set().
687 2000-11-17  Paul D. Smith  <psmith@gnu.org>
689         * remake.c (f_mtime) [WINDOWS32]: On various advice, I changed the
690         WINDOWS32 port to assume timestamps can be up to 3 seconds away
691         before throwing a fit.
693 2000-11-17  Paul D. Smith  <psmith@gnu.org>
695         * read.c (readline): CRLF calculations had a hole, if you hit the
696         buffer grow scenario just right.  Reworked the algorithm to avoid
697         the need for len or lastlen at all.  Problem description with
698         sample code chages provided by Chris Faylor <cgf@redhat.com>.
700 2000-10-24  Paul D. Smith  <psmith@gnu.org>
702         * gettext.c (SWAP): Declare this with the prototype, otherwise
703         some systems don't work (non-32-bit?  Reported for Cray T3E).
704         Reported by Thorstein Thorsteinsson <thor@signe.teokem.lu.se>.
706 2000-10-05  Paul D. Smith  <psmith@gnu.org>
708         * acinclude.m4 (AM_LC_MESSAGES): Remove undefined macro
709         AM_LC_MESSAGES; it doesn't seem to do anything anyway??
711         * i18n/gl.po, configure.in (ALL_LINGUAS): New Galician translation.
713 2000-09-22  Paul D. Smith  <psmith@gnu.org>
715         * gettext.c: Don't #define _GETTEXT_H here; we only include some
716         parts of the real gettext.h here, and we expect to really include
717         the real gettext.h later.  If we keep this #define, it's ignored.
719 2000-09-21  Paul D. Smith  <psmith@gnu.org>
721         * main.c (log_working_directory): Rework the text to use complete
722         sentences, to make life simpler for the translators.
724 2000-08-29  Paul D. Smith  <psmith@gnu.org>
726         * file.c (remove_intermediates): Print a debug message before we
727         remove intermediate files, so the user (if she uses -d) knows
728         what's going on.
730 2000-08-21  Paul D. Smith  <psmith@gnu.org>
732         * variable.c (try_variable_definition): Change how we handle
733         target-specific append variable defns: instead of just setting the
734         value, expand it as an append _but_ only within the current
735         target's context.  Otherwise we lose all but the last value if the
736         variable is appended more than once within the current target
737         context.  Fixes PR/1831.
739 2000-08-16  Paul D. Smith  <psmith@gnu.org>
741         * function.c (func_shell): Nul-terminate the buffer before
742         printing an exec error message (just in case it's not!).
743         Fixes PR/1860, reported by Joey Hess <joey@valinux.com>.
745 2000-07-25  Paul D. Smith  <psmith@gnu.org>
747         * job.c (construct_command_argv_internal): Add "~" to the list of
748         sh_chars[] which disallow optimizing out the shell call.
750 2000-07-23  Paul Eggert  <eggert@twinsun.com>
752         * NEWS, make.texinfo: Document .LOW_RESOLUTION_TIME, which
753         supersedes --disable-nsec-timestamps.
754         * make.texinfo: Consistently use "time stamp" instead of "timestamp".
755         * README: Remove --disable-nsec-timestamps.
757         * filedef.h (struct file.low_resolution_time): New member.
758         * file.c (snap_deps): Add support for .LOW_RESOLUTION_TIME.
759         * remake.c (update_file_1):
760         Avoid spurious rebuilds due to low resolution time stamps,
761         generalizing the earlier code that applied only to archive members.
762         (f_mtime): Archive members always have low resolution time stamps.
764         * configure.in: Remove --disable-nsec-timestamps, as this has
765         been superseded by .LOW_RESOLUTION_TIME.
767 2000-07-23  Paul Eggert  <eggert@twinsun.com>
769         * configure.in (enable_nsec_timestamps): Renamed from
770         make_cv_nsec_timestamps, since enable/disable options
771         shouldn't be cached.
773 2000-07-23  Bruno Haible  <haible@clisp.cons.org>
774        and  Paul Eggert  <eggert@twinsun.com>
776         * file.c (file_timestamp_now):
777         Use preprocessor-time check for FILE_TIMESTAMP_HI_RES
778         so that clock_gettime is not linked unless needed.
780         * filedef.h (FILE_TIMESTAMP_HI_RES):
781         Remove definition; "configure" now does this.
783         * configure.in (jm_AC_TYPE_UINTMAX_T): Move up,
784         to before high resolution file timestamp check,
785         since that check now uses uintmax_t.
786         (FILE_TIMESTAMP_HI_RES): Define to nonzero if the code should use
787         high resolution file timestamps.
788         (HAVE_CLOCK_GETTIME): Do not define if !FILE_TIMESTAMP_HI_RES,
789         so that we don't link in clock_gettime unnecessarily.
791 2000-07-17  Paul D. Smith  <psmith@gnu.org>
793         * i18n/ja.po: New version of the translation file.
795 2000-07-07  Paul D. Smith  <psmith@gnu.org>
797         * remake.c (f_mtime): If NO_FLOAT is defined, don't bother with
798         the offset calculation.
799         (name_mtime): Replace EINTR test with EINTR_SET macro.
801 2000-07-07  Paul Eggert  <eggert@twinsun.com>
803         Fix for PR/1811:
805         * remake.c (update_file_1):
806         Avoid spurious rebuilds of archive members due to their
807         timestamp resolution being only one second.
808         (f_mtime): Avoid spurious warnings of timestamps in the future due to
809         the clock's resolution being lower than file timestamps'.
810         When warning about future timestamps, report only the discrepancy,
811         not the absolute value of the timestamp and the current time.
813         * file.c (file_timestamp_now): New arg RESOLUTION.
814         * filedef.h (file_timestamp_now): Likewise.
815         (FILE_TIMESTAMP_NS): Now returns int.  All uses changed.
817 2000-07-05  Paul D. Smith  <psmith@gnu.org>
819         * variable.c (lookup_variable) [VMS]: Remove vestigial references
820         to listp.  Fixes PR/1793.
822 2000-06-26  Paul Eggert  <eggert@twinsun.com>
824         * Makefile.am (MAINTAINERCLEANFILES): New macro, with stamp-pot in it.
826         * dir.c (vms_hash): Ensure ctype macro args are nonnegative.
828         * remake.c (f_mtime): Remove unused var memtime.
830 2000-06-25  Martin Buchholz  <martin@xemacs.org>
832         * make.texinfo, NEWS, TODO.private: Minor spelling corrections.
833         Ran spell-check on make.texinfo.
836 See ChangeLog.2 for earlier changes.