VirtualBox

source: kBuild/trunk/src/gmake/ChangeLog@ 225

Last change on this file since 225 was 154, checked in by bird, 20 years ago

This commit was generated by cvs2svn to compensate for changes in r153,
which included commits to RCS files with non-trunk default branches.

  • Property svn:eol-style set to native
File size: 50.2 KB
Line 
12004-03-06 Paul D. Smith <[email protected]>
2
3 * configure.in (HAVE_ANSI_COMPILER): Define if we have an ANSI/ISO
4 compiler.
5 * make.h: Convert uses of __STDC__ to HAVE_ANSI_COMPILER.
6 * misc.c (message,error,fatal): Ditto.
7 * configh.dos.template: Define HAVE_ANSI_COMPILER.
8 * config.h.W32.template: Ditto.
9 * config.h-vms.template: Ditto.
10 * config.ami.template: Ditto.
11
122004-03-04 Paul D. Smith <[email protected]>
13
14 * README.template: Add a note about broken /bin/sh on SunOS
15 4.1.3_U1 & 4.1.4. Fix up Savannah links.
16
17 * misc.c (message, error, fatal): Don't use "..." if we're using
18 varargs. ansi2knr should handle this but it doesn't work: it
19 translates "..." to va_dcl etc. but _AFTER_ the preprocessor is
20 done. On many systems (SunOS for example) va_dcl is a #define.
21 So, force the use of the non-"..." version on pre-ANSI compilers.
22
23 * maintMakefile (sign-dist): Create some rules to help automate
24 the new GNU ftp upload method.
25
262004-02-24 Paul D. Smith <[email protected]>
27
28 * config.h.W32.template: Add HAVE_STDARG_H
29 * config.h-vms.template: Ditto.
30 * config.ami.template: Ditto.
31
322004-02-23 Jonathan Grant <[email protected]>
33
34 * README.W32.template: Add a notation about -j with BATCH_MODE_ONLY.
35 * build_w32.bat: Remove extra "+".
36
372004-02-23 Paul D. Smith <[email protected]>
38
39 * make.h: Create an UNUSED macro to mark unused parameters.
40 * (many): Clean up warnings by applying UNUSED, fixing
41 signed/unsigned incompatibilities, etc.
42
43 * acinclude.m4 (AC_STRUCT_ST_MTIM_NSEC): Add quoting to silence
44 autoconf warnings.
45 * filedef.h: Name the command_state enumeration.
46 * file.c (set_command_state): Use the enumeration in the function
47 argument.
48
49 * configure.in: Explicitly set SET_MAKE to empty, to disable
50 MAKE=make even when no make already exists. Fix bug #3823.
51
522004-02-22 Paul D. Smith <[email protected]>
53
54 * maintMakefile: Perl script to clean up all non-CVS files. Use
55 it on all the subdirectories for the cvs-clean target.
56
57 * main.c (decode_switches): Require non-empty strings for all our
58 string command-line options. Fixes Debian bug # 164165.
59
60 * configure.in: Check for stdarg.h and varargs.h.
61 * make.h (USE_VARIADIC): Set this if we can use variadic functions
62 for printing messages.
63 * misc.c: Check USE_VARIADIC instead of (obsolete) HAVE_STDVARARGS.
64 (message): Ditto.
65 (error): Ditto.
66 (fatal): Ditto.
67
68 A number of patches for OS/2 support from Andreas Buening
69 <[email protected]>:
70
71 * job.c (child_handler) [OS/2]: Allow this on OS/2 but we have to
72 disable the SIGCHLD handler.
73 (reap_children) [OS/2]: Remove special handling of job_rfd.
74 (set_child_handler_action_flags) [OS/2]: Use this function in OS/2.
75 (new_job) [OS/2]: Disable the SIGCHLD handler on OS/2.
76 * main.c (main) [OS/2]: Special handling for paths in OS/2.
77 * configure.in [OS/2]: Force SA_RESTART for OS/2.
78 * Makefile.am (check-regression): Use $(EXEEXT) for Windows-type
79 systems.
80
812004-02-21 Paul D. Smith <[email protected]>
82
83 * w32/subproc/sub_proc.c (process_easy) [W32]: Christoph Schulz
84 <[email protected]> reports that if process_begin() fails we don't
85 handle the error condition correctly in all cases.
86 * w32/subproc/w32err.c (map_windows32_error_to_string): Make sure
87 to have a newline on the message.
88
89 * job.c (construct_command_argv_internal): Add "test" to UNIX
90 sh_cmds[]. Fixes Savannah bug # 7606.
91
922004-02-04 Paul D. Smith <[email protected]>
93
94 * job.c (vms_handle_apos) [VMS]: Fix various string handling
95 situations in VMS DCL. Fixes Savannah bug #5533. Fix provided by
96 Hartmut Becker <[email protected]>.
97
982004-01-21 Paul D. Smith <[email protected]>
99
100 * job.c (load_too_high): Implement an algorithm to control the
101 "thundering herd" problem when using -l to control job creation
102 via the load average. The system only recomputes the load once a
103 second but we can start many jobs in a second. To solve this we
104 keep track of the number of jobs started in the last second and
105 apply a weight to try to guess what a correct load would be.
106 The algorithm was provided by Thomas Riedl <[email protected]>.
107 Also fixes bug #4693.
108 (reap_children): Decrease the job count for this second.
109 (start_job_command): Increase the job count for this second.
110
111 * read.c (conditional_line): Expand the text after ifn?def before
112 checking to see if it's a single word. Fixes bug #7257.
113
1142004-01-09 Paul D. Smith <[email protected]>
115
116 * file.c (print_file): Recurse to print all targets in
117 double-colon rules. Fixes bug #4518, reported (with patch) by
118 Andrew Chatham <[email protected]>.
119
1202004-01-07 Paul D. Smith <[email protected]>
121
122 * acinclude.m4: Remove make_FUNC_SETVBUF_REVERSED.
123 * configure.in: Change make_FUNC_SETVBUF_REVERSED to
124 AC_FUNC_SETVBUF_REVERSED.
125
126 * doc/make.texi (Target-specific): Fix Savannah bug #1772.
127 (MAKE Variable): Fix Savannah bug #4898.
128
129 * job.c (construct_command_argv_internal): Add "!" to the list of
130 shell escape chars. POSIX sh allows it to appear before a
131 command, to negate the exit code. Fixes bug #6404.
132
133 * implicit.c (pattern_search): When matching an implicit rule,
134 remember which dependencies have the ignore_mtime flag set.
135 Original fix provided in Savannah patch #2349, by Benoit
136 Poulot-Cazajous <[email protected]>.
137
1382003-11-22 Paul D. Smith <[email protected]>
139
140 * README.W32.template (Outputs): Clarification on -j with
141 BATCH_MODE_ONLY_SEHLL suggested by Jonathan R. Grant
142 <[email protected]>.
143
1442003-11-02 Paul D. Smith <[email protected]>
145
146 * function.c (func_if): Strip all the trailing whitespace from the
147 condition, then don't expand it. Fixed bug # 5798.
148
149 * expand.c (recursively_expand_for_file): If we're expanding a
150 variable with no file context, then use the variable's context.
151 Fixes bug # 6195.
152
1532003-10-21 Paul D. Smith <[email protected]>
154
155 * main.c (log_working_directory): Add newlines to printf()s.
156
157 * README.cvs: Add a note to ignore warnings during autoreconf.
158
159 * maintMakefile (po_repo): Set a new URL for PO file updates.
160 (get-config/config.guess get-config/config.sub): Get these files
161 from the Savannah config project instead of ftp.gnu.org.
162
1632003-08-22 Paul D. Smith <[email protected]>
164
165 * misc.c (xmalloc, xrealloc): Add one to 0 sizes, to cater to
166 systems which don't yet implement the C89 standard :-/.
167
1682003-07-18 Paul D. Smith <[email protected]>
169
170 * dir.c (directory_contents_hash_1, directory_contents_hash_1)
171 [WINDOWS32]: Initialize hash.
172
1732003-06-19 Earnie Boyd <[email protected]>
174
175 * dir.c (read_dirstream): Provide a workaround for broken versions of
176 the MinGW dirent structure.
177
1782003-05-30 Earnie Boyd <[email protected]>
179
180 * w32/include/dirent.h: Add __MINGW32__ filter.
181
1822003-05-30 Earnie Boyd <[email protected]>
183
184 * make.h: Add global declaration of *make_host.
185 * main.c (print_usage): Remove local declaration of *make_host.
186 (print_version): Display "This program built for ..." after Copyright
187 notice.
188
1892003-05-30 Earnie Boyd <[email protected]>
190
191 * doc/make.texi: Change "ifinfo" to "ifnottex" as suggested by the
192 execution of "makeinfo --html make.texi".
193
1942003-04-30 Paul D. Smith <[email protected]>
195
196 * build.template: Make some changes to maybe allow this script to
197 work on DOS/Windows/OS2 systems. Suggested by Andreas Buening.
198
199 * README.OS2.template: New file for OS/2 support. Original
200 contributed by Andreas Buening.
201 * configure.in: Invoke new pds_AC_DOS_PATHS macro to test for
202 DOS-style paths.
203
2042003-04-19 Paul D. Smith <[email protected]>
205
206 Fix bug #1405: allow a target to match multiple pattern-specific
207 variables.
208
209 * rule.c (create_pattern_var, lookup_pattern_var): Move these to
210 variable.c, where they've always belonged.
211 * rule.h: Move the prototypes and struct pattern_var as well.
212 * variable.c (initialize_file_variables): Invoke
213 lookup_pattern_var() in a loop, until no more matches are found.
214 If a match is found, create a new variable set for the target's
215 pattern variables. Then merge the contents of each matching
216 pattern variable set into the target's pattern variable set.
217 (lookup_pattern_var): Change this function to be usable
218 in a loop. It takes a starting position: if NULL, start at the
219 beginning; if non-NULL, start with the pattern variable after that
220 position, and return the next matching pattern.
221 (create_pattern_var): Create a unique instance of
222 pattern-specific variables for every definition in the makefile.
223 Don't combine the same pattern together. This allows us to
224 process the variable handling properly even when the same pattern
225 is used multiple times.
226 (parse_variable_definition): New function: break out the parsing
227 of a variable definition line from try_variable_definition.
228 (try_variable_definition): Call parse_variable_definition to
229 parse.
230 (print_variable_data_base): Print out pattern-specific variables.
231 * variable.h (struct variable): Remember when a variable is
232 conditional. Also remember its flavor.
233 (struct pattern_var): Instead of keeping a variable set, we just
234 keep a single variable for each pattern.
235 * read.c (record_target_var): Each pattern variable contains only a
236 single variable, not a set, so create it properly.
237 * doc/make.texi (Pattern-specific): Document the new behavior.
238
2392003-04-17 Paul D. Smith <[email protected]>
240
241 * dir.c (file_exists_p) [VMS]: Patch provided with Bug #3018 by
242 Jean-Pierre Portier <[email protected]>. I don't understand the
243 file/directory naming rules for VMS so I can't tell whether this
244 is correct or not.
245
2462003-04-09 Paul D. Smith <[email protected]>
247
248 * configure.in (HAVE_DOS_PATHS): Define this on systems that need
249 DOS-style pathnames: backslash separators and drive specifiers.
250
2512003-03-28 Paul D. Smith <[email protected]>
252
253 * file.c (snap_deps): If .SECONDARY with no targets is given, set
254 the intermediate flag on all targets. Fixes bug #2515.
255
2562003-03-24 Paul D. Smith <[email protected]>
257
258 * configure.in, Makefile.am, glob/Makefile.am, doc/Makefile.am:
259 Upgrade to autoconf 2.57 and automake 1.7.3.
260
261 * job.c: More OS/2 changes from Andreas Buening.
262
263 * file.c (print_file): Fix variable initialization.
264 Fixes bug #2892.
265
266 * remake.c (notice_finished_file):
267
268 * make.h (ENULLLOOP): Set errno = 0 before invoking the command;
269 some calls (like readdir()) return NULL in valid situations
270 without resetting errno. Fixes bug #2846.
271
2722003-02-25 Paul D. Smith <[email protected]>
273
274 Port to OS/2 (__EMX__) by Andreas Buening <[email protected]>.
275
276 * job.c (_is_unixy_shell) [OS/2]: New function.
277 Set default shell to /bin/sh.
278 (reap_children): Close the job_rfd pipe here since we don't use a
279 SIGCHLD handler.
280 (set_child_handler_action_flags): define this to empty on OS/2.
281 (start_job_command): Close the jobserver pipe and use
282 child_execute_job() instead of fork/exec.
283 (child_execute_job): Rewrite to handle stdin/stdout FDs and spawn
284 rather than exec'ing, then reconfigure stdin/stdout.
285 (exec_command): Rewrite to use spawn instead of exec. Return the
286 PID of the child.
287
288 * main.c (main) [OS/2]: Call initialize_main(). Handle argv[0] as
289 in DOS. Handle the TEMP environment variable as in DOS. Don't
290 use a SIGCHLD handler on OS/2. Choose a shell as in DOS. Don't
291 use -j in DOS mode. Use child_execute_job() instead of
292 exec_command().
293
294 * function.c (func_shell) [OS/2]: Can't use fork/exec on OS/2: use
295 spawn() instead.
296
297 * job.h [OS/2]: Move CLOSE_ON_EXEC here from job.c. Add
298 prototypes that return values.
299
300 * remake.c (f_mtime) [OS/2]: Handle FAT timestamp offsets for OS/2.
301
302 * read.c (readline) [OS/2]: Don't handle CRLF specially on OS/2.
303 * default.c (default_suffixes) [OS/2]: Set proper default suffixes
304 for OS/2.
305 * vpath.c (construct_vpath_list) [OS/2]: Handle OS/2 paths like
306 DOS paths.
307
3082003-02-24 Paul D. Smith <[email protected]>
309
310 * default.c [VMS]: New default rules for .cxx -> .obj compiles.
311 * job.c (child_execute_job) [VMS]: New code for handling spawn().
312 (child_execute_job) [VMS]: Handle error status properly.
313 Patches provided by Hartmut Becker <[email protected]>.
314
315 * function.c (func_shell): Use EINTRLOOP() while reading from the
316 subshell pipe (Fixes bug #2502).
317 * job.c (free_child): Use EINTRLOOP() while writing tokens to the
318 jobserver pipe.
319 * main.c (main): Ditto.
320
3212003-01-30 Paul D. Smith <[email protected]>
322
323 * read.c (eval): eval() was not fully reentrant, because the
324 collapsed buffer was static. Change it to be an automatic
325 variable so that eval() can be invoked recursively.
326 Fixes bug # 2238.
327 (eval): Apply patch # 1022: fix memory reference error on long
328 target-specific variable lines.
329 Patch provided by Steve Brown <[email protected]>.
330
331 * function.c (check_numeric): Combine the is_numeric() function
332 into this function, since it's only called from one place.
333 Constify this function. Have it print the incorrect string in the
334 error message. Fixes bug #2407.
335 (strip_whitespace): Constify.
336 (func_if): Constify.
337 * expand.c (expand_argument): Constify.
338
3392003-01-29 Paul D. Smith <[email protected]>
340
341 Fix bug # 2169, also reported by other people on various systems.
342
343 * make.h: Some systems, such as Solaris and PTX, do not fully
344 implement POSIX-compliant SA_RESTART functionality; important
345 system calls like stat() and readdir() can still fail with EINTR
346 even if SA_RESTART has been set on the signal handler. So,
347 introduce macros EINTRLOOP() and ENULLLOOP() which can loop on
348 EINTR for system calls which return -1 or 0 (NULL), respectively,
349 on error.
350 Also, remove the old atomic_stat()/atomic_readdir() and
351 HAVE_BROKEN_RESTART handling.
352
353 * configure.in: Remove setting of HAVE_BROKEN_RESTART.
354
355 * arscan.c (ar_member_touch): Use EINTRLOOP() to wrap fstat().
356 * remake.c (touch_file): Ditto.
357
358 * commands.c (delete_target): Use EINTRLOOP() to wrap stat().
359 * read.c (construct_include_path): Ditto.
360 * remake.c (name_mtime): Ditto.
361 * vpath.c (selective_vpath_search): Ditto.
362 * dir.c (find_directory): Ditto.
363 (local_stat): Ditto.
364 (find_directory): Use ENULLLOOP() to wrap opendir().
365 (dir_contents_file_exists_p): Use ENULLLOOP() to wrap readdir().
366
367 * misc.c: Remove HAVE_BROKEN_RESTART, atomic_stat(), and
368 atomic_readdir() handling.
369
3702003-01-22 Paul D. Smith <[email protected]>
371
372 * function.c (func_call): Fix Bug #1744. If we're inside a
373 recursive invocation of $(call ...), mask any of the outer
374 invocation's arguments that aren't used by this one, so that this
375 invocation doesn't "inherit" them accidentally.
376
3772002-12-05 Paul D. Smith <[email protected]>
378
379 * function.c (subst_expand): Valery Khamenia reported a
380 pathological performance hit when doing substitutions on very
381 large values with lots of words: turns out we were invoking
382 strlen() a ridiculous number of times. Instead of having each
383 call to sindex() call strlen() again, keep track of how much of
384 the text we've seen and pass the length to sindex().
385
3862002-11-19 Paul D. Smith <[email protected]>
387
388 * README.cvs, configure.in: Upgrade to require autoconf 2.56.
389
390
3912002-11-16 Paul D. Smith <[email protected]>
392
393 * NMakefile.template (OBJS): Add hash.c object file.
394 * SMakefile.template (srcs): Ditto.
395 * Makefile.ami (objs): Ditto.
396 * build_w32.bat: Ditto.
397
398 * Makefile.DOS.template: Remove extra dependencies.
399
4002002-10-25 Paul D. Smith <[email protected]>
401
402 * expand.c (install_variable_buffer): New function. Install a new
403 variable_buffer context and return the previous one.
404 (restore_variable_buffer): New function. Free the current
405 variable_buffer context and put a previously saved one back.
406 * variable.h: Prototypes for {install,restore}_variable_buffer.
407 * function.c (func_eval): Push a new variable_buffer context
408 before we eval, then restore the old one when we're done.
409 Fixes Bug #1517.
410
411 * read.c (install_conditionals): New function. Install a new
412 conditional context and return the previous one.
413 (restore_conditionals): New function. Free the current
414 conditional context and put a previously saved one back.
415 (eval): Use the {install,restore}_conditionals for "include"
416 handling.
417 (eval_buffer): Use {install,restore}_conditionals to preserve the
418 present conditional state before we evaluate the buffer.
419 Fixes Bug #1516.
420
421 * doc/make.texi (Quick Reference): Add references to $(eval ...)
422 and $(value ...).
423 (Recursion): Add a variable index entry for CURDIR.
424
425 * README.cvs: Update to appropriate versions.
426 * Makefile.am (nodist_loadavg_SOURCES): automake gurus point out I
427 don't need to copy loadavg.c: automake is smart enough to create
428 it for me. Still have a bug in automake related to ansi2knr tho.
429
4302002-10-14 Paul D. Smith <[email protected]>
431
432 * remake.c (notice_finished_file): Only touch targets if they have
433 at least one command (as per POSIX). Resolve Bug #1418.
434
435 * *.c: Convert to using ANSI C-style function definitions.
436 * Makefile.am: Enable the ansi2knr feature of automake.
437 * configure.in: ditto.
438
4392002-10-13 Paul D. Smith <[email protected]>
440
441 * commands.c (set_file_variables): Bug #1379: Don't use alloca()
442 for automatic variable values like $^, etc. In the case of very
443 large lists of prerequisites this causes problems. Instead reuse
444 a static buffer (resizeable) for each variable.
445
446 * read.c (eval): Fix Bug #1391: allow "export" keyword in
447 target-specific variable definitions. Check for it and set an
448 "exported" flag.
449 (record_target_var): Set the export field to v_export if the
450 "exported" flag is set.
451 * doc/make.texi (Target-specific): Document the ability to use
452 "export".
453
454 * doc/make.texi: Change the name of the section on automatic
455 variables from "Automatic" to "Automatic Variables". Added text
456 clarifying the scope of automatic variables.
457
4582002-10-04 Paul D. Smith <[email protected]>
459
460 * read.c (eval): Allow SysV $$@ variables to use {} braces as well
461 as () braces.
462 (record_files): Ditto.
463
464 * expand.c (variable_expand_string): In $(A:x=y) expansion limit
465 the search for the '=' to only within the enclosing parens.
466
4672002-10-03 Paul D. Smith <[email protected]>
468
469 Version 3.80 released.
470
471 * dir.c: Change hash functions to use K&R function definition style.
472 * function.c: Ditto.
473 * read.c: Ditto.
474 * variable.c: Ditto.
475
476 Update to automake 1.7.
477
478 * Makefile.am (AUTOMAKE_OPTIONS): Update to require 1.7.
479 (pdf): Remove this target as automake now provides one.
480
481 * configure.in: Change AM_CONFIG_HEADER to AC_CONFIG_HEADERS.
482
4832002-09-30 Martin P.J. Zinser <[email protected]>
484
485 * makefile.com: Updates for GNU make 3.80.
486 * makefile.vms: Ditto.
487
4882002-09-23 Paul D. Smith <[email protected]>
489
490 * read.c (enum make_word_type): Remove w_comment.
491 (get_next_mword): Don't treat comment characters as special; where
492 this function is used we will never see a comment (it's stripped
493 before we get here) and treating comments specially means that
494 targets like "foo\#bar" aren't handled properly.
495
4962002-09-18 Paul D. Smith <[email protected]>
497
498 * doc/make.texi (Bugs): Update with some info on Savannah, etc.
499
500 * read.c (eval): Expansion of arguments to export/unexport was
501 ignoring all arguments after the first one. Change the algorithm
502 to expand the whole line once, then parse the results.
503
5042002-09-17 Paul D. Smith <[email protected]>
505
506 Fix Bug #940 (plus another bug I found while looking at this):
507
508 * read.c (record_target_var): enter_file() will add a new entry if
509 it's a double-colon target: we don't want to do that in this
510 situation. Invoke lookup_file() and only enter_file() if it does
511 not already exist. If the file we get back is a double-colon then
512 add this variable to the "root" double-colon target.
513
514 * variable.c (initialize_file_variables): If this file is a
515 double-colon target but is not the "root" target, then initialize
516 the root and make the root's variable list the parent of our
517 variable list.
518
5192002-09-13 Paul D. Smith <[email protected]>
520
521 * doc/make.texi (MAKE Variable): Add some indexing for "+".
522
523 * hash.c (round_up_2): Get rid of a warning.
524
5252002-09-12 Paul D. Smith <[email protected]>
526
527 * Makefile.am (loadavg_SOURCES, loadavg.c): Tiptoe around automake
528 so it doesn't complain about getloadavg.c.
529
530 * commands.c (set_file_variables): Make sure we always alloca() at
531 least 1 character for the value of $? (for '\0').
532
5332002-09-11 Paul D. Smith <[email protected]>
534
535 * hash.h (STRING_COMPARE, ISTRING_COMPARE, STRING_N_COMPARE): Fix
536 macro to use RESULT instead of the incorrect _RESULT_.
537
538 * make.h (HAVE_BROKEN_RESTART): Add prototypes for atomic_stat()
539 and atomic_readdir(). We need to #include dirent.h to get this to
540 work.
541 * misc.c (atomic_readdir): Fix typos.
542
5432002-09-10 Paul D. Smith <[email protected]>
544
545 * read.c (eval): Expand variable lists given to export and
546 unexport, so that "export $(LIST_OF_VARIABLES)" (etc.) works.
547 (conditional_line): Ditto for "ifdef". Fixes bug #103.
548
549 * doc/make.texi (Variables/Recursion): Document this.
550 (Conditional Syntax): And here.
551
5522002-09-09 Paul D. Smith <[email protected]>
553
554 * configure.in: Check for memmove().
555
5562002-09-07 Paul D. Smith <[email protected]>
557
558 * configure.in (HAVE_BROKEN_RESTART): Define this on PTX systems;
559 Michael Sterrett <[email protected]> reports that while it has
560 SA_RESTART, it does not work properly.
561
562 * misc.c (atomic_stat): If HAVE_BROKEN_RESTART, create a function
563 that invokes stat() and loops to do it again if it returns EINTR.
564 (atomic_readdir): Ditto, with readdir().
565
566 * make.h (stat, readdir): If HAVE_BROKEN_RESTART, alias stat()
567 and readdir() to atomic_stat() and atomic_readdir().
568
5692002-09-04 Paul D. Smith <[email protected]>
570
571 * implicit.c (pattern_search): Daniel <[email protected]>
572 reports that GNU make sometimes doesn't recognize that targets can
573 be made, when directories can be created as prerequisites. He
574 reports that changing the order of predicates in the DEP->changed
575 flag test so that lookup_file() is always performed, solves this
576 problem.
577
5782002-08-08 Paul D. Smith <[email protected]>
579
580 * configure.in: Require a newer version of gettext.
581
582 * misc.c (perror_with_name): Translate the format string (for
583 right-to-left language support).
584 (pfatal_with_name): Ditto.
585
586 * main.c: Create a static array of strings to store the usage
587 text. This is done to facilitate translations.
588 (struct command_switch): Remove argdesc and description fields.
589 (switches): Remove values for obsolete fields.
590 (print_usage): Print each element of the usage array.
591
592 * hash.c: Change function definitions to be K&R style.
593
5942002-08-02 Paul D. Smith <[email protected]>
595
596 * NEWS: Remove the mention of .TARGETS; we aren't going to publish
597 this one because it's too hard to get right. We'll look at it for
598 a future release.
599 * main.c (main): Don't create the .TARGETS variable.
600 * variable.c (handle_special_var): Don't handle .TARGETS.
601
6022002-08-01 Paul D. Smith <[email protected]>
603
604 * main.c (switches): Add a new option, -B (--always-make). If
605 specified, make will rebuild all targets that it encounters even
606 if they don't appear to be out of date.
607 (always_make_flag): New flag.
608 * make.h: Extern always_make_flag.
609 * remake.c (update_file_1): Check always_make_flag; if it's set we
610 will always rebuild any target we can, even if none of its
611 prerequisites are newer.
612 * NEWS: Mention it.
613
614 * doc/make.texi (Shell Function): Make it clear that make
615 variables marked as "export" are not passed to instances of the
616 shell function.
617
618 Add new introspection variable .VARIABLES and .TARGETS.
619
620 * variable.c (handle_special_var): New function. If the variable
621 reference passed in is "special" (.VARIABLES or .TARGETS),
622 calculate the new value if necessary. .VARIABLES is handled here:
623 walk through the hash of defined variables and construct a value
624 which is a list of the names. .TARGETS is handled by
625 build_target_list().
626 (lookup_variable): Invoke handle_special_var().
627 * file.c (build_target_list): Walk through the hask of known files
628 and construct a list of the names of all the ones marked as
629 targets.
630 * main.c (main): Initialize them to empty (and as simple variables).
631 * doc/make.texi (Special Variables): Document them.
632 * NEWS: Mention them.
633
634 * variable.h (struct variable): Add a new flag "exportable" which
635 is true if the variable name is valid for export.
636 * variable.c (define_variable_in_set): Set "exportable" when a new
637 variable is defined.
638 (target_environment): Use the "exportable" flag instead of
639 re-checking the name here... an efficiency improvement.
640
6412002-07-31 Paul D. Smith <[email protected]>
642
643 * config.h-vms.template: Updates to build on VMS. Thanks to
644 [email protected] for helping verify the build.
645 * makefile.com: Build the new hash.c file.
646 * hash.h: Use strcpmi(), not stricmp(), in the
647 HAVE_CASE_INSENSITIVE_FS case.
648
6492002-07-30 Paul D. Smith <[email protected]>
650
651 * hash.h (ISTRING_COMPARE, return_ISTRING_COMPARE): Add missing
652 backslashes to the HAVE_CASE_INSENSITIVE_FS case.
653 Reported by <[email protected]>.
654
6552002-07-10 Paul D. Smith <[email protected]>
656
657 * variable.c (pop_variable_scope): Remove variable made unused by
658 new hash infrastructure.
659 * read.c (dep_hash_cmp): Rewrite this to handle ignore_mtime
660 comparisons as well as name comparisons.
661 * variable.h: Add a prototype for new hash_init_function_table().
662 * file.c (lookup_file): Remove variables made unused by new hash
663 infrastructure.
664 * dir.c (directory_contents_hash_2): Missing return of hash value.
665 (dir_contents_file_exists_p): Remove variables made unused by new
666 hash infrastructure.
667
668
669 Installed Greg McGary's integration of the hash functions from the
670 GNU id-utils package:
671
6722002-07-10 Greg McGary <[email protected]>
673
674 * scripts/functions/filter-out: Add literals to to the
675 pattern space in order to add complexity, and trigger
676 use of an internal hash table. Fix documentation strings.
677 * scripts/targets/INTERMEDIATE: Reverse order of files
678 passed to expected `rm' command.
679
6802002-07-10 Greg McGary <[email protected]>
681
682 * Makefile.am (SRCS): Add hash.c (noinst_HEADERS): Add hash.h
683 * hash.c: New file, taken from id-utils.
684 * hash.h: New file, taken from id-utils.
685
686 * make.h (HASH, HASHI): Remove macros.
687 (find_char_unquote): Change arglist in decl.
688 (hash_init_directories): New function decl.
689 * variable.h (hash.h): New #include.
690 (MAKELEVEL_NAME, MAKELEVEL_LENGTH): New constants.
691 * filedef.h (hash.h): New #include.
692 (struct file) [next]: Remove member.
693 (file_hash_enter): Remove function decl.
694 (init_hash_files): New function decl.
695
696 * ar.c (ar_name): Delay call to strlen until needed.
697 * main.c (initialize_global_hash_tables): New function.
698 (main): Call it. Use MAKELEVEL_NAME & MAKELEVEL_LENGTH.
699 * misc.c (remove_comments): Pass char constants to find_char_unquote.
700 * remake.c (notice_finished_file): Update last_mtime on `prev' chain.
701
702 * dir.c (hash.h): New #include.
703 (struct directory_contents) [next, files]: Remove members.
704 [ctime]: Add member for VMS. [dirfiles]: Add hash-table member.
705 (directory_contents_hash_1, directory_contents_hash_2,
706 directory_contents_hash_cmp): New functions.
707 (directories_contents): Change type to `struct hash_table'.
708 (struct directory) [next]: Remove member.
709 (directory_hash_1, directory_hash_2, directory_hash_cmp): New funcs.
710 (directory): Change type to `struct hash_table'.
711 (struct dirfile) [next]: Remove member.
712 [length]: Add member. [impossible]: widen type to fill alignment gap.
713 (dirfile_hash_1, dirfile_hash_2, dirfile_hash_cmp): New functions.
714 (find_directory): Use new hash table package.
715 (dir_contents_file_exists_p): Likewise.
716 (file_impossible): Likewise.
717 (file_impossible_p): Likewise.
718 (print_dir_data_base): Likewise.
719 (open_dirstream): Likewise.
720 (read_dirstream): Likewise.
721 (hash_init_directories): New function.
722
723 * file.c (hash.h): New #include.
724 (file_hash_1, file_hash_2, file_hash_cmp): New functions.
725 (files): Change type to `struct hash_table'.
726 (lookup_file): Use new hash table package.
727 (enter_file): Likewise.
728 (remove_intermediates): Likewise.
729 (snap_deps): Likewise.
730 (print_file_data_base): Likewise.
731
732 * function.c
733 (function_table_entry_hash_1, function_table_entry_hash_2,
734 function_table_entry_hash_cmp): New functions.
735 (lookup_function): Remove `table' argument.
736 Use new hash table package.
737 (struct a_word) [chain, length]: New members.
738 (a_word_hash_1, a_word_hash_2, a_word_hash_cmp): New functions.
739 (struct a_pattern): New struct.
740 (func_filter_filterout): Pass through patterns noting boundaries
741 and '%', if present. Note a_word length. Use a hash table if
742 arglists are large enough to justify cost.
743 (function_table_init): Renamed from function_table.
744 (function_table): Declare as `struct hash_table'.
745 (FUNCTION_TABLE_ENTRIES): New constant.
746 (hash_init_function_table): New function.
747
748 * read.c (hash.h): New #include.
749 (read_makefile): Pass char constants to find_char_unquote.
750 (dep_hash_1, dep_hash_2, dep_hash_cmp): New functions.
751 (uniquize_deps): Use hash table to efficiently identify duplicates.
752 (find_char_unquote): Accept two char-constant stop chars, rather
753 than a string constant, avoiding zillions of calls to strchr.
754 Tighten inner search loops to test only for desired delimiters.
755
756 * variable.c (variable_hash_1, variable_hash_2,
757 variable_hash_cmp): New functions.
758 (variable_table): Declare as `struct hash_table'.
759 (global_variable_set): Remove initialization.
760 (init_hash_global_variable_set): New function.
761 (define_variable_in_set): Use new hash table package.
762 (lookup_variable): Likewise.
763 (lookup_variable_in_set): Likewise.
764 (initialize_file_variables): Likewise.
765 (pop_variable_scope): Likewise.
766 (create_new_variable_set): Likewise.
767 (merge_variable_sets): Likewise.
768 (define_automatic_variables): Likewise.
769 (target_environment): Likewise.
770 (print_variable_set): Likewise.
771
7722002-07-10 Paul D. Smith <[email protected]>
773
774 Implement the SysV make syntax $$@, $$(@D), and $$(@F) in the
775 prerequisite list. A real SysV make will expand the entire
776 prerequisites list _twice_: we don't do that as it's a big
777 backward-compatibility problem. We only replace those specific
778 variables.
779
780 * read.c (record_files): Replace any $@, $(@D), and $(@F) variable
781 references left in the list of prerequisites. Check for .POSIX as
782 we record targets, so we can disable non-POSIX behavior while
783 reading makefiles as well as running them.
784 (eval): Check the prerequisite list to see if we have anything
785 that looks like a SysV prerequisite variable reference.
786
7872002-07-09 Paul D. Smith <[email protected]>
788
789 * doc/make.texi (Prerequisite Types): Add a new section describing
790 order-only prerequisites.
791
792 * read.c (uniquize_deps): If we have the same file as both a
793 normal and order-only prereq, get rid of the order-only prereq,
794 since the normal one supersedes it.
795
7962002-07-08 Paul D. Smith <[email protected]>
797
798 * AUTHORS: Added Greg McGary to the AUTHORS file.
799 * NEWS: Blurbed order-only prerequisites.
800 * file.c (print_file): Show order-only deps properly when printing
801 the database.
802
803 * maintMakefile: Add "update" targets for wget'ing the latest
804 versions of various external files. Taken from Makefile.maint in
805 autoconf, etc.
806
807 * dosbuild.bat: Somehow we got _double_ ^M's. Remove them.
808 Reported by Eli Zaretskii <[email protected]>.
809
8102002-07-07 Paul D. Smith <[email protected]>
811
812 * po/*.po: Remove. We'll use wget to retrieve them at release
813 time.
814
815 * variable.c (do_variable_definition) [W32]: On W32 using cmd
816 rather than a shell you get an exception. Make sure we look up
817 the variable. Patch provided by Eli Zaretskii <[email protected]>.
818
819 * remake.c (notice_finished_file): Fix handling of -t flag.
820 Patch provided by Henning Makholm <[email protected]>.
821
822 * implicit.c (pattern_search): Some systems apparently run short
823 of stack space, and using alloca() in this function caused an
824 overrun. I modified it to use xmalloc() on the two variables
825 which seemed like they might get large. Fixes Bug #476.
826
827 * main.c (print_version): Update copyright notice to conform with
828 GNU standards.
829 (print_usage): Update help output.
830
831 * function.c (func_eval): Create a new make function, $(eval
832 ...). Expand the arguments, put them into a buffer, then invoke
833 eval_buffer() on the resulting string.
834 (func_quote): Create a new function, $(quote VARNAME). Inserts
835 the value of the variable VARNAME without expanding it any
836 further.
837
838 * read.c (struct ebuffer): Change the linebuffer structure to an
839 "eval buffer", which can be either a file or a buffer.
840 (eval_makefile): Move the code in the old read_makefile() which
841 located a makefile into here: create a struct ebuffer with that
842 information. Have it invoke the new function eval() with that
843 ebuffer.
844 (eval_buffer): Create a new function that creates a struct ebuffer
845 that holds a string buffer instead of a file. Have it invoke
846 eval() with that ebuffer.
847 (eval): New function that contains the guts of the old
848 read_makefile() function: this function parses makefiles. Obtains
849 data to parse from the provided ebuffer. Some modifications to
850 make the flow of the function cleaner and clearer. Still could
851 use some work here...
852 (do_define): Takes a struct ebuffer instead of a FILE*. Read the
853 contents of the define/endef variable from the ebuffer.
854 (readstring): Read the next line from a string-style ebuffer.
855 (readline): Read the next line from an ebuffer. If it's a string
856 ebuffer, invoke readstring(). If it's a FILE* ebuffer, read it
857 from the file.
858
859 * dep.h (eval_buffer): Prototype eval_buffer();
860
861 * variable.c (do_variable_definition): Make sure that all
862 non-target-specific variables are registered in the global set.
863 If we're invoked from an $(eval ...) we might be inside a $(call
864 ...) or other function which has pushed a variable scope; we still
865 want to define our variables from evaluated makefile code in the
866 global scope.
867
8682002-07-03 Greg McGary <[email protected]>
869
870 * dep.h (struct dep) [ignore_mtime]: New member.
871 [changed]: convert to a bitfield.
872 * implicit.c (pattern_search): Zero ignore_mtime.
873 * main.c (main, handle_non_switch_argument): Likewise.
874 * rule.c (convert_suffix_rule): Likewise.
875 * read.c (read_all_makefiles, read_makefile, multi_glob): Likewise.
876 (read_makefile): Parse '|' in prerequisite list.
877 (uniquize_deps): Consider ignore_mtime when comparing deps.
878 * remake.c (update_file_1, check_dep): Don't force remake for
879 dependencies that have d->ignore_mtime.
880 * commands.c (FILE_LIST_SEPARATOR): New constant.
881 (set_file_variables): Don't include a
882 prerequisite in $+, $^ or $? if d->ignore_mtime.
883 Define $|.
884
8852002-06-18 Paul D. Smith <[email protected]>
886
887 * make.texinfo: Updates for next revision. New date/rev/etc.
888 Recreate all Info menus. Change license on the manual to the GNU
889 Free Documentation License. A number of typos.
890 (Variables Simplify): Don't use "-" before it's defined.
891 (Automatic Prerequisites): Rewrite the target example to work
892 properly if the compile fails. Remove incorrect comments about
893 how "set -e" behaves.
894 (Text Functions): Move the "word", "wordlist", "words", and
895 "firstword" functions here, from "File Name Functions".
896 * make-stds.texi: Update from latest GNU version.
897 * fdl.texi: (created) Import the latest GNU version.
898
8992002-06-06 Paul D. Smith <[email protected]>
900
901 * variable.c (do_variable_definition): New function: extract the
902 part of try_variable_definition() that actually sets the value
903 into a separate function.
904 (try_variable_definition): Call do_variable_definition() after
905 parsing the variable definition string.
906 (define_variable_in_set): Make the name argument const.
907
908 * variable.h (enum variable_flavor): Make public.
909 (do_variable_definition): Create prototype.
910
911 * read.c (read_all_makefiles): Create a new built-in variable,
912 MAKEFILE_LIST.
913 (read_makefile): Add each makefile read in to this variable value.
914
9152002-05-18 Eli Zaretskii <[email protected]>
916
917 * Makefile.DOS.template: Tweak according to changes in the
918 distribution. Add back the dependencies of *.o files.
919
920 * configh.dos.template: Synchronize with config.h.in.
921
9222002-05-09 Paul D. Smith <[email protected]>
923
924 * file.c (file_timestamp_now): Use K&R function declaration.
925
926 * getloadavg.c (getloadavg): Merge setlocale() fix from sh-utils
927 getloadavg.c. Autoconf thinks QNX is SVR4-like, but it isn't, so
928 #undef it. Remove predefined setup of NLIST_STRUCT. Decide
929 whether to include nlist.h based on HAVE_NLIST_H. Change obsolete
930 NLIST_NAME_UNION to new HAVE_STRUCT_NLIST_N_UN_N_NAME.
931 * configure.in (NLIST_STRUCT): Define this if we have nlist.h and
932 nlist.n_name is a pointer rather than an array.
933
934 * acinclude.m4 (make_FUNC_SETVBUF_REVERSED): Grab the latest
935 version of AC_FUNC_SETVBUF_REVERSED from autoconf CVS.
936 * configure.in: Use it instead of the old version.
937
938 * main.c (main): Prefer setvbuf() to setlinebuf().
939
9402002-05-08 Paul D. Smith <[email protected]>
941
942 * Makefile.am (make_LDADD): Add GETLOADAVG_LIBS.
943 (loadavg_LDADD): Ditto.
944
9452002-04-29 Paul D. Smith <[email protected]>
946
947 * expand.c (recursively_expand_for_file): Rename
948 recursively_expand() to recursively_expand_for_file() and provide
949 an extra argument, struct file. If the argument is provided, set
950 the variable scope to that of the file before expanding.
951 * variable.h (recursively_expand): Make this a macro that invokes
952 recursively_expand_for_file() with a NULL file pointer.
953 * variable.c (target_environment): Call the renamed function and
954 provide the current file context.
955 Fixes Debian bug #144306.
956
9572002-04-28 Paul D. Smith <[email protected]>
958
959 Allow $(call ...) user-defined variables to be self-referencing
960 without throwing an error. Allows implementation of transitive
961 closures, among other possibly useful things.
962 Requested by: Philip Guenther <[email protected]>
963
964 * variable.h (struct variable): Add a new field: exp_count, and
965 new macros to hold its size and maximum value.
966 (warn_undefined): Make this a macro.
967 * variable.c (define_variable_in_set): Initialize it.
968 * expand.c (recursively_expand): If we detect recursive expansion
969 of a variable, check the exp_count field. If it's greater than 0
970 allow the recursion and decrement the count.
971 (warn_undefined): Remove this (now a macro in variable.h).
972 * function.c (func_call): Before we expand the user-defined
973 function, modify its exp_count field to contain the maximum
974 number of recursive calls we'll allow. After the call, reset it
975 to 0.
976
9772002-04-21 Paul D. Smith <[email protected]>
978
979 Modified to use latest autoconf (2.53), automake (1.6.1), and
980 gettext (0.11.1). We're using gettext's new "external" support,
981 to avoid including libintl source with GNU make.
982
983 * README.cvs: New file. Explain how to build GNU make from CVS.
984
985 * configure.in: Modify checking for the system glob library.
986 Use AC_EGREP_CPP instead of AC_TRY_CPP. Remove the setting of
987 GLOBDIR (we will always put "glob" in SUBDIRS, so automake
988 etc. will manage it correctly). Set an automake conditional
989 USE_LOCAL_GLOB to decide whether to compile the glob library.
990
991 * getloadavg.c (main): Include make.h in the "TEST" program to
992 avoid warnings.
993
994 * Makefile.am: Remove special rules for loadavg. Replace them
995 with Automake capabilities for building extra programs.
996
997 * signame.c: This file does nothing if the system provide
998 strsignal(). If not, it implements strsignal(). If the system
999 doesn't define sys_siglist, then we make our own; otherwise we use
1000 the system version.
1001 * signame.h: Removed.
1002
1003 * main.c (main): No need to invoke signame_init(). Update copyright.
1004
1005 * ABOUT-NLS: Removed.
1006 * gettext.c: Removed.
1007 * gettext.h: Get a simplified copy from the gettext package.
1008 * po/*: Created.
1009 * i18n/*.po: Moved to po/.
1010 * i18n/: Removed.
1011
1012 * config/*: Created. Contains package configuration helper files.
1013 * config.guess, config.sub: Moved to config directory.
1014
1015 * configure.in (AC_CONFIG_FILES): Add po/Makefile.in, config/Makefile.
1016 Rework to use new-style autoconf features. Use the "external"
1017 mode for gettext. Make the build.sh config file conditional on
1018 whether build.sh.in exists, to avoid autoconf errors.
1019 * acinclude.m4: Removed almost all macros as being obsolete.
1020 Rewrote remaining macros to use AC_DEFINE.
1021 * acconfig.h: Removed.
1022
1023 * Makefile.am (EXTRA_DIST): Add config/config.rpath. Use a
1024 conditional to handle customs support. Remove special handling
1025 for i18n features.
1026
10272002-04-20 Paul D. Smith <[email protected]>
1028
1029 * function.c (func_call): Don't mark the argument variables $1,
1030 etc. as recursive. They've already been fully expanded so
1031 there's no need to do it again, and doing so strips escaped $'s.
1032 Reported by Sebastian Glita <[email protected]>.
1033
1034 * remake.c (notice_finished_file): Walk through double-colon
1035 entries via the prev field, not the next field!
1036 Reported by Greg McGary <[email protected]>.
1037
1038 * main.c (main): If the user specifies -q and asks for a specific
1039 target which is a makefile, we got an assert. In that case it
1040 turns out we should continue normally instead.
1041
1042 * i18n/de.po, i18n/fr.po: Installed an updated translation.
1043
1044 * i18n/he.po: Installed a new translation.
1045
10462002-01-07 Paul D. Smith <[email protected]>
1047
1048 * i18n/es.po, i18n/ru.po: Installed an updated translation.
1049
10502001-12-04 Paul D. Smith <[email protected]>
1051
1052 * i18n/ja.po: Installed an updated translation.
1053
10542001-09-04 Paul D. Smith <[email protected]>
1055
1056 * i18n/da.po: Installed an updated translation.
1057
10582001-08-03 Paul D. Smith <[email protected]>
1059
1060 * i18n/fr.po: Installed an updated translation.
1061 Resolves Debian bug #106720.
1062
10632001-06-13 Paul D. Smith <[email protected]>
1064
1065 * i18n/da.po, configure.in (ALL_LINGUAS): Installed a new
1066 translation.
1067
10682001-06-11 Paul D. Smith <[email protected]>
1069
1070 * i18n/ko.po: Installed a new translation.
1071
10722001-05-06 Paul D. Smith <[email protected]>
1073
1074 Modify the EINTR handling.
1075
1076 * job.c (new_job): Reorganize the jobserver algorithm. Reorder
1077 the way in which we manage the file descriptor/signal handler race
1078 trap to be more efficient.
1079
10802001-05-06 Paul Eggert <[email protected]>
1081
1082 Restart almost all system calls that are interrupted, instead
1083 of worrying about EINTR. The lone exception is the read() for
1084 job tokens.
1085
1086 * configure.in (HAVE_SA_RESTART): New macro.
1087 (MAKE_JOBSERVER): Define to 1 only if HAVE_SA_RESTART.
1088 * main.c (main): Use SA_RESTART instead of the old,
1089 nonstandard SA_INTERRUPT.
1090
1091 * configure.in (AC_CHECK_FUNCS): Add bsd_signal.
1092 * main.c (bsd_signal): New function or macro,
1093 if the implementation doesn't supply it.
1094 (The bsd_signal function will be in POSIX 1003.1-200x.)
1095 (HANDLESIG): Remove.
1096 (main, FATAL_SIG): Use bsd_signal instead of signal or HANDLESIG.
1097
1098 * make.h (EINTR_SET): Remove.
1099 (SA_RESTART): New macro.
1100
1101 * arscan.c (ar_member_touch): Don't worry about EINTR.
1102 * function.c (func_shell): Likewise.
1103 * job.c (reap_children, free_child, new_job): Likewise.
1104 * main.c (main): Likewise.
1105 * remake.c (touch_file, name_mtime): Likewise.
1106
1107 * arscan.c (ar_member_touch): Fix bug uncovered by EINTR removal;
1108 if fstat failed with errno!=EINTR, the error was ignored.
1109
1110 * job.c (set_child_handler_action_flags): New function.
1111 (new_job): Use it to temporarily clear the SIGCHLD action flags
1112 while reading the token.
1113
11142001-05-02 Paul D. Smith <[email protected]>
1115
1116 * job.c (start_job_command): Don't add define/endef per-line flags
1117 to the top-level flags setting.
1118
11192001-04-03 Paul D. Smith <[email protected]>
1120
1121 * arscan.c (VMS_get_member_info,ar_scan) [VMS]: VMS sets the low
1122 bit on error, so check for odd return values, not non-0 return
1123 values.
1124 (VMS_get_member_info): Calculate the timezone differences correctly.
1125 Reported by John Fowler <[email protected]>.
1126
1127
11282001-03-14 Paul D. Smith <[email protected]>
1129
1130 * variable.c (lookup_variable) [VMS]: Null-terminate the variable
1131 value before invoking define_variable().
1132 Reported by John Fowler <[email protected]>.
1133
11342001-02-07 Paul D. Smith <[email protected]>
1135
1136 * read.c (record_target_var): If we reset the variable due to a
1137 command-line variable setting overriding it, turn off the "append"
1138 flag.
1139
11402001-01-17 Paul D. Smith <[email protected]>
1141
1142 * variable.c (lookup_variable) [VMS]: When getting values from the
1143 environment, allocate enough space for the _value_ plus escapes,
1144 not enough space for the name plus escapes :-/.
1145 Reported by John Fowler <[email protected]>.
1146
1147 * remake.c (f_mtime): Removed the "***" prefix from the mod time
1148 warnings that make generates, so it doesn't look like an error.
1149 Reported by Karl Berry <[email protected]>.
1150
1151
1152 Fix for PR/2020: Rework appended target-specific variables. I'm
1153 fairly confident this algorithm is finally correct.
1154
1155 * expand.c (allocated_variable_append): Rewrite. Instead of
1156 expanding each appended variable then adding all the expanded
1157 strings together, we append all the unexpanded values going up
1158 through the variable set contexts, then expand the final result.
1159 This behaves just like non-target-specific appended variable
1160 values, while the old way didn't in various corner cases.
1161 (variable_append): New function: recursively append the unexpanded
1162 value of a variable, walking from the outermost variable scope to
1163 the innermost.
1164 * variable.c (lookup_variable): Remove the code that looked up the
1165 variable set list if the found variable was "append". We don't
1166 need this anymore.
1167 (lookup_variable_in_set): Make this non-static so we can use it
1168 elsewhere.
1169 (try_variable_definition): Use lookup_variable_in_set() rather
1170 than faking out current_variable_set_list by hand (cleanup).
1171 * variable.h: Add a prototype for the now non-static
1172 lookup_variable_in_set().
1173
11742000-11-17 Paul D. Smith <[email protected]>
1175
1176 * remake.c (f_mtime) [WINDOWS32]: On various advice, I changed the
1177 WINDOWS32 port to assume timestamps can be up to 3 seconds away
1178 before throwing a fit.
1179
11802000-11-17 Paul D. Smith <[email protected]>
1181
1182 * read.c (readline): CRLF calculations had a hole, if you hit the
1183 buffer grow scenario just right. Reworked the algorithm to avoid
1184 the need for len or lastlen at all. Problem description with
1185 sample code chages provided by Chris Faylor <[email protected]>.
1186
11872000-10-24 Paul D. Smith <[email protected]>
1188
1189 * gettext.c (SWAP): Declare this with the prototype, otherwise
1190 some systems don't work (non-32-bit? Reported for Cray T3E).
1191 Reported by Thorstein Thorsteinsson <[email protected]>.
1192
11932000-10-05 Paul D. Smith <[email protected]>
1194
1195 * acinclude.m4 (AM_LC_MESSAGES): Remove undefined macro
1196 AM_LC_MESSAGES; it doesn't seem to do anything anyway??
1197
1198 * i18n/gl.po, configure.in (ALL_LINGUAS): New Galician translation.
1199
12002000-09-22 Paul D. Smith <[email protected]>
1201
1202 * gettext.c: Don't #define _GETTEXT_H here; we only include some
1203 parts of the real gettext.h here, and we expect to really include
1204 the real gettext.h later. If we keep this #define, it's ignored.
1205
12062000-09-21 Paul D. Smith <[email protected]>
1207
1208 * main.c (log_working_directory): Rework the text to use complete
1209 sentences, to make life simpler for the translators.
1210
12112000-08-29 Paul D. Smith <[email protected]>
1212
1213 * file.c (remove_intermediates): Print a debug message before we
1214 remove intermediate files, so the user (if she uses -d) knows
1215 what's going on.
1216
12172000-08-21 Paul D. Smith <[email protected]>
1218
1219 * variable.c (try_variable_definition): Change how we handle
1220 target-specific append variable defns: instead of just setting the
1221 value, expand it as an append _but_ only within the current
1222 target's context. Otherwise we lose all but the last value if the
1223 variable is appended more than once within the current target
1224 context. Fixes PR/1831.
1225
12262000-08-16 Paul D. Smith <[email protected]>
1227
1228 * function.c (func_shell): Nul-terminate the buffer before
1229 printing an exec error message (just in case it's not!).
1230 Fixes PR/1860, reported by Joey Hess <[email protected]>.
1231
12322000-07-25 Paul D. Smith <[email protected]>
1233
1234 * job.c (construct_command_argv_internal): Add "~" to the list of
1235 sh_chars[] which disallow optimizing out the shell call.
1236
12372000-07-23 Paul Eggert <[email protected]>
1238
1239 * NEWS, make.texinfo: Document .LOW_RESOLUTION_TIME, which
1240 supersedes --disable-nsec-timestamps.
1241 * make.texinfo: Consistently use "time stamp" instead of "timestamp".
1242 * README: Remove --disable-nsec-timestamps.
1243
1244 * filedef.h (struct file.low_resolution_time): New member.
1245 * file.c (snap_deps): Add support for .LOW_RESOLUTION_TIME.
1246 * remake.c (update_file_1):
1247 Avoid spurious rebuilds due to low resolution time stamps,
1248 generalizing the earlier code that applied only to archive members.
1249 (f_mtime): Archive members always have low resolution time stamps.
1250
1251 * configure.in: Remove --disable-nsec-timestamps, as this has
1252 been superseded by .LOW_RESOLUTION_TIME.
1253
12542000-07-23 Paul Eggert <[email protected]>
1255
1256 * configure.in (enable_nsec_timestamps): Renamed from
1257 make_cv_nsec_timestamps, since enable/disable options
1258 shouldn't be cached.
1259
12602000-07-23 Bruno Haible <[email protected]>
1261 and Paul Eggert <[email protected]>
1262
1263 * file.c (file_timestamp_now):
1264 Use preprocessor-time check for FILE_TIMESTAMP_HI_RES
1265 so that clock_gettime is not linked unless needed.
1266
1267 * filedef.h (FILE_TIMESTAMP_HI_RES):
1268 Remove definition; "configure" now does this.
1269
1270 * configure.in (jm_AC_TYPE_UINTMAX_T): Move up,
1271 to before high resolution file timestamp check,
1272 since that check now uses uintmax_t.
1273 (FILE_TIMESTAMP_HI_RES): Define to nonzero if the code should use
1274 high resolution file timestamps.
1275 (HAVE_CLOCK_GETTIME): Do not define if !FILE_TIMESTAMP_HI_RES,
1276 so that we don't link in clock_gettime unnecessarily.
1277
12782000-07-17 Paul D. Smith <[email protected]>
1279
1280 * i18n/ja.po: New version of the translation file.
1281
12822000-07-07 Paul D. Smith <[email protected]>
1283
1284 * remake.c (f_mtime): If NO_FLOAT is defined, don't bother with
1285 the offset calculation.
1286 (name_mtime): Replace EINTR test with EINTR_SET macro.
1287
12882000-07-07 Paul Eggert <[email protected]>
1289
1290 Fix for PR/1811:
1291
1292 * remake.c (update_file_1):
1293 Avoid spurious rebuilds of archive members due to their
1294 timestamp resolution being only one second.
1295 (f_mtime): Avoid spurious warnings of timestamps in the future due to
1296 the clock's resolution being lower than file timestamps'.
1297 When warning about future timestamps, report only the discrepancy,
1298 not the absolute value of the timestamp and the current time.
1299
1300 * file.c (file_timestamp_now): New arg RESOLUTION.
1301 * filedef.h (file_timestamp_now): Likewise.
1302 (FILE_TIMESTAMP_NS): Now returns int. All uses changed.
1303
13042000-07-05 Paul D. Smith <[email protected]>
1305
1306 * variable.c (lookup_variable) [VMS]: Remove vestigial references
1307 to listp. Fixes PR/1793.
1308
13092000-06-26 Paul Eggert <[email protected]>
1310
1311 * Makefile.am (MAINTAINERCLEANFILES): New macro, with stamp-pot in it.
1312
1313 * dir.c (vms_hash): Ensure ctype macro args are nonnegative.
1314
1315 * remake.c (f_mtime): Remove unused var memtime.
1316
13172000-06-25 Martin Buchholz <[email protected]>
1318
1319 * make.texinfo, NEWS, TODO.private: Minor spelling corrections.
1320 Ran spell-check on make.texinfo.
1321
13222000-06-23 Paul D. Smith <[email protected]>
1323
1324 * main.c (main): Replace EXIT_SUCCESS, EXIT_FAILURE, and
1325 EXIT_TROUBLE with MAKE_SUCCESS, MAKE_FAILURE, and MAKE_TROUBLE.
1326 * make.h: Define these macros.
1327
1328 * Version 3.79.1 released.
1329
1330 * configure.in: Add a new option, --disable-nsec-timestamps, to
1331 avoid using sub-second timestamps on systems that support it. It
1332 can lead to problems, e.g. if your makefile relies on "cp -p".
1333 * README.template: Document the issue with "cp -p".
1334
1335 * config.guess, config.sub: Updated.
1336
1337
1338
1339
1340See ChangeLog.2, available in the CVS repository at:
1341
1342 http://savannah.gnu.org/cvs/?group=make
1343
1344for earlier changes.
Note: See TracBrowser for help on using the repository browser.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette