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