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