ChangeLog revision 1.1 1 1.1 christos 2006-04-01 Paul D. Smith <psmith (a] gnu.org>
2 1.1 christos
3 1.1 christos Version 3.81 released.
4 1.1 christos
5 1.1 christos * NEWS: Updated for 3.81.
6 1.1 christos
7 1.1 christos * README.cvs: Mention that vpath builds are not supported out of
8 1.1 christos CVS. Fixes Savannah bug #16236.
9 1.1 christos Remove update of make.texi from the list of things to do; we use
10 1.1 christos version.texi now.
11 1.1 christos
12 1.1 christos 2006-03-26 Paul D. Smith <psmith (a] gnu.org>
13 1.1 christos
14 1.1 christos * doc/make.texi: Clean up licensing. Use @copying and version.texi
15 1.1 christos support from automake, as described in the Texinfo manual.
16 1.1 christos
17 1.1 christos 2006-03-25 Eli Zaretskii <eliz (a] gnu.org>
18 1.1 christos
19 1.1 christos * implicit.c (pattern_search) [HAVE_DOS_PATHS]: Don't compare b
20 1.1 christos with lastslash, since the latter points to filename, not to
21 1.1 christos target.
22 1.1 christos * job.c (construct_command_argv_internal) [HAVE_DOS_PATHS]:
23 1.1 christos Declare and define sh_chars_sh[].
24 1.1 christos
25 1.1 christos 2006-03-23 Paul D. Smith <psmith (a] gnu.org>
26 1.1 christos
27 1.1 christos * configure.in: Look for build.sh.in in $srcdir so it will be
28 1.1 christos built for remote configurations as well.
29 1.1 christos
30 1.1 christos * Makefile.am: Make sure to clean up build.sh during distclean.
31 1.1 christos Fixes Savannah bug #16166.
32 1.1 christos
33 1.1 christos * misc.c (log_access): Takes a const char *.
34 1.1 christos * function.c (fold_newlines): Takes an unsigned int *.
35 1.1 christos Both fixes for Savannah bug #16170.
36 1.1 christos
37 1.1 christos 2006-03-22 Boris Kolpackov <boris (a] kolpackov.net>
38 1.1 christos
39 1.1 christos * implicit.c (pattern_search): Call set_file_variables only
40 1.1 christos if we have prerequisites that need second expansion. Fixes
41 1.1 christos Savannah bug #16140.
42 1.1 christos
43 1.1 christos 2006-03-19 Paul D. Smith <psmith (a] gnu.org>
44 1.1 christos
45 1.1 christos * remake.c (update_file): Add alloca(0) to clean up alloca'd
46 1.1 christos memory on hosts that don't support it directly.
47 1.1 christos
48 1.1 christos * README.cvs: Add information on steps for making a release (to
49 1.1 christos make sure I don't forget any).
50 1.1 christos
51 1.1 christos * main.c (clean_jobserver): Move jobserver cleanup code into a new
52 1.1 christos function.
53 1.1 christos (die): Cleanup code was removed from here; call the new function.
54 1.1 christos (main): If we are re-execing, clean up the jobserver first so we
55 1.1 christos don't leak file descriptors.
56 1.1 christos Fix bug reported by Craig Fithian <craig.fithian (a] citigroup.com>.
57 1.1 christos
58 1.1 christos 2006-03-17 Paul D. Smith <psmith (a] gnu.org>
59 1.1 christos
60 1.1 christos * maintMakefile (do-po-update): Rewrite this rule to clean up and
61 1.1 christos allow multiple concurrent runs.
62 1.1 christos Patch from Joseph Myers <joseph (a] codesourcery.com>
63 1.1 christos
64 1.1 christos 2006-03-17 Boris Kolpackov <boris (a] kolpackov.net>
65 1.1 christos
66 1.1 christos * dep.h (struct dep): Add the stem field.
67 1.1 christos * misc.c (alloc_dep, free_dep): New functions.
68 1.1 christos (copy_dep_chain): Copy stem.
69 1.1 christos (free_dep_chain): Use free_dep.
70 1.1 christos * read.c (record_files): Store stem in the dependency line.
71 1.1 christos * file.c (expand_deps): Use stem stored in the dependency line. Use
72 1.1 christos free_dep_chain instead of free_ns_chain.
73 1.1 christos * implicit.c (pattern_search): Use alloc_dep and free_dep.
74 1.1 christos * read.c (read_all_makefiles, eval_makefile, eval): Ditto.
75 1.1 christos * main.c (main, handle_non_switch_argument): Ditto.
76 1.1 christos * remake.c (check_dep): Ditto.
77 1.1 christos * rule.c (convert_suffix_rule, freerule): Ditto.
78 1.1 christos
79 1.1 christos 2006-03-14 Paul D. Smith <psmith (a] gnu.org>
80 1.1 christos
81 1.1 christos * expand.c (variable_append): Instead of appending everything then
82 1.1 christos expanding the result, we expand (or not, if it's simple) each part
83 1.1 christos as we add it.
84 1.1 christos (allocated_variable_append): Don't expand the final result.
85 1.1 christos Fixes Savannah bug #15913.
86 1.1 christos
87 1.1 christos 2006-03-09 Paul Smith <psmith (a] gnu.org>
88 1.1 christos
89 1.1 christos * remake.c (update_file_1): Revert the change of 3 Jan 2006 which
90 1.1 christos listed non-existent files as changed. Turns out there's a bug in
91 1.1 christos the Linux kernel builds which means that this change causes
92 1.1 christos everything to rebuild every time. We will re-introduce this fix
93 1.1 christos in the next release, to give them time to fix their build system.
94 1.1 christos Fixes Savannah bug #16002.
95 1.1 christos Introduces Savannah bug #16051.
96 1.1 christos
97 1.1 christos * implicit.c (pattern_search) [DOS_PATHS]: Look for DOS paths if
98 1.1 christos we *don't* find UNIX "/".
99 1.1 christos Reported by David Ergo <david.ergo (a] alterface.com>
100 1.1 christos
101 1.1 christos 2006-03-04 Eli Zaretskii <eliz (a] gnu.org>
102 1.1 christos
103 1.1 christos * variable.c (do_variable_definition) [WINDOWS32]: Call the shell
104 1.1 christos locator function find_and_set_default_shell if SHELL came from the
105 1.1 christos command line.
106 1.1 christos
107 1.1 christos 2006-02-20 Paul D. Smith <psmith (a] gnu.org>
108 1.1 christos
109 1.1 christos * variable.c (merge_variable_set_lists): It's legal for *setlist0
110 1.1 christos to be null; don't core in that case.
111 1.1 christos
112 1.1 christos 2006-02-19 Paul D. Smith <psmith (a] gnu.org>
113 1.1 christos
114 1.1 christos * commands.c (set_file_variables): Realloc, not malloc, the static
115 1.1 christos string values to avoid memory leaks.
116 1.1 christos
117 1.1 christos * expand.c (recursively_expand_for_file): Only set reading_file to
118 1.1 christos an initialized value.
119 1.1 christos
120 1.1 christos * implicit.c (pattern_search): We need to make a copy of the stem
121 1.1 christos if we get it from an intermediate dep, since those get freed.
122 1.1 christos
123 1.1 christos * file.c (lookup_file) [VMS]: Don't lowercase special targets that
124 1.1 christos begin with ".".
125 1.1 christos (enter_file) [VMS]: Ditto.
126 1.1 christos Patch provided by Hartmut Becker <Hartmut.Becker (a] hp.com>.
127 1.1 christos
128 1.1 christos 2006-02-24 Eli Zaretskii <eliz (a] gnu.org>
129 1.1 christos
130 1.1 christos * job.c (construct_command_argv_internal): Fix last change.
131 1.1 christos
132 1.1 christos * w32/subproc/sub_proc.c (process_pipe_io): Make dwStdin,
133 1.1 christos dwStdout, and dwStderr unsigned int: avoids compiler warnings in
134 1.1 christos the calls to _beginthreadex.
135 1.1 christos
136 1.1 christos * expand.c (recursively_expand_for_file): Initialize `save' to
137 1.1 christos prevent compiler warnings.
138 1.1 christos
139 1.1 christos 2006-02-18 Eli Zaretskii <eliz (a] gnu.org>
140 1.1 christos
141 1.1 christos * job.c (construct_command_argv_internal): Don't create a temporary
142 1.1 christos script/batch file if we are under -n. Call _setmode to switch the
143 1.1 christos script file stream to text mode.
144 1.1 christos
145 1.1 christos 2006-02-17 Paul D. Smith <psmith (a] gnu.org>
146 1.1 christos
147 1.1 christos * variable.c (merge_variable_set_lists): Don't try to merge the
148 1.1 christos global_setlist. Not only is this useless, but it can lead to
149 1.1 christos circularities in the linked list, if global_setlist->next in one
150 1.1 christos list gets set to point to another list which also ends in
151 1.1 christos global_setlist.
152 1.1 christos Fixes Savannah bug #15757.
153 1.1 christos
154 1.1 christos 2006-02-15 Paul D. Smith <psmith (a] gnu.org>
155 1.1 christos
156 1.1 christos Fix for Savannah bug #106.
157 1.1 christos
158 1.1 christos * expand.c (expanding_var): Keep track of which variable we're
159 1.1 christos expanding. If no variable is being expanded, it's the same as
160 1.1 christos reading_file.
161 1.1 christos * make.h (expanding_var): Declare it.
162 1.1 christos * expand.c (recursively_expand_for_file): Set expanding_var to the
163 1.1 christos current variable we're expanding, unless there's no file info in
164 1.1 christos it (could happen if it comes from the command line or a default
165 1.1 christos variable). Restore it before we exit.
166 1.1 christos * expand.c (variable_expand_string): Use the expanding_var file
167 1.1 christos info instead of the reading_file info.
168 1.1 christos * function.c (check_numeric): Ditto.
169 1.1 christos (func_word): Ditto.
170 1.1 christos (func_wordlist): Ditto.
171 1.1 christos (func_error): Ditto.
172 1.1 christos (expand_builtin_function): Ditto.
173 1.1 christos (handle_function): Ditto.
174 1.1 christos
175 1.1 christos 2006-02-14 Paul D. Smith <psmith (a] gnu.org>
176 1.1 christos
177 1.1 christos * read.c (eval): Even if the included filenames expands to the
178 1.1 christos empty string we still need to free the allocated buffer.
179 1.1 christos
180 1.1 christos * implicit.c (pattern_search): If we allocated a variable set for
181 1.1 christos an impossible file, free it.
182 1.1 christos * variable.c (free_variable_set): New function.
183 1.1 christos * variable.h: Declare it.
184 1.1 christos
185 1.1 christos * read.c (read_all_makefiles): Makefile names are kept in the
186 1.1 christos strcache, so there's never any need to alloc/free them.
187 1.1 christos (eval): Ditto.
188 1.1 christos
189 1.1 christos * main.c (main): Add "archives" to the .FEATURES variable if
190 1.1 christos archive support is enabled.
191 1.1 christos * doc/make.texi (Special Variables): Document it.
192 1.1 christos
193 1.1 christos 2006-02-13 Paul D. Smith <psmith (a] gnu.org>
194 1.1 christos
195 1.1 christos * implicit.c (pattern_search): Add checking for DOS pathnames to
196 1.1 christos the pattern rule target LASTSLASH manipulation.
197 1.1 christos Fixes Savannah bug #11183.
198 1.1 christos
199 1.1 christos 2006-02-11 Paul D. Smith <psmith (a] gnu.org>
200 1.1 christos
201 1.1 christos * (ALL FILES): Updated copyright and license notices.
202 1.1 christos
203 1.1 christos 2006-02-10 Paul D. Smith <psmith (a] gnu.org>
204 1.1 christos
205 1.1 christos A new internal capability: the string cache is a read-only cache
206 1.1 christos of strings, with a hash table interface for fast lookup. Nothing
207 1.1 christos in the cache will ever be freed, so there's no need for reference
208 1.1 christos counting, etc. This is the beginning of a full solution for
209 1.1 christos Savannah bug #15182, but for now we only store makefile names here.
210 1.1 christos
211 1.1 christos * strcache.c: New file. Implement a read-only string cache.
212 1.1 christos * make.h: Add prototypes for new functions.
213 1.1 christos * main.c (initialize_global_hash_tables): Initialize the string cache.
214 1.1 christos (print_data_base): Print string cache stats.
215 1.1 christos * read.c (eval_makefile): Use the string cache to store makefile
216 1.1 christos names. Rewrite the string allocation to be sure we free everything.
217 1.1 christos
218 1.1 christos 2006-02-10 Eli Zaretskii <eliz (a] gnu.org>
219 1.1 christos
220 1.1 christos * dir.c (dir_contents_file_exists_p): Don't opendir if the
221 1.1 christos directory time stamp didn't change, except on FAT filesystems.
222 1.1 christos Suggested by J. David Bryan <jdbryan (a] acm.org>.
223 1.1 christos
224 1.1 christos 2006-02-09 Paul D. Smith <psmith (a] gnu.org>
225 1.1 christos
226 1.1 christos * function.c (func_or): Implement a short-circuiting OR function.
227 1.1 christos (func_and): Implement a short-circuiting AND function.
228 1.1 christos (function_table_init): Update the table with the new functions.
229 1.1 christos * doc/make.texi (Conditional Functions): Changed the "if" section
230 1.1 christos to one on general conditional functions. Added documentation for
231 1.1 christos $(and ...) and $(or ...) functions.
232 1.1 christos * NEWS: Note new $(and ...) and $(or ...) functions.
233 1.1 christos
234 1.1 christos 2006-02-08 Boris Kolpackov <boris (a] kolpackov.net>
235 1.1 christos
236 1.1 christos * job.h (struct child): Add the dontcare bitfield.
237 1.1 christos * job.c (new_job): Cache dontcare flag.
238 1.1 christos * job.c (reap_children): Use cached dontcare flag instead of the
239 1.1 christos one in struct file. Fixes Savannah bug #15641.
240 1.1 christos
241 1.1 christos 2006-02-06 Paul D. Smith <psmith (a] gnu.org>
242 1.1 christos
243 1.1 christos * vpath.c (selective_vpath_search): If the file we find has a
244 1.1 christos timestamp from -o or -W, use that instead of the real time.
245 1.1 christos * remake.c (f_mtime): If the mtime is a special token from -o or
246 1.1 christos -W, don't overwrite it with the real mtime.
247 1.1 christos Fixes Savannah bug #15341.
248 1.1 christos
249 1.1 christos Updates from Markus Mauhart <qwe123 (a] chello.at>:
250 1.1 christos
251 1.1 christos * w32/subproc/sub_proc.c (process_begin): Remove no-op tests.
252 1.1 christos (process_signal, process_last_err, process_exit_code): Manage
253 1.1 christos invalid handle values.
254 1.1 christos (process_{outbuf,errbuf,outcnt,errcnt,pipes}): Unused and don't
255 1.1 christos manage invalid handles; remove them.
256 1.1 christos * job.c (start_job_command) [WINDOWS32]: Jump out on error.
257 1.1 christos * config.h.W32.template [WINDOWS32]: Set flags for Windows builds.
258 1.1 christos * README.cvs: Updates for building from CVS.
259 1.1 christos
260 1.1 christos 2006-02-05 Paul D. Smith <psmith (a] gnu.org>
261 1.1 christos
262 1.1 christos * file.c (enter_file): Keep track of the last double_colon entry,
263 1.1 christos to avoid walking the list every time we want to add a new one.
264 1.1 christos Fixes Savannah bug #15533.
265 1.1 christos * filedef.h (struct file): Add a new LAST pointer.
266 1.1 christos
267 1.1 christos * dir.c (directory_contents_hash_cmp): Don't use subtraction to do
268 1.1 christos the comparison. For 64-bits systems the result of the subtraction
269 1.1 christos might not fit into an int. Use comparison instead.
270 1.1 christos Fixes Savannah bug #15534.
271 1.1 christos
272 1.1 christos * doc/make.texi: Update the chapter on writing commands to reflect
273 1.1 christos the changes made in 3.81 for backslash/newline and SHELL handling.
274 1.1 christos
275 1.1 christos 2006-02-01 Paul D. Smith <psmith (a] gnu.org>
276 1.1 christos
277 1.1 christos * dir.c (dir_contents_file_exists_p) [WINDOWS32]: Make sure
278 1.1 christos variable st is not used when it's not initialized.
279 1.1 christos Patch from Eli Zaretskii <eliz (a] gnu.org>.
280 1.1 christos
281 1.1 christos 2006-01-31 Paul D. Smith <psmith (a] gnu.org>
282 1.1 christos
283 1.1 christos * README.W32.template: Applied patch #4785 from
284 1.1 christos Markus Mauhart <qwe123 (a] chello.at>.
285 1.1 christos * README.cvs: Applied patch #4786 from
286 1.1 christos Markus Mauhart <qwe123 (a] chello.at>.
287 1.1 christos * make_msvc_net2003.vcproj [WINDOWS32]: New version from
288 1.1 christos J. Grant <jg (a] jguk.org>.
289 1.1 christos
290 1.1 christos * main.c: Update the copyright year in the version output.
291 1.1 christos * prepare_w32.bat: Remove this file from the distribution.
292 1.1 christos
293 1.1 christos 2006-01-21 Eli Zaretskii <eliz (a] gnu.org>
294 1.1 christos
295 1.1 christos * remake.c (update_goal_chain): Set g->changed instead of
296 1.1 christos incrementing it, as it is only 8-bit wide, and could overflow if
297 1.1 christos many commands got started in update_file.
298 1.1 christos
299 1.1 christos * w32/include/sub_proc.h: Add a prototype for process_used_slots.
300 1.1 christos
301 1.1 christos * w32/subproc/sub_proc.c: Change dimension of proc_array[] to
302 1.1 christos MAXIMUM_WAIT_OBJECTS.
303 1.1 christos (process_wait_for_any_private): Change dimension of handles[]
304 1.1 christos array to MAXIMUM_WAIT_OBJECTS.
305 1.1 christos (process_used_slots): New function.
306 1.1 christos (process_register): Don't register more processes than the
307 1.1 christos available number of slots.
308 1.1 christos (process_easy): Don't start new processes if all slots are used up.
309 1.1 christos
310 1.1 christos * job.c (load_too_high, start_waiting_jobs) [WINDOWS32]: If there
311 1.1 christos are already more children than sub_proc.c can handle, behave as if
312 1.1 christos the load were too high.
313 1.1 christos (start_job_command): Fix a typo in error message when process_easy
314 1.1 christos fails.
315 1.1 christos
316 1.1 christos 2006-01-14 Eli Zaretskii <eliz (a] gnu.org>
317 1.1 christos
318 1.1 christos * main.c (main) [WINDOWS32]: Don't refuse to run with -jN, even if
319 1.1 christos the shell is not sh.exe.
320 1.1 christos
321 1.1 christos * job.c (create_batch_file): Renamed from create_batch_filename;
322 1.1 christos all callers changed. Don't close the temporary file; return its
323 1.1 christos file descriptor instead. New arg FD allows to return the file
324 1.1 christos descriptor.
325 1.1 christos (construct_command_argv_internal): Use _fdopen instead of fopen to
326 1.1 christos open the batch file.
327 1.1 christos
328 1.1 christos 2006-01-04 Paul D. Smith <psmith (a] gnu.org>
329 1.1 christos
330 1.1 christos * readme.vms: Updates for case-insensitive VMS file systems from
331 1.1 christos Hartmut Becker <Hartmut.Becker (a] hp.com>.
332 1.1 christos * dir.c (vms_hash): Ditto.
333 1.1 christos * vmsify.c (copyto): Ditto.
334 1.1 christos * vmsfunctions.c (readdir): Ditto.
335 1.1 christos
336 1.1 christos * make.1: Add a section on the exit codes for make.
337 1.1 christos
338 1.1 christos * doc/make.texi: A number of minor updates to the documentation.
339 1.1 christos
340 1.1 christos 2006-01-03 Paul D. Smith <psmith (a] gnu.org>
341 1.1 christos
342 1.1 christos * remake.c (update_file_1): Mark a prerequisite changed if it
343 1.1 christos doesn't exist.
344 1.1 christos
345 1.1 christos * read.c (eval): Be sure to strip off trailing whitespace from the
346 1.1 christos prerequisites list properly. Also, initialize all fields in
347 1.1 christos struct dep when creating a new one.
348 1.1 christos
349 1.1 christos 2005-12-28 Paul D. Smith <psmith (a] gnu.org>
350 1.1 christos
351 1.1 christos * config.h.W32.template [WINDOWS32]: Add in some pragmas to
352 1.1 christos disable warnings for MSC.
353 1.1 christos Patch by Rob Tulloh <rtulloh (a] yahoo.com>.
354 1.1 christos
355 1.1 christos 2005-12-17 Eli Zaretskii <eliz (a] gnu.org>
356 1.1 christos
357 1.1 christos * doc/make.texi (Execution): Add a footnote about changes in
358 1.1 christos handling of backslash-newline sequences. Mention the differences
359 1.1 christos on MS-DOS and MS-Windows.
360 1.1 christos
361 1.1 christos * NEWS: More details about building the MinGW port and a pointer
362 1.1 christos to README.W32. Fix the section name that describes the new
363 1.1 christos backward-incompatible processing of backslash-newline sequences.
364 1.1 christos The special processing of SHELL set to "cmd" is only relevant to
365 1.1 christos MS-Windows, not MS-DOS.
366 1.1 christos
367 1.1 christos 2005-12-17 Eli Zaretskii <eliz (a] gnu.org>
368 1.1 christos
369 1.1 christos * main.c (handle_runtime_exceptions): Cast exrec->ExceptionAddress
370 1.1 christos to DWORD, to avoid compiler warnings.
371 1.1 christos * job.c (exec_command): Cast hWaitPID and hPID to DWORD, and
372 1.1 christos use %ld in format, to avoid compiler warnings.
373 1.1 christos
374 1.1 christos * doc/make.texi (Special Targets): Fix a typo.
375 1.1 christos (Appending): Fix cross-reference to Setting.
376 1.1 christos (Special Variables, Secondary Expansion, File Name Functions)
377 1.1 christos (Flavor Function, Pattern Match, Quick Reference): Ensure two
378 1.1 christos periods after a sentence.
379 1.1 christos (Execution): Add @: after "e.g.".
380 1.1 christos (Environment): Fix punctuation.
381 1.1 christos (Target-specific, Call Function, Quick Reference): Add @: after "etc."
382 1.1 christos (Shell Function, Target-specific): Add @: after "vs."
383 1.1 christos
384 1.1 christos 2005-12-14 Boris Kolpackov <boris (a] kolpackov.net>
385 1.1 christos
386 1.1 christos * read.c (record_target_var): Initialize variable's export field
387 1.1 christos with v_default instead of leaving it "initialized" by whatever
388 1.1 christos garbage happened to be on the heap.
389 1.1 christos
390 1.1 christos 2005-12-12 Paul D. Smith <psmith (a] gnu.org>
391 1.1 christos
392 1.1 christos * make.1: Fix some display errors and document all existing options.
393 1.1 christos Patch provided by Mike Frysinger <vapier (a] gentoo.org>.
394 1.1 christos
395 1.1 christos 2005-12-11 Paul D. Smith <psmith (a] gnu.org>
396 1.1 christos
397 1.1 christos * implicit.c (pattern_search): If 2nd expansion is not set for
398 1.1 christos this implicit rule, replace the pattern with the stem directly,
399 1.1 christos and don't re-expand the variable list. Along with the other
400 1.1 christos .SECONDEXPANSION changes below, fixes bug #13781.
401 1.1 christos
402 1.1 christos 2005-12-09 Boris Kolpackov <boris (a] kolpackov.net>
403 1.1 christos
404 1.1 christos * implicit.c (pattern_search): Mark other files that this rule
405 1.1 christos builds as targets so that they are not treated as intermediates
406 1.1 christos by the pattern rule search algorithm. Fixes bug #13022.
407 1.1 christos
408 1.1 christos 2005-12-07 Boris Kolpackov <boris (a] kolpackov.net>
409 1.1 christos
410 1.1 christos * remake.c (notice_finished_file): Propagate the change of
411 1.1 christos modification time to all the double-colon entries only if
412 1.1 christos it is the last one to be updated. Fixes bug #14334.
413 1.1 christos
414 1.1 christos 2005-11-17 Boris Kolpackov <boris (a] kolpackov.net>
415 1.1 christos
416 1.1 christos * function.c (func_flavor): Implement the flavor function which
417 1.1 christos returns the flavor of a variable.
418 1.1 christos * doc/make.texi (Functions for Transforming Text): Document it.
419 1.1 christos * NEWS: Add it to the list of new functions.
420 1.1 christos
421 1.1 christos 2005-11-14 Boris Kolpackov <boris (a] kolpackov.net>
422 1.1 christos
423 1.1 christos * read.c (construct_include_path): Set the .INCLUDE_DIRS special
424 1.1 christos variable.
425 1.1 christos * doc/make.texi (Special Variables): Document .INCLUDE_DIRS.
426 1.1 christos * NEWS: Add .INCLUDE_DIRS to the list of new special variables.
427 1.1 christos
428 1.1 christos 2005-10-26 Paul Smith <psmith (a] gnu.org>
429 1.1 christos
430 1.1 christos * read.c (record_files): Don't set deps flags if there are no deps.
431 1.1 christos * maintMakefile: We only need to build the templates when we are
432 1.1 christos creating a distribution, so don't do it for "all".
433 1.1 christos
434 1.1 christos 2005-10-24 Paul D. Smith <psmith (a] gnu.org>
435 1.1 christos
436 1.1 christos Make secondary expansion optional: its enabled by declaring the
437 1.1 christos special target .SECONDEXPANSION.
438 1.1 christos
439 1.1 christos * NEWS: Update information on second expansion capabilities.
440 1.1 christos * doc/make.texi (Secondary Expansion): Document the
441 1.1 christos .SECONDEXPANSION special target and its behavior.
442 1.1 christos * dep.h (struct dep): Add a flag STATICPATTERN, set to true if the
443 1.1 christos prerequisite list was found in a static pattern rule.
444 1.1 christos (free_dep_chain): Declare a prototype.
445 1.1 christos * file.c (parse_prereqs): New function: break out some complexity
446 1.1 christos from expand_deps().
447 1.1 christos (expand_deps): If we aren't doing second expansion, replace % with
448 1.1 christos the stem for static pattern rules. Call the new function.
449 1.1 christos * filedef.h (parse_prereqs): Declare a prototype.
450 1.1 christos * implicit.c (pattern_search): Initialize the new staticpattern
451 1.1 christos field.
452 1.1 christos * main.c (second_expansion): Declare a global variable to remember
453 1.1 christos if the special target has been seen. Initialize the new
454 1.1 christos staticpattern field for prerequisites.
455 1.1 christos * make.h: Extern for second_expansion.
456 1.1 christos * misc.c (free_dep_chain): New function: frees a struct dep list.
457 1.1 christos * read.c (read_all_makefiles): Initialize the staticpattern field.
458 1.1 christos (eval_makefile): Ditto.
459 1.1 christos (record_files): Check for the .SECONDEXPANSION target and set
460 1.1 christos second_expansion global if it's found.
461 1.1 christos Use the new free_dep_chain() instead of doing it by hand.
462 1.1 christos Set the staticpattern field for prereqs of static pattern targets.
463 1.1 christos
464 1.1 christos 2005-10-16 Paul D. Smith <psmith (a] gnu.org>
465 1.1 christos
466 1.1 christos * main.c (main): Set CURDIR to be a file variable instead of a
467 1.1 christos default, so that values of CURDIR inherited from the environment
468 1.1 christos won't override the make value.
469 1.1 christos
470 1.1 christos 2005-09-26 Paul D. Smith <psmith (a] gnu.org>
471 1.1 christos
472 1.1 christos * job.c (construct_command_argv_internal): If the line is empty
473 1.1 christos remember to free the temporary argv strings.
474 1.1 christos Fixes bug # 14527.
475 1.1 christos
476 1.1 christos 2005-09-16 Paul D. Smith <psmith (a] gnu.org>
477 1.1 christos
478 1.1 christos * job.c (start_job_command): The noerror flag is a boolean (single
479 1.1 christos bit); set it appropriately.
480 1.1 christos Reported by Mark Eichin <eichin (a] metacarta.com>
481 1.1 christos
482 1.1 christos 2005-08-29 Paul D. Smith <psmith (a] gnu.org>
483 1.1 christos
484 1.1 christos * function.c (func_error): On Windows, output from $(info ...)
485 1.1 christos seems to come in the wrong order. Try to force it with fflush().
486 1.1 christos
487 1.1 christos 2005-08-10 Boris Kolpackov <boris (a] kolpackov.net>
488 1.1 christos
489 1.1 christos * read.c (record_files): Move code that sets stem for static
490 1.1 christos pattern rules out of the if (!two_colon) condition so it is
491 1.1 christos also executed for two-colon rules. Fixes Savannah bug #13881.
492 1.1 christos
493 1.1 christos 2005-08-08 Paul D. Smith <psmith (a] gnu.org>
494 1.1 christos
495 1.1 christos * make.h: Don't test that __STDC__ is non-0. Some compilers
496 1.1 christos (Windows for example) set it to 0 to denote "ISO C + extensions".
497 1.1 christos Fixes bug # 13594.
498 1.1 christos
499 1.1 christos 2005-08-07 Paul D. Smith <psmith (a] gnu.org>
500 1.1 christos
501 1.1 christos * w32/pathstuff.c (getcwd_fs): Fix warning about assignment in a
502 1.1 christos conditional (slightly different version of a fix from Eli).
503 1.1 christos
504 1.1 christos Fix a bug reported by Michael Matz <matz (a] suse.de>: patch included.
505 1.1 christos If make is running in parallel without -k and two jobs die in a
506 1.1 christos row, but not too close to each other, then make will quit without
507 1.1 christos waiting for the rest of the jobs to die.
508 1.1 christos
509 1.1 christos * main.c (die): Don't reset err before calling reap_children() the
510 1.1 christos second time: we still want it to be in the error condition.
511 1.1 christos * job.c (reap_children): Use a static variable, rather than err,
512 1.1 christos to control whether or not the error message should be printed.
513 1.1 christos
514 1.1 christos 2005-08-06 Eli Zaretskii <eliz (a] gnu.org>
515 1.1 christos
516 1.1 christos * w32/subproc/sub_proc.c: Include signal.h.
517 1.1 christos (process_pipe_io, process_file_io): Pass a pointer to a local
518 1.1 christos DWORD variable to GetExitCodeProcess. If the exit code is
519 1.1 christos CONTROL_C_EXIT, put SIGINT into pproc->signal.
520 1.1 christos
521 1.1 christos * job.c [WINDOWS32]: Include windows.h.
522 1.1 christos (main_thread) [WINDOWS32]: New global variable.
523 1.1 christos (reap_children) [WINDOWS32]: Get the handle for the main thread
524 1.1 christos and store it in main_thread.
525 1.1 christos
526 1.1 christos * commands.c [WINDOWS32]: Include windows.h and w32err.h.
527 1.1 christos (fatal_error_signal) [WINDOWS32]: Suspend the main thread before
528 1.1 christos doing anything else. When we are done, close the main thread
529 1.1 christos handle and exit with status 130.
530 1.1 christos
531 1.1 christos 2005-07-30 Eli Zaretskii <eliz (a] gnu.org>
532 1.1 christos
533 1.1 christos * w32/subproc/sub_proc.c (process_begin): Don't pass a NULL
534 1.1 christos pointer to fprintf.
535 1.1 christos
536 1.1 christos * main.c (find_and_set_default_shell): If found a DOSish shell,
537 1.1 christos set sh_found and the value of default_shell, and report the
538 1.1 christos findings in debug mode.
539 1.1 christos
540 1.1 christos * job.c (construct_command_argv_internal): Check unixy_shell, not
541 1.1 christos no_default_sh_exe, to decide whether to use Unixy or DOSish
542 1.1 christos builtin commands.
543 1.1 christos
544 1.1 christos * README.W32: Update with info about the MinGW build.
545 1.1 christos
546 1.1 christos * build_w32.bat: Support MinGW.
547 1.1 christos
548 1.1 christos * w32/subproc/build.bat: Likewise.
549 1.1 christos
550 1.1 christos * w32/subproc/sub_proc.c (process_easy): Fix format strings for
551 1.1 christos printing DWORD args.
552 1.1 christos
553 1.1 christos * function.c (windows32_openpipe): Fix format strings for printing
554 1.1 christos DWORD args.
555 1.1 christos
556 1.1 christos * job.c (reap_children) [WINDOWS32]: Don't declare 'status' and
557 1.1 christos 'reap_mode'.
558 1.1 christos (start_job_command): Fix format string for printing the result of
559 1.1 christos process_easy.
560 1.1 christos (start_job_command) [WINDOWS32]: Do not define.
561 1.1 christos (exec_command): Fix format string for printing HANDLE args.
562 1.1 christos
563 1.1 christos * main.c (handle_runtime_exceptions): Fix sprintf format strings
564 1.1 christos to avoid compiler warnings.
565 1.1 christos (open_tmpfile): Declare fd only if HAVE_FDOPEN is defined.
566 1.1 christos (Note: some of these fixes were submitted independently by J. Grant)
567 1.1 christos
568 1.1 christos 2005-07-30 J. Grant <jg (a] jguk.org>
569 1.1 christos
570 1.1 christos * prepare_w32.bat: Copy config.h.w32 to config.h if not exist.
571 1.1 christos * make_msvc_net2003.vcproj, make_msvc_net2003.sln: MSVC Project files.
572 1.1 christos * Makefile.am (EXTRA_DIST): Add MSVC Project files.
573 1.1 christos
574 1.1 christos 2005-07-15 Paul Smith <psmith (a] gnu.org>
575 1.1 christos
576 1.1 christos * job.c (construct_command_argv_internal) [DOS,WINDOWS32,OS/2]: If
577 1.1 christos we don't have a POSIX shell, then revert to the old
578 1.1 christos backslash-newline behavior (where they are stripped).
579 1.1 christos Fixes bug #13665.
580 1.1 christos
581 1.1 christos 2005-07-08 Paul D. Smith <psmith (a] gnu.org>
582 1.1 christos
583 1.1 christos * config.h.W32.template: Reorder to match the standard config.h,
584 1.1 christos for easier comparisons.
585 1.1 christos From J. Grant <jg (a] jguk.org>
586 1.1 christos
587 1.1 christos * maintMakefile: Remove .dep_segment before overwriting it, in
588 1.1 christos case it's not writable or noclobber is set.
589 1.1 christos * expand.c (variable_expand_string): Cast result of pointer
590 1.1 christos arithmetic to avoid a warning.
591 1.1 christos * main.c (switches): Add full-fledged final initializer.
592 1.1 christos
593 1.1 christos 2005-07-06 Paul D. Smith <psmith (a] gnu.org>
594 1.1 christos
595 1.1 christos * configure.in: IRIX has _sys_siglist. Tru64 UNIX has __sys_siglist.
596 1.1 christos * signame.c (strsignal): If we found _sys_siglist[] or
597 1.1 christos __sys_siglist[] use those instead of sys_siglist[].
598 1.1 christos From Albert Chin <china (a] thewrittenword.com>
599 1.1 christos
600 1.1 christos 2005-07-04 Paul D. Smith <psmith (a] gnu.org>
601 1.1 christos
602 1.1 christos * config.h-vms.template [VMS]: Latest VMS has its own glob() and
603 1.1 christos globfree(); set up to use the GNU versions.
604 1.1 christos From Martin Zinser <zinser (a] zinser.no-ip.info>
605 1.1 christos
606 1.1 christos 2005-07-03 Paul D. Smith <psmith (a] gnu.org>
607 1.1 christos
608 1.1 christos From J. Grant <jg (a] jguk.org>:
609 1.1 christos
610 1.1 christos * README.W32.template: Update the Windows and tested MSVC versions.
611 1.1 christos * NMakefile.template (CFLAGS_any): Change warning level from W3 to W4.
612 1.1 christos * w32/subproc/NMakefile (CFLAGS_any): Ditto.
613 1.1 christos * build_w32.bat: Ditto.
614 1.1 christos * w32/subproc/build.bat: Ditto.
615 1.1 christos
616 1.1 christos 2005-06-28 Paul D. Smith <psmith (a] gnu.org>
617 1.1 christos
618 1.1 christos * signame.c: HAVE_DECL_* macros are set to 0, not undef, if the
619 1.1 christos declaration was checked but not present.
620 1.1 christos
621 1.1 christos 2005-06-27 Paul D. Smith <psmith (a] gnu.org>
622 1.1 christos
623 1.1 christos * dir.c (find_directory): Change type of fs_serno/fs_flags/fs_len
624 1.1 christos to unsigned long. Fixes Savannah bug #13550.
625 1.1 christos
626 1.1 christos * w32/subproc/sub_proc.c: Remove (HANDLE) casts on lvalues.
627 1.1 christos (process_pipe_io): Initialize tStdin/tStdout/tStderr variables.
628 1.1 christos Fixes Savannah bug #13551.
629 1.1 christos
630 1.1 christos 2005-06-26 Paul D. Smith <psmith (a] gnu.org>
631 1.1 christos
632 1.1 christos * make.h: Fix bug in ANSI_STRING/strerror() handling; only define
633 1.1 christos it if ANSI_STRING is not set.
634 1.1 christos
635 1.1 christos 2005-06-25 Paul D. Smith <psmith (a] gnu.org>
636 1.1 christos
637 1.1 christos * read.c (eval): If no filenames are passed to any of the
638 1.1 christos "include" variants, don't print an error.
639 1.1 christos * doc/make.texi (Include): Document this.
640 1.1 christos Fixes Savannah bug #1761.
641 1.1 christos
642 1.1 christos * job.c (construct_command_argv_internal): Sanitize handling of
643 1.1 christos backslash/newline pairs according to POSIX: that is, keep the
644 1.1 christos backslash-newline in the command script, but remove a following
645 1.1 christos TAB character, if present. In the fast path, make sure that the
646 1.1 christos behavior matches what the shell would do both inside and outside
647 1.1 christos of quotes. In the slow path, quote the backslash and put a
648 1.1 christos literal newline in the string.
649 1.1 christos Fixes Savannah bug #1332.
650 1.1 christos * doc/make.texi (Execution): Document the new behavior and give
651 1.1 christos some examples.
652 1.1 christos * NEWS: Make a note of the new behavior.
653 1.1 christos
654 1.1 christos * make.h [WINDOWS32]: #include <direct.h>.
655 1.1 christos Fixes Savannah bug #13478.
656 1.1 christos
657 1.1 christos * remake.c (name_mtime): If the stat() of a file fails and the -L
658 1.1 christos option was given and the file is a symlink, take the best mtime of
659 1.1 christos the symlink we can get as the mtime of the file and don't fail.
660 1.1 christos Fixes Savannah bug #13280.
661 1.1 christos
662 1.1 christos * read.c (find_char_unquote): Accept a new argument IGNOREVARS.
663 1.1 christos If it's set, then don't stop on STOPCHARs or BLANKs if they're
664 1.1 christos inside a variable reference. Make this function static as it's
665 1.1 christos only used here.
666 1.1 christos (eval): Call find_char_unquote() with IGNOREVARS set when we're
667 1.1 christos parsing an unexpanded line looking for semicolons.
668 1.1 christos Fixes Savannah bug #1454.
669 1.1 christos * misc.c (remove_comments): Move this to read.c and make it static
670 1.1 christos as it's only used there. Call find_char_unquote() with new arg.
671 1.1 christos * make.h: Remove prototypes for find_char_unquote() and
672 1.1 christos remove_comments() since they're static now.
673 1.1 christos
674 1.1 christos * main.c (main): If we see MAKE_RESTARTS in the environment, unset
675 1.1 christos its export flag and obtain its value. When we need to re-exec,
676 1.1 christos increment the value and add it into the environment.
677 1.1 christos * doc/make.texi (Special Variables): Document MAKE_RESTARTS.
678 1.1 christos * NEWS: Mention MAKE_RESTARTS.
679 1.1 christos * main.c (always_make_set): New variable. Change the -B option to
680 1.1 christos set this one instead.
681 1.1 christos (main): When checking makefiles, only set always_make_flag if
682 1.1 christos always_make_set is set AND the restarts flag is 0. When building
683 1.1 christos normal targets, set it IFF always_make_set is set.
684 1.1 christos (main): Avoid infinite recursion with -W, too: only set what-if
685 1.1 christos files to NEW before we check makefiles if we've never restarted
686 1.1 christos before. If we have restarted, set what-if files to NEW _after_ we
687 1.1 christos check makefiles.
688 1.1 christos Fixes Savannah bug #7566:
689 1.1 christos
690 1.1 christos 2005-06-17 Paul D. Smith <psmith (a] gnu.org>
691 1.1 christos
692 1.1 christos * default.c: Change VMS implicit rules to use $$$$ instead of $$
693 1.1 christos in the prerequisites list.
694 1.1 christos
695 1.1 christos 2005-06-12 Paul D. Smith <psmith (a] gnu.org>
696 1.1 christos
697 1.1 christos Fix Savannah bug # 1328.
698 1.1 christos
699 1.1 christos * configure.in: Check for atexit().
700 1.1 christos * misc.c (close_stdout): Test stdout to see if writes to it have
701 1.1 christos failed. If so, be sure to exit with a non-0 error code. Based on
702 1.1 christos code found in gnulib.
703 1.1 christos * make.h: Prototype.
704 1.1 christos * main.c (main): Install close_stdout() with atexit().
705 1.1 christos
706 1.1 christos 2005-06-10 Paul D. Smith <psmith (a] gnu.org>
707 1.1 christos
708 1.1 christos VMS build updates from Hartmut Becker <Hartmut.Becker (a] hp.com>:
709 1.1 christos
710 1.1 christos * vmsjobs.c [VMS]: Updates to compile on VMS: add some missing
711 1.1 christos headers; make vmsWaitForChildren() static; extern vmsify().
712 1.1 christos * job.c [VMS]: Move vmsWaitForChildren() prototype to be global.
713 1.1 christos Don't create child_execute_job() here (it's in vmsjobs.c).
714 1.1 christos * makefile.vms (job.obj) [VMS]: Add vmsjobs.c as a prerequisite.
715 1.1 christos
716 1.1 christos 2005-06-09 Paul D. Smith <psmith (a] gnu.org>
717 1.1 christos
718 1.1 christos * variable.c (push_new_variable_scope): File variables point
719 1.1 christos directly to the global_setlist variable. So, inserting a new
720 1.1 christos scope in front of that has no effect on those variables: they
721 1.1 christos don't go through current_variable_set_list. If we're pushing a
722 1.1 christos scope and the current scope is global, push it "the other way" so
723 1.1 christos that the new setlist is in the global_setlist variable, and
724 1.1 christos next points to a new setlist with the global variable set.
725 1.1 christos (pop_variable_scope): Properly undo a push with the new
726 1.1 christos semantics.
727 1.1 christos Fixes Savannah bug #11913.
728 1.1 christos
729 1.1 christos 2005-05-31 Boris Kolpackov <boris (a] kolpackov.net>
730 1.1 christos
731 1.1 christos * job.c (reap_children): Don't die of the command failed but
732 1.1 christos the dontcare flag is set. Fixes Savannah bug #13216.
733 1.1 christos
734 1.1 christos * implicit.c (pattern_search): When creating a target from
735 1.1 christos an implicit rule match, lookup pattern target and set precious
736 1.1 christos flag in a newly created target. Fixes Savannah bug #13218.
737 1.1 christos
738 1.1 christos 2005-05-13 Paul D. Smith <psmith (a] gnu.org>
739 1.1 christos
740 1.1 christos Implement "if... else if... endif" syntax.
741 1.1 christos
742 1.1 christos * read.c (eval): Push all checks for conditional words ("ifeq",
743 1.1 christos "else", etc.) down into the conditional_line() function.
744 1.1 christos (conditional_line): Rework to allow "else if..." clause. New
745 1.1 christos return value -2 for lines which are not conditionals. The
746 1.1 christos ignoring flag can now also be 2, which means "already parsed a
747 1.1 christos true branch". If that value is seen no other branch of this
748 1.1 christos conditional can be considered true. In the else parsing if there
749 1.1 christos is extra text after the else, invoke conditional_line()
750 1.1 christos recursively to see if it's another conditional. If not, it's an
751 1.1 christos error. If so, raise the conditional value to this level instead
752 1.1 christos of creating a new conditional nesting level. Special check for
753 1.1 christos "else" and "endif", which aren't allowed on the "else" line.
754 1.1 christos * doc/make.texi (Conditional Syntax): Document the new syntax.
755 1.1 christos
756 1.1 christos 2005-05-09 Paul D. Smith <psmith (a] gnu.org>
757 1.1 christos
758 1.1 christos * Makefile.am (EXTRA_make_SOURCES): Add vmsjobs.c
759 1.1 christos (MAYBE_W32): Rework how SUBDIRS are handled so that "make dist"
760 1.1 christos recurses to the w32 directory, even on non-Windows systems. Use
761 1.1 christos the method suggested in the automake manual.
762 1.1 christos * configure.in: Add w32/Makefile to AC_CONFIG_FILES.
763 1.1 christos * maintMakefile (gnulib-url): They moved the texinfo.tex files.
764 1.1 christos
765 1.1 christos 2005-05-07 Paul D. Smith <psmith (a] gnu.org>
766 1.1 christos
767 1.1 christos * main.c (die): If we're dying with a fatal error (not that a
768 1.1 christos command has failed), write back any leftover tokens before we go.
769 1.1 christos
770 1.1 christos * job.c (set_child_handler_action_flags): If there are jobs
771 1.1 christos waiting for the load to go down, set an alarm to go off in 1
772 1.1 christos second. This allows us to wake up from a potentially long-lasting
773 1.1 christos read() and start a new job if the load has gone down. Turn it off
774 1.1 christos after the read.
775 1.1 christos (job_noop): Dummy signal handler function.
776 1.1 christos (new_job): Invoke it with the new semantics.
777 1.1 christos
778 1.1 christos * docs/make.texi: Document secondary expansion. Various cleanups
779 1.1 christos and random work.
780 1.1 christos
781 1.1 christos 2005-05-03 Paul D. Smith <psmith (a] gnu.org>
782 1.1 christos
783 1.1 christos Rename .DEFAULT_TARGET to .DEFAULT_GOAL: in GNU make terminology
784 1.1 christos the targets which are to ultimately be made are called "goals";
785 1.1 christos see the GNU make manual. Also, MAKECMDGOALS, etc.
786 1.1 christos
787 1.1 christos * filedef.h, read.c, main.c: Change .DEFAULT_TARGET to
788 1.1 christos .DEFAULT_GOAL, and default_target_name to default_goal_name.
789 1.1 christos * doc/make.texi (Special Variables): Document .DEFAULT_GOAL.
790 1.1 christos
791 1.1 christos 2005-05-02 Paul D. Smith <psmith (a] gnu.org>
792 1.1 christos
793 1.1 christos * job.c, vmsjobs.c (vmsWaitForChildren, vms_redirect,
794 1.1 christos vms_handle_apos, vmsHandleChildTerm, reEnableAst, astHandler,
795 1.1 christos tryToSetupYAst, child_execute_job) [VMS]: Move VMS-specific
796 1.1 christos functions to vmsjobs.c. #include it into jobs.c.
797 1.1 christos
798 1.1 christos Grant Taylor <gtaylor (a] picante.com> reports that -j# can lose
799 1.1 christos jobserver tokens. I found that this happens when an exported
800 1.1 christos recursive variable contains a $(shell ...) function reference: in
801 1.1 christos this situation we could "forget" to write back a token.
802 1.1 christos
803 1.1 christos * job.c, job.h: Add variable jobserver_tokens: counts the tokens
804 1.1 christos we have. It's not reliable to depend on the number of children in
805 1.1 christos our linked list so keep a separate count.
806 1.1 christos (new_job): Check jobserver_tokens rather than children &&
807 1.1 christos waiting_jobs. Increment jobserver_tokens when we get one.
808 1.1 christos (free_child): If jobserver_tokens is 0, internal error. If it's
809 1.1 christos >1, write a token back to the jobserver pipe (we don't write a
810 1.1 christos token for the "free" job). Decrement jobserver_tokens.
811 1.1 christos
812 1.1 christos * main.c: Add variable master_job_slots.
813 1.1 christos (main): Set it to hold the number of jobs requested if we're the
814 1.1 christos master process, when using the jobserver.
815 1.1 christos (die): Sanity checks: first test jobserver_tokens to make sure
816 1.1 christos this process isn't holding any tokens we didn't write back.
817 1.1 christos Second, if master_job_slots is set count the tokens left in the
818 1.1 christos jobserver pipe and ensure it's the same as master_job_slots (- 1).
819 1.1 christos
820 1.1 christos 2005-04-24 Paul D. Smith <psmith (a] gnu.org>
821 1.1 christos
822 1.1 christos Grant Taylor <gtaylor (a] picante.com> reports that -j# in conjunction
823 1.1 christos with -l# can lose jobserver tokens, because waiting jobs are not
824 1.1 christos consulted properly when checking for the "free" token.
825 1.1 christos
826 1.1 christos * job.c (free_child): Count waiting_jobs as having tokens.
827 1.1 christos * job.c (new_job): Ditto. Plus, call start_waiting_jobs() here to
828 1.1 christos handle jobs waiting for the load to drop.
829 1.1 christos
830 1.1 christos 2005-04-23 Paul D. Smith <psmith (a] gnu.org>
831 1.1 christos
832 1.1 christos * main.c (main): Be careful to not core if a variable setting in
833 1.1 christos the environment doesn't contain an '='. This is illegal but can
834 1.1 christos happen in broken setups.
835 1.1 christos Reported by Joerg Schilling <schilling (a] fokus.fraunhofer.de>.
836 1.1 christos
837 1.1 christos 2005-04-12 Paul D. Smith <psmith (a] gnu.org>
838 1.1 christos
839 1.1 christos The second expansion feature causes significant slowdown. Timing
840 1.1 christos a complex makefile (GCC 4.1) shows a slowdown from .25s to just
841 1.1 christos read the makefile before the feature, to 11+s to do the same
842 1.1 christos operations after the feature. Additionally, memory usage
843 1.1 christos increased drastically. To fix this I added some intelligence that
844 1.1 christos avoids the overhead of the second expansion unless it's required.
845 1.1 christos
846 1.1 christos * dep.h: Add a new boolean field, need_2nd_expansion.
847 1.1 christos
848 1.1 christos * read.c (eval): When creating the struct dep for the target,
849 1.1 christos check if the name contains a "$"; if so set need_2nd_expansion to 1.
850 1.1 christos (record_files): If there's a "%" in a static pattern rule, it gets
851 1.1 christos converted to "$*" so set need_2nd_expansion to 1.
852 1.1 christos
853 1.1 christos * file.c (expand_deps): Rework to be more efficient. Only perform
854 1.1 christos initialize_file_variables(), set_file_variables(), and
855 1.1 christos variable_expand_for_file() if the need_2nd_expansion is set.
856 1.1 christos
857 1.1 christos * implicit.c (pattern_search): Default need_2nd_expansion to 0.
858 1.1 christos (pattern_search): Ditto.
859 1.1 christos * main.c (handle_non_switch_argument): Ditto.
860 1.1 christos (main): Ditto.
861 1.1 christos * read.c (read_all_makefiles): Ditto.
862 1.1 christos (eval_makefile): Ditto.
863 1.1 christos
864 1.1 christos 2005-04-07 Paul D. Smith <psmith (a] gnu.org>
865 1.1 christos
866 1.1 christos * main.c (main) [WINDOWS32]: Export PATH to sub-shells, not Path.
867 1.1 christos * variable.c (sync_Path_environment): Ditto.
868 1.1 christos Patch by Alessandro Vesely. Fixes Savannah bug #12209.
869 1.1 christos
870 1.1 christos * main.c (main): Define the .FEATURES variable.
871 1.1 christos * NEWS: Announce .FEATURES.
872 1.1 christos * doc/make.texi (Special Variables): Document .FEATURES.
873 1.1 christos
874 1.1 christos * remake.c (check_dep): If a file is .PHONY, update it even if
875 1.1 christos it's marked intermediate. Fixes Savannah bug #12331.
876 1.1 christos
877 1.1 christos 2005-03-15 Boris Kolpackov <boris (a] kolpackov.net>
878 1.1 christos
879 1.1 christos * file.c (expand_deps): Factor out the second expansion and
880 1.1 christos prerequisite line parsing logic from snap_deps().
881 1.1 christos
882 1.1 christos * file.c (snap_deps): Use expand_deps(). Expand and parse
883 1.1 christos prerequisites of the .SUFFIXES special target first. Fixes
884 1.1 christos Savannah bug #12320.
885 1.1 christos
886 1.1 christos 2005-03-13 Paul D. Smith <psmith (a] gnu.org>
887 1.1 christos
888 1.1 christos * main.c (main) [MSDOS]: Export SHELL in MSDOS. Requested by Eli
889 1.1 christos Zaretskii.
890 1.1 christos
891 1.1 christos 2005-03-11 Paul D. Smith <psmith (a] gnu.org>
892 1.1 christos
893 1.1 christos * signame.c (strsignal): HAVE_DECL_SYS_SIGLIST is 0 when not
894 1.1 christos available, not undefined (from Earnie Boyd).
895 1.1 christos
896 1.1 christos 2005-03-10 Boris Kolpackov <boris (a] kolpackov.net>
897 1.1 christos
898 1.1 christos * implicit.c (pattern_search): Mark an intermediate target as
899 1.1 christos precious if it happened to be a prerequisite of some (other)
900 1.1 christos target. Fixes Savannah bug #12267.
901 1.1 christos
902 1.1 christos 2005-03-09 Paul D. Smith <psmith (a] gnu.org>
903 1.1 christos
904 1.1 christos * read.c (eval_makefile): Add alloca(0).
905 1.1 christos (eval_buffer): Ditto.
906 1.1 christos
907 1.1 christos 2005-03-09 Boris Kolpackov <boris (a] kolpackov.net>
908 1.1 christos
909 1.1 christos * main.c (main): Use o_file instead of o_default when defining
910 1.1 christos the .DEFAULT_TARGET special variable.
911 1.1 christos * read.c (eval): Use define_variable_global() instead of
912 1.1 christos define_variable() when setting new value for the .DEFAULT_TARGET
913 1.1 christos special variable. Fixes Savannah bug #12266.
914 1.1 christos
915 1.1 christos 2005-03-04 Boris Kolpackov <boris (a] kolpackov.net>
916 1.1 christos
917 1.1 christos * imlicit.c (pattern_search): Mark files for which an implicit
918 1.1 christos rule has been found as targets. Fixes Savannah bug #12202.
919 1.1 christos
920 1.1 christos 2005-03-04 Paul D. Smith <psmith (a] gnu.org>
921 1.1 christos
922 1.1 christos * AUTHORS: Update.
923 1.1 christos * doc/make.texi (Automatic Variables): Document $|.
924 1.1 christos
925 1.1 christos 2005-03-03 Boris Kolpackov <boris (a] kolpackov.net>
926 1.1 christos
927 1.1 christos * read.c (record_files): Instead of substituting % with
928 1.1 christos actual stem value in dependency list replace it with $*.
929 1.1 christos This fixes stem triple expansion bug.
930 1.1 christos
931 1.1 christos * implicit.c (pattern_search): Copy stem to a separate
932 1.1 christos buffer and make it a properly terminated string. Assign
933 1.1 christos this buffer instead of STEM (which is not terminated) to
934 1.1 christos f->stem. Instead of substituting % with actual stem value
935 1.1 christos in dependency list replace it with $*. This fixes stem
936 1.1 christos triple expansion bug.
937 1.1 christos
938 1.1 christos 2005-03-01 Paul D. Smith <psmith (a] gnu.org>
939 1.1 christos
940 1.1 christos * commands.c (fatal_error_signal) [WINDOWS32]: Don't call kill()
941 1.1 christos on Windows, as it takes a handle not a pid. Just exit.
942 1.1 christos Fix from patch #3679, provided by Alessandro Vesely.
943 1.1 christos
944 1.1 christos * configure.in: Update check for sys_siglist[] from autoconf manual.
945 1.1 christos * signame.c (strsignal): Update to use the new autoconf macro.
946 1.1 christos
947 1.1 christos 2005-03-01 Boris Kolpackov <boris (a] kolpackov.net>
948 1.1 christos
949 1.1 christos * read.c (record_files): Add a check for the list of prerequisites
950 1.1 christos of a static pattern rule being empty. Fixes Savannah bug #12180.
951 1.1 christos
952 1.1 christos 2005-02-28 Paul D. Smith <psmith (a] gnu.org>
953 1.1 christos
954 1.1 christos * doc/make.texi (Text Functions): Update docs to allow the end
955 1.1 christos ordinal for $(wordlist ...) to be 0.
956 1.1 christos * function.c (func_wordlist): Fail if the start ordinal for
957 1.1 christos $(wordlist ...) is <1. Matches documentation.
958 1.1 christos Resolves Savannah support request #103195.
959 1.1 christos
960 1.1 christos * remake.c (update_goal_chain): Fix logic for stopping in -q:
961 1.1 christos previously we were stopping when !-q, exactly the opposite. This
962 1.1 christos has been wrong since version 1.34, in 1994!
963 1.1 christos (update_file): If we got an error don't break out to run more
964 1.1 christos double-colon rules: just return immediately.
965 1.1 christos Fixes Savannah bug #7144.
966 1.1 christos
967 1.1 christos 2005-02-27 Paul D. Smith <psmith (a] gnu.org>
968 1.1 christos
969 1.1 christos * misc.c (end_of_token): Make argument const.
970 1.1 christos * make.h: Update prototype.
971 1.1 christos
972 1.1 christos * function.c (abspath, func_realpath, func_abspath): Use
973 1.1 christos PATH_VAR() and GET_PATH_MAX instead of PATH_MAX.
974 1.1 christos * dir.c (downcase): Use PATH_VAR() instead of PATH_MAX.
975 1.1 christos * read.c (record_files): Ditto.
976 1.1 christos * variable.c (do_variable_definition): Ditto.
977 1.1 christos
978 1.1 christos * function.c (func_error): Create a new function $(info ...) that
979 1.1 christos simply prints the message to stdout with no extras.
980 1.1 christos (function_table_init): Add new function to the table.
981 1.1 christos * NEWS: Add $(info ...) reference.
982 1.1 christos * doc/make.texi (Make Control Functions): Document it.
983 1.1 christos
984 1.1 christos New feature: if the system supports symbolic links, and the user
985 1.1 christos provides the -L/--check-symlink-time flag, then use the latest
986 1.1 christos mtime between the symlink(s) and the target file.
987 1.1 christos
988 1.1 christos * configure.in (MAKE_SYMLINKS): Check for lstat() and
989 1.1 christos readlink(). If both are available, define MAKE_SYMLINKS.
990 1.1 christos * main.c: New variable: check_symlink_flag.
991 1.1 christos (usage): Add a line for -L/--check-symlink-times to the help string.
992 1.1 christos (switches): Add -L/--check-symlink-times command line argument.
993 1.1 christos (main): If MAKE_SYMLINKS is not defined but the user specified -L,
994 1.1 christos print a warning and disable it again.
995 1.1 christos * make.h: Declare check_symlink_flag.
996 1.1 christos * remake.c (name_mtime): If MAKE_SYMLINKS and check_symlink_flag,
997 1.1 christos if the file is a symlink then check each link in the chain and
998 1.1 christos choose the NEWEST mtime we find as the mtime for the file. The
999 1.1 christos newest mtime might be the file itself!
1000 1.1 christos * NEWS: Add information about this new feature.
1001 1.1 christos * doc/make.texi (Options Summary): Add -L/--check-symlink-times docs.
1002 1.1 christos
1003 1.1 christos Avoid core dumps described in Savannah bug # 12124:
1004 1.1 christos
1005 1.1 christos * file.c: New variable snapped_deps remember whether we've run
1006 1.1 christos snap_deps().
1007 1.1 christos (snap_deps): Set it.
1008 1.1 christos * filedef.h: Extern it.
1009 1.1 christos * read.c (record_files): Check snapped_deps; if it's set then
1010 1.1 christos we're trying to eval a new target/prerequisite relationship from
1011 1.1 christos within a command script, which we don't support. Fatal.
1012 1.1 christos
1013 1.1 christos 2005-02-28 Boris Kolpackov <boris (a] kolpackov.net>
1014 1.1 christos
1015 1.1 christos Implementation of the .DEFAULT_TARGET special variable.
1016 1.1 christos
1017 1.1 christos * read.c (eval): If necessary, update default_target_name when
1018 1.1 christos reading rules.
1019 1.1 christos * read.c (record_files): Update default_target_file if
1020 1.1 christos default_target_name has changed.
1021 1.1 christos * main.c (default_target_name): Define.
1022 1.1 christos * main.c (main): Enter .DEFAULT_TARGET as make variable. If
1023 1.1 christos default_target_name is set use default_target_file as a root
1024 1.1 christos target to make.
1025 1.1 christos * filedef.h (default_target_name): Declare.
1026 1.1 christos * dep.h (free_dep_chain):
1027 1.1 christos * misc.c (free_dep_chain): Change to operate on struct nameseq
1028 1.1 christos and change name to free_ns_chain.
1029 1.1 christos * file.c (snap_deps): Update to use free_ns_chain.
1030 1.1 christos
1031 1.1 christos 2005-02-27 Boris Kolpackov <boris (a] kolpackov.net>
1032 1.1 christos
1033 1.1 christos Implementation of the second expansion in explicit rules,
1034 1.1 christos static pattern rules and implicit rules.
1035 1.1 christos
1036 1.1 christos * read.c (eval): Refrain from chopping up rule's dependencies.
1037 1.1 christos Store them in a struct dep as a single dependency line. Remove
1038 1.1 christos the code that implements SySV-style automatic variables.
1039 1.1 christos
1040 1.1 christos * read.c (record_files): Adjust the code that handles static
1041 1.1 christos pattern rules to expand all percents instead of only the first
1042 1.1 christos one. Reverse the order in which dependencies are stored so that
1043 1.1 christos when the second expansion reverses them again they appear in
1044 1.1 christos the makefile order (with some exceptions, see comments in
1045 1.1 christos the code). Remove the code that implements SySV-style automatic
1046 1.1 christos variables.
1047 1.1 christos
1048 1.1 christos * file.c (snap_deps): Implement the second expansion and chopping
1049 1.1 christos of dependency lines for explicit rules.
1050 1.1 christos
1051 1.1 christos * implicit.c (struct idep): Define an auxiliary data type to hold
1052 1.1 christos implicit rule's dependencies after stem substitution and
1053 1.1 christos expansion.
1054 1.1 christos
1055 1.1 christos * implicit.c (free_idep_chain): Implement.
1056 1.1 christos
1057 1.1 christos * implicit.c (get_next_word): Implement helper function for
1058 1.1 christos parsing implicit rule's dependency lines into words taking
1059 1.1 christos into account variable expansion requests. Used in the stem
1060 1.1 christos splitting code.
1061 1.1 christos
1062 1.1 christos * implicit.c (pattern_search): Implement the second expansion
1063 1.1 christos for implicit rules. Also fixes bug #12091.
1064 1.1 christos
1065 1.1 christos * commands.h (set_file_variables): Declare.
1066 1.1 christos * commands.c (set_file_variables): Remove static specifier.
1067 1.1 christos
1068 1.1 christos * dep.h (free_dep_chain): Declare.
1069 1.1 christos * misc.c (free_dep_chain): Implement.
1070 1.1 christos
1071 1.1 christos * variable.h (variable_expand_for_file): Declare.
1072 1.1 christos * expand.c (variable_expand_for_file): Remove static specifier.
1073 1.1 christos
1074 1.1 christos * make.h (strip_whitespace): Declare.
1075 1.1 christos * function.c (strip_whitespace): Remove static specifier.
1076 1.1 christos
1077 1.1 christos 2005-02-26 Paul D. Smith <psmith (a] gnu.org>
1078 1.1 christos
1079 1.1 christos * main.c (main): Check for ferror() when reading makefiles from stdin.
1080 1.1 christos Apparently some shells in Windows don't close pipes properly and
1081 1.1 christos require this check.
1082 1.1 christos
1083 1.1 christos 2005-02-24 Jonathan Grant <jg (a] jguk.org>
1084 1.1 christos
1085 1.1 christos * configure.in: Add MinGW configuration options, and extra w32 code
1086 1.1 christos directory.
1087 1.1 christos * Makefile.am: Add MinGW configuration options, and extra w32 code
1088 1.1 christos directory.
1089 1.1 christos * main.c: Determine correct program string (after last \ without .exe).
1090 1.1 christos * subproc/sub_proc.c: `GetExitCodeProcess' from incompatible pointer
1091 1.1 christos type fix x2
1092 1.1 christos * w32/Makefile.am: Import to build win32 lib of sub_proc etc.
1093 1.1 christos * subproc/w32err.c: MSVC thread directive not applied to MinGW builds.
1094 1.1 christos * tests/run_make_tests.pl, tests/test_driver.pl: MSYS testing
1095 1.1 christos environment support.
1096 1.1 christos
1097 1.1 christos 2004-04-16 Dmitry V. Levin <ldv (a] altlinux.org>
1098 1.1 christos
1099 1.1 christos * function.c (func_shell): When initializing error_prefix, check
1100 1.1 christos that reading file name is not null. This fixes long-standing
1101 1.1 christos segfault in cases like "make 'a1=$(shell :)' 'a2:=$(a1)'".
1102 1.1 christos
1103 1.1 christos 2005-02-09 Paul D. Smith <psmith (a] gnu.org>
1104 1.1 christos
1105 1.1 christos * maintMakefile: Update the CVS download URL to simplify them.
1106 1.1 christos Also, the ftp://ftp.gnu.org/GNUinfo site was removed so I'm
1107 1.1 christos downloading the .texi files from Savannah now.
1108 1.1 christos
1109 1.1 christos Fixed these issues reported by Markus Mauhart <qwe123 (a] chello.at>:
1110 1.1 christos
1111 1.1 christos * main.c (handle_non_switch_argument): Only add variables to
1112 1.1 christos command_variables if they're not already there: duplicate settings
1113 1.1 christos waste space and can be confusing to read.
1114 1.1 christos
1115 1.1 christos * w32/include/sub_proc.h: Remove WINDOWS32. It's not needed since
1116 1.1 christos this header is never included by non-WINDOWS32 code, and it
1117 1.1 christos requires <config.h> to define which isn't always included first.
1118 1.1 christos
1119 1.1 christos * dir.c (read_dirstream) [MINGW]: Use proper macro names when
1120 1.1 christos testing MINGW32 versions.
1121 1.1 christos
1122 1.1 christos * main.c (log_working_directory): flush stdout to be sure the WD
1123 1.1 christos change is printed before any stderr messages show up.
1124 1.1 christos
1125 1.1 christos 2005-02-01 Paul D. Smith <psmith (a] gnu.org>
1126 1.1 christos
1127 1.1 christos * maintMakefile (po_repo): Update the GNU translation site URL.
1128 1.1 christos
1129 1.1 christos 2004-12-01 Paul D. Smith <psmith (a] gnu.org>
1130 1.1 christos
1131 1.1 christos * main.c (main): Change char* env_shell to struct variable shell_var.
1132 1.1 christos * variable.c (target_environment): Use new shell_var.
1133 1.1 christos
1134 1.1 christos 2004-11-30 Paul D. Smith <psmith (a] gnu.org>
1135 1.1 christos
1136 1.1 christos * configure.in: The old way we avoided creating build.sh from
1137 1.1 christos build.sh.in before build.sh.in exists doesn't work anymore; we
1138 1.1 christos have to use raw M4 (thanks to Andreas Schwab <schwab (a] suse.de> for
1139 1.1 christos the help!). This also keeps automake from complaining.
1140 1.1 christos * Makefile.am (README): Add a dummy target so automake won't
1141 1.1 christos complain that this file doesn't exist when we checkout from CVS.
1142 1.1 christos * maintMakefile (.dep_segment): Rewrite this rule since newer
1143 1.1 christos versions of automake don't provide DEP_FILES.
1144 1.1 christos
1145 1.1 christos 2004-11-30 Boris Kolpackov <boris (a] kolpackov.net>
1146 1.1 christos
1147 1.1 christos Implementation of `realpath' and `abspath' built-in functions.
1148 1.1 christos
1149 1.1 christos * configure.in: Check for realpath.
1150 1.1 christos * function.c (abspath): Return an absolute file name that does
1151 1.1 christos not contain any `.' or `..' components, nor repeated `/'.
1152 1.1 christos * function.c (func_abspath): For each name call abspath.
1153 1.1 christos * function.c (func_realpath): For each name call realpath
1154 1.1 christos from libc or delegate to abspath if realpath is not available.
1155 1.1 christos * doc/make.texi (Functions for File Names): Document new functions.
1156 1.1 christos * doc/make.texi (Quick Reference): Ditto.
1157 1.1 christos
1158 1.1 christos 2004-11-28 Paul D. Smith <psmith (a] gnu.org>
1159 1.1 christos
1160 1.1 christos * main.c (main) [WINDOWS32]: Remove any trailing slashes from -C
1161 1.1 christos arguments. Fixes bug #10252.
1162 1.1 christos
1163 1.1 christos Fix for bug #1276: Handle SHELL according to POSIX requirements.
1164 1.1 christos
1165 1.1 christos * main.c (main): Set SHELL to v_noexport by default. Remember the
1166 1.1 christos original environment setting of SHELL in the env_shell variable.
1167 1.1 christos * main.h: Export new env_shell variable.
1168 1.1 christos * variable.c (target_environment): If we find a v_noexport
1169 1.1 christos variable for SHELL, add a SHELL variable with the env_shell value.
1170 1.1 christos * doc/make.texi (Quick Reference): Document the POSIX behavior.
1171 1.1 christos * doc/make.texi (Variables/Recursion): Ditto.
1172 1.1 christos
1173 1.1 christos 2004-11-28 Paul D. Smith <psmith (a] gnu.org>
1174 1.1 christos
1175 1.1 christos * main.c (find_and_set_default_shell) [WINDOWS32]: check for
1176 1.1 christos equality of "cmd"/"cmd.exe", not inequality. Fixes bug #11155.
1177 1.1 christos Patch by Alessandro Vesely.
1178 1.1 christos
1179 1.1 christos 2004-11-12 Paul D. Smith <psmith (a] gnu.org>
1180 1.1 christos
1181 1.1 christos * job.c (child_execute_job) [VMS]: Don't treat "#" as a comment on
1182 1.1 christos the command line if it's inside a string.
1183 1.1 christos Patch by: Hartmut Becker <Hartmut.Becker (a] hp.com>
1184 1.1 christos
1185 1.1 christos 2004-10-21 Boris Kolpackov <boris (a] kolpackov.net>
1186 1.1 christos
1187 1.1 christos * function.c (func_lastword): New function: return last word
1188 1.1 christos from the list of words.
1189 1.1 christos * doc/make.texi: Document $(lastword ). Fix broken links in
1190 1.1 christos Quick Reference section.
1191 1.1 christos
1192 1.1 christos 2004-10-06 Paul D. Smith <psmith (a] gnu.org>
1193 1.1 christos
1194 1.1 christos Apply patch from Alessandro Vesely, provided with bug # 9748.
1195 1.1 christos Fix use of tmpnam() to work with Borland C.
1196 1.1 christos
1197 1.1 christos * job.c (construct_command_argv_internal) [WINDOWS32]: Remove
1198 1.1 christos construction of a temporary filename, and call new function
1199 1.1 christos create_batch_filename().
1200 1.1 christos (create_batch_filename) [WINDOWS32]: New function to create a
1201 1.1 christos temporary filename.
1202 1.1 christos
1203 1.1 christos 2004-10-05 Boris Kolpackov <boris (a] kolpackov.net>
1204 1.1 christos
1205 1.1 christos * read.c (record_target_var): Expand simple pattern-specific
1206 1.1 christos variable.
1207 1.1 christos * variable.c (initialize_file_variables): Do not expand simple
1208 1.1 christos pattern-specific variable.
1209 1.1 christos
1210 1.1 christos 2004-09-28 Boris Kolpackov <boris (a] kolpackov.net>
1211 1.1 christos
1212 1.1 christos * remake.c (update_file_1): When rebuilding makefiles inherit
1213 1.1 christos dontcare flag from a target that triggered update.
1214 1.1 christos
1215 1.1 christos 2004-09-27 Boris Kolpackov <boris (a] kolpackov.net>
1216 1.1 christos
1217 1.1 christos * variable.c (initialize_file_variables): Mark pattern-specific
1218 1.1 christos variable as a per-target and copy export status.
1219 1.1 christos
1220 1.1 christos 2004-09-21 Boris Kolpackov <boris (a] kolpackov.net>
1221 1.1 christos
1222 1.1 christos * file.c (snap_deps): Mark .PHONY prerequisites as targets.
1223 1.1 christos
1224 1.1 christos * implicit.c (pattern_search): When considering an implicit rule's
1225 1.1 christos prerequisite check that it is actually a target rather then
1226 1.1 christos just an entry in the file hashtable.
1227 1.1 christos
1228 1.1 christos 2004-09-21 Paul D. Smith <psmith (a] gnu.org>
1229 1.1 christos
1230 1.1 christos * read.c (readstring): Fix some logic errors in backslash handling.
1231 1.1 christos (eval): Remove some unnecessary processing in buffer handling.
1232 1.1 christos (record_target_var): Assert that parse_variable_definition() succeeded.
1233 1.1 christos Reported by: Markus Mauhart <qwe123 (a] chello.at>.
1234 1.1 christos
1235 1.1 christos * misc.c: Removed the sindex() function. All instances of this
1236 1.1 christos function were trivially replaceable by the standard strstr()
1237 1.1 christos function, and that function will always have better (or certainly
1238 1.1 christos no worse) performance than the very simple-minded algorithm
1239 1.1 christos sindex() used. This can matter with complex makefiles.
1240 1.1 christos * make.h: Remove the prototype for sindex().
1241 1.1 christos * function.c (subst_expand): Convert sindex() call to strstr().
1242 1.1 christos This means we no longer need to track the TLEN value so remove that.
1243 1.1 christos (func_findstring): Convert sindex() to strstr().
1244 1.1 christos * commands.c (chop_commands): Convert sindex() calls to strstr().
1245 1.1 christos Suggested by: Markus Mauhart <qwe123 (a] chello.at>.
1246 1.1 christos
1247 1.1 christos * main.c (find_and_set_default_shell) [WINDOWS32]: Implement the
1248 1.1 christos idea behind Savannah Patch #3144 from david.baird (a] homemail.com.
1249 1.1 christos If SHELL is set to CMD.EXE then assume it's batch-mode and
1250 1.1 christos non-unixy. I wrote the code differently from the patch, though,
1251 1.1 christos to make it safer. This also resolves bug #9174.
1252 1.1 christos
1253 1.1 christos 2004-09-20 Paul D. Smith <psmith (a] gnu.org>
1254 1.1 christos
1255 1.1 christos * expand.c (variable_expand_string): Modify to invoke
1256 1.1 christos patsubst_expand() instead of subst_expand(); the latter didn't
1257 1.1 christos handle suffix patterns correctly.
1258 1.1 christos * function.c (subst_expand): Remove the SUFFIX_ONLY parameter; it
1259 1.1 christos was used only from variable_expand_string() and is no longer used
1260 1.1 christos there.
1261 1.1 christos (func_subst): Ditto, on call to subst_expand().
1262 1.1 christos (patsubst_expand): Require the percent pointers to point to the
1263 1.1 christos character after the %, not to the % itself.
1264 1.1 christos * read.c (record_files): New call criteria for patsubst_expand().
1265 1.1 christos * variable.h: Remove SUFFIX_ONLY from subst_expand() prototype.
1266 1.1 christos This is to fix a bug reported by Markus Mauhart <qwe123 (a] chello.at>.
1267 1.1 christos
1268 1.1 christos 2004-09-19 Paul D. Smith <psmith (a] gnu.org>
1269 1.1 christos
1270 1.1 christos * function.c (subst_expand): Fix a check in by_word: look for a
1271 1.1 christos previous blank if we're beyond the beginning of the string, not
1272 1.1 christos the beginning of the word.
1273 1.1 christos Bugs reported by Markus Mauhart <qwe123 (a] chello.at>.
1274 1.1 christos
1275 1.1 christos 2004-05-16 Paul D. Smith <psmith (a] gnu.org>
1276 1.1 christos
1277 1.1 christos * remake.c (update_goal_chain): Change the argument specifying
1278 1.1 christos whether we're rebuilding makefiles to be a global variable,
1279 1.1 christos REBUILDING_MAKEFILES.
1280 1.1 christos (complain): Extract the code that complains about no rules to make
1281 1.1 christos a target into a separate function.
1282 1.1 christos (update_file_1): If we tried to rebuild a file during the makefile
1283 1.1 christos rebuild phase and it was dontcare, then no message was printed.
1284 1.1 christos If we then try to build the same file during the normal build,
1285 1.1 christos print a message this time.
1286 1.1 christos (remake_file): Don't complain about un-remake-able files when
1287 1.1 christos we're rebuilding makefiles.
1288 1.1 christos
1289 1.1 christos 2004-05-11 Paul D. Smith <psmith (a] gnu.org>
1290 1.1 christos
1291 1.1 christos * job.c (construct_command_argv_internal): OS/2 patches from
1292 1.1 christos Andreas Buening <andreas.buening (a] nexgo.de>.
1293 1.1 christos
1294 1.1 christos 2004-05-10 Paul D. Smith <psmith (a] gnu.org>
1295 1.1 christos
1296 1.1 christos * remake.c (update_file): Don't walk the double-colon chain unless
1297 1.1 christos this is a double-colon rule. Fix suggested by Boris Kolpackov
1298 1.1 christos <boris (a] kolpackov.net>.
1299 1.1 christos
1300 1.1 christos * makefile.vms (CFLAGS): Remove glob/globfree (see readme.vms docs)
1301 1.1 christos * readme.vms: New section describing OpenVMS support and issues.
1302 1.1 christos * default.c (default_variables): Add support for IA64.
1303 1.1 christos * job.c (tryToSetupYAst) [VMS]: On VMS running make in batch mode
1304 1.1 christos without some privilege aborts make with the error
1305 1.1 christos %SYSTEM-F-NOPRIV. It happens when setting up a handler for
1306 1.1 christos pressing Ctrl+Y and the input device is no terminal. The change
1307 1.1 christos catches this error and just continues.
1308 1.1 christos
1309 1.1 christos Patches by Hartmut Becker <Hartmut.Becker (a] hp.com>
1310 1.1 christos
1311 1.1 christos 2004-04-25 Paul D. Smith <psmith (a] gnu.org>
1312 1.1 christos
1313 1.1 christos * commands.c (set_file_variables): Set $< properly in the face of
1314 1.1 christos order-only prerequisites.
1315 1.1 christos Patch from Boris Kolpackov <boris (a] kolpackov.net>
1316 1.1 christos
1317 1.1 christos 2004-04-21 Bob Byrnes <byrnes (a] curl.com>
1318 1.1 christos
1319 1.1 christos * main.c (main): Notice failures to remake makefiles.
1320 1.1 christos
1321 1.1 christos 2004-03-28 Paul D. Smith <psmith (a] gnu.org>
1322 1.1 christos
1323 1.1 christos Patches for Acorn RISC OS by Peter Naulls <peter (a] chocky.org>
1324 1.1 christos
1325 1.1 christos * job.c: No default shell for RISC OS.
1326 1.1 christos (load_too_high): Hard-code the return to 1.
1327 1.1 christos (construct_command_argv_internal): No sh_chars or sh_cmds.
1328 1.1 christos * getloadavg.c: Don't set LOAD_AVE_TYPE on RISC OS.
1329 1.1 christos
1330 1.1 christos 2004-03-20 Paul D. Smith <psmith (a] gnu.org>
1331 1.1 christos
1332 1.1 christos * variable.c (do_variable_definition): Don't append from the
1333 1.1 christos global set if a previous non-appending target-specific variable
1334 1.1 christos definition exists. Reported by Oliver Schmidt <oschmidt (a] gmx.net>
1335 1.1 christos (with fix).
1336 1.1 christos
1337 1.1 christos * expand.c (reference_variable): Don't give up on variables with
1338 1.1 christos no value that have the target-specific append flag set: they might
1339 1.1 christos have a value after all. Reported by Oliver Schmidt
1340 1.1 christos <oschmidt (a] gmx.net> (with fix) and also by Maksim A. Nikulin
1341 1.1 christos <nikulin (a] dx1cmd.inp.nsk.su>.
1342 1.1 christos
1343 1.1 christos * rule.c (count_implicit_rule_limits): Don't delete patterns which
1344 1.1 christos refer to absolute pathnames in directories that don't exist: some
1345 1.1 christos portion of the makefile could create those directories before we
1346 1.1 christos match the pattern. Fixes bugs #775 and #108.
1347 1.1 christos
1348 1.1 christos Fixes from Jonathan R. Grant <jg-make (a] jguk.org>:
1349 1.1 christos
1350 1.1 christos * main.c (main): Free makefile_mtimes if we have any.
1351 1.1 christos * README.W32.template: Update documentation for the current status
1352 1.1 christos of the MS-Windows port.
1353 1.1 christos * NMakefile.template (MAKE): Add "MAKE = nmake". A conflicting
1354 1.1 christos environment variable is sometimes already defined which causes the
1355 1.1 christos build to fail.
1356 1.1 christos * main.c (debug_signal_handler): Only define this function if
1357 1.1 christos SIGUSR1 is available.
1358 1.1 christos
1359 1.1 christos Fixes for OS/2 from Andreas Beuning <andreas.buening (a] nexgo.de>:
1360 1.1 christos
1361 1.1 christos * configure.in [OS/2]: Relocate setting of HAVE_SA_RESTART for OS/2.
1362 1.1 christos * README.OS2.template: Documentation updates.
1363 1.1 christos * build.template: Add LIBINTL into LOADLIBES. Add $CFLAGS to the
1364 1.1 christos link line for safety.
1365 1.1 christos * maintMakefile (build.sh.in): Remove an extraneous ")".
1366 1.1 christos * job.c (child_execute_job): Close saved FDs.
1367 1.1 christos * job.c (exec_command) [OS/2]: exec_command(): If the command
1368 1.1 christos can't be exec'ed and if the shell is not Unix-sh, then try again
1369 1.1 christos with argv = { "cmd", "/c", ... }. Normally, this code is never
1370 1.1 christos reached for the cmd shell unless the command really doesn't exist.
1371 1.1 christos (construct_command_argv_internal) [OS/2]: The code for cmd
1372 1.1 christos handling now uses new_argv = { "cmd", "/c", "original line", NULL}.
1373 1.1 christos The CMD builtin commands are case insensitive so use strcasecmp().
1374 1.1 christos
1375 1.1 christos 2004-03-19 Paul D. Smith <psmith (a] gnu.org>
1376 1.1 christos
1377 1.1 christos * read.c (do_define): Re-order line counter increment so the count
1378 1.1 christos is accurate (we were losing one line per define). Reported by
1379 1.1 christos Dave Yost <Dave (a] Yost.com>.
1380 1.1 christos
1381 1.1 christos 2004-03-06 Paul D. Smith <psmith (a] gnu.org>
1382 1.1 christos
1383 1.1 christos * configure.in (HAVE_ANSI_COMPILER): Define if we have an ANSI/ISO
1384 1.1 christos compiler.
1385 1.1 christos * make.h: Convert uses of __STDC__ to HAVE_ANSI_COMPILER.
1386 1.1 christos * misc.c (message,error,fatal): Ditto.
1387 1.1 christos * configh.dos.template: Define HAVE_ANSI_COMPILER.
1388 1.1 christos * config.h.W32.template: Ditto.
1389 1.1 christos * config.h-vms.template: Ditto.
1390 1.1 christos * config.ami.template: Ditto.
1391 1.1 christos
1392 1.1 christos 2004-03-04 Paul D. Smith <psmith (a] gnu.org>
1393 1.1 christos
1394 1.1 christos * README.template: Add a note about broken /bin/sh on SunOS
1395 1.1 christos 4.1.3_U1 & 4.1.4. Fix up Savannah links.
1396 1.1 christos
1397 1.1 christos * misc.c (message, error, fatal): Don't use "..." if we're using
1398 1.1 christos varargs. ansi2knr should handle this but it doesn't work: it
1399 1.1 christos translates "..." to va_dcl etc. but _AFTER_ the preprocessor is
1400 1.1 christos done. On many systems (SunOS for example) va_dcl is a #define.
1401 1.1 christos So, force the use of the non-"..." version on pre-ANSI compilers.
1402 1.1 christos
1403 1.1 christos * maintMakefile (sign-dist): Create some rules to help automate
1404 1.1 christos the new GNU ftp upload method.
1405 1.1 christos
1406 1.1 christos 2004-02-24 Paul D. Smith <psmith (a] gnu.org>
1407 1.1 christos
1408 1.1 christos * config.h.W32.template: Add HAVE_STDARG_H
1409 1.1 christos * config.h-vms.template: Ditto.
1410 1.1 christos * config.ami.template: Ditto.
1411 1.1 christos
1412 1.1 christos 2004-02-23 Jonathan Grant <jg-make (a] jguk.org>
1413 1.1 christos
1414 1.1 christos * README.W32.template: Add a notation about -j with BATCH_MODE_ONLY.
1415 1.1 christos * build_w32.bat: Remove extra "+".
1416 1.1 christos
1417 1.1 christos 2004-02-23 Paul D. Smith <psmith (a] gnu.org>
1418 1.1 christos
1419 1.1 christos * make.h: Create an UNUSED macro to mark unused parameters.
1420 1.1 christos * (many): Clean up warnings by applying UNUSED, fixing
1421 1.1 christos signed/unsigned incompatibilities, etc.
1422 1.1 christos
1423 1.1 christos * acinclude.m4 (AC_STRUCT_ST_MTIM_NSEC): Add quoting to silence
1424 1.1 christos autoconf warnings.
1425 1.1 christos * filedef.h: Name the command_state enumeration.
1426 1.1 christos * file.c (set_command_state): Use the enumeration in the function
1427 1.1 christos argument.
1428 1.1 christos
1429 1.1 christos * configure.in: Explicitly set SET_MAKE to empty, to disable
1430 1.1 christos MAKE=make even when no make already exists. Fix bug #3823.
1431 1.1 christos
1432 1.1 christos 2004-02-22 Paul D. Smith <psmith (a] gnu.org>
1433 1.1 christos
1434 1.1 christos * maintMakefile: Perl script to clean up all non-CVS files. Use
1435 1.1 christos it on all the subdirectories for the cvs-clean target.
1436 1.1 christos
1437 1.1 christos * main.c (decode_switches): Require non-empty strings for all our
1438 1.1 christos string command-line options. Fixes Debian bug # 164165.
1439 1.1 christos
1440 1.1 christos * configure.in: Check for stdarg.h and varargs.h.
1441 1.1 christos * make.h (USE_VARIADIC): Set this if we can use variadic functions
1442 1.1 christos for printing messages.
1443 1.1 christos * misc.c: Check USE_VARIADIC instead of (obsolete) HAVE_STDVARARGS.
1444 1.1 christos (message): Ditto.
1445 1.1 christos (error): Ditto.
1446 1.1 christos (fatal): Ditto.
1447 1.1 christos
1448 1.1 christos A number of patches for OS/2 support from Andreas Buening
1449 1.1 christos <andreas.buening (a] nexgo.de>:
1450 1.1 christos
1451 1.1 christos * job.c (child_handler) [OS/2]: Allow this on OS/2 but we have to
1452 1.1 christos disable the SIGCHLD handler.
1453 1.1 christos (reap_children) [OS/2]: Remove special handling of job_rfd.
1454 1.1 christos (set_child_handler_action_flags) [OS/2]: Use this function in OS/2.
1455 1.1 christos (new_job) [OS/2]: Disable the SIGCHLD handler on OS/2.
1456 1.1 christos * main.c (main) [OS/2]: Special handling for paths in OS/2.
1457 1.1 christos * configure.in [OS/2]: Force SA_RESTART for OS/2.
1458 1.1 christos * Makefile.am (check-regression): Use $(EXEEXT) for Windows-type
1459 1.1 christos systems.
1460 1.1 christos
1461 1.1 christos 2004-02-21 Paul D. Smith <psmith (a] gnu.org>
1462 1.1 christos
1463 1.1 christos * w32/subproc/sub_proc.c (process_easy) [W32]: Christoph Schulz
1464 1.1 christos <mail (a] kristov.de> reports that if process_begin() fails we don't
1465 1.1 christos handle the error condition correctly in all cases.
1466 1.1 christos * w32/subproc/w32err.c (map_windows32_error_to_string): Make sure
1467 1.1 christos to have a newline on the message.
1468 1.1 christos
1469 1.1 christos * job.c (construct_command_argv_internal): Add "test" to UNIX
1470 1.1 christos sh_cmds[]. Fixes Savannah bug # 7606.
1471 1.1 christos
1472 1.1 christos 2004-02-04 Paul D. Smith <psmith (a] gnu.org>
1473 1.1 christos
1474 1.1 christos * job.c (vms_handle_apos) [VMS]: Fix various string handling
1475 1.1 christos situations in VMS DCL. Fixes Savannah bug #5533. Fix provided by
1476 1.1 christos Hartmut Becker <Hartmut.Becker (a] hp.com>.
1477 1.1 christos
1478 1.1 christos 2004-01-21 Paul D. Smith <psmith (a] gnu.org>
1479 1.1 christos
1480 1.1 christos * job.c (load_too_high): Implement an algorithm to control the
1481 1.1 christos "thundering herd" problem when using -l to control job creation
1482 1.1 christos via the load average. The system only recomputes the load once a
1483 1.1 christos second but we can start many jobs in a second. To solve this we
1484 1.1 christos keep track of the number of jobs started in the last second and
1485 1.1 christos apply a weight to try to guess what a correct load would be.
1486 1.1 christos The algorithm was provided by Thomas Riedl <thomas.riedl (a] siemens.com>.
1487 1.1 christos Also fixes bug #4693.
1488 1.1 christos (reap_children): Decrease the job count for this second.
1489 1.1 christos (start_job_command): Increase the job count for this second.
1490 1.1 christos
1491 1.1 christos * read.c (conditional_line): Expand the text after ifn?def before
1492 1.1 christos checking to see if it's a single word. Fixes bug #7257.
1493 1.1 christos
1494 1.1 christos 2004-01-09 Paul D. Smith <psmith (a] gnu.org>
1495 1.1 christos
1496 1.1 christos * file.c (print_file): Recurse to print all targets in
1497 1.1 christos double-colon rules. Fixes bug #4518, reported (with patch) by
1498 1.1 christos Andrew Chatham <chatham (a] google.com>.
1499 1.1 christos
1500 1.1 christos 2004-01-07 Paul D. Smith <psmith (a] gnu.org>
1501 1.1 christos
1502 1.1 christos * acinclude.m4: Remove make_FUNC_SETVBUF_REVERSED.
1503 1.1 christos * configure.in: Change make_FUNC_SETVBUF_REVERSED to
1504 1.1 christos AC_FUNC_SETVBUF_REVERSED.
1505 1.1 christos
1506 1.1 christos * doc/make.texi (Target-specific): Fix Savannah bug #1772.
1507 1.1 christos (MAKE Variable): Fix Savannah bug #4898.
1508 1.1 christos
1509 1.1 christos * job.c (construct_command_argv_internal): Add "!" to the list of
1510 1.1 christos shell escape chars. POSIX sh allows it to appear before a
1511 1.1 christos command, to negate the exit code. Fixes bug #6404.
1512 1.1 christos
1513 1.1 christos * implicit.c (pattern_search): When matching an implicit rule,
1514 1.1 christos remember which dependencies have the ignore_mtime flag set.
1515 1.1 christos Original fix provided in Savannah patch #2349, by Benoit
1516 1.1 christos Poulot-Cazajous <Benoit.Poulot-Cazajous (a] jaluna.com>.
1517 1.1 christos
1518 1.1 christos 2003-11-22 Paul D. Smith <psmith (a] gnu.org>
1519 1.1 christos
1520 1.1 christos * README.W32.template (Outputs): Clarification on -j with
1521 1.1 christos BATCH_MODE_ONLY_SEHLL suggested by Jonathan R. Grant
1522 1.1 christos <jg-make (a] jguk.org>.
1523 1.1 christos
1524 1.1 christos 2003-11-02 Paul D. Smith <psmith (a] gnu.org>
1525 1.1 christos
1526 1.1 christos * function.c (func_if): Strip all the trailing whitespace from the
1527 1.1 christos condition, then don't expand it. Fixed bug # 5798.
1528 1.1 christos
1529 1.1 christos * expand.c (recursively_expand_for_file): If we're expanding a
1530 1.1 christos variable with no file context, then use the variable's context.
1531 1.1 christos Fixes bug # 6195.
1532 1.1 christos
1533 1.1 christos 2003-10-21 Paul D. Smith <psmith (a] gnu.org>
1534 1.1 christos
1535 1.1 christos * main.c (log_working_directory): Add newlines to printf()s.
1536 1.1 christos
1537 1.1 christos * README.cvs: Add a note to ignore warnings during autoreconf.
1538 1.1 christos
1539 1.1 christos * maintMakefile (po_repo): Set a new URL for PO file updates.
1540 1.1 christos (get-config/config.guess get-config/config.sub): Get these files
1541 1.1 christos from the Savannah config project instead of ftp.gnu.org.
1542 1.1 christos
1543 1.1 christos 2003-10-05 Paul Eggert <eggert (a] twinsun.com>
1544 1.1 christos
1545 1.1 christos * main.c (main): Avoid potential subscript error if environ has
1546 1.1 christos short strings.
1547 1.1 christos
1548 1.1 christos 2003-08-22 Paul D. Smith <psmith (a] gnu.org>
1549 1.1 christos
1550 1.1 christos * misc.c (xmalloc, xrealloc): Add one to 0 sizes, to cater to
1551 1.1 christos systems which don't yet implement the C89 standard :-/.
1552 1.1 christos
1553 1.1 christos 2003-07-18 Paul D. Smith <psmith (a] gnu.org>
1554 1.1 christos
1555 1.1 christos * dir.c (directory_contents_hash_1, directory_contents_hash_1)
1556 1.1 christos [WINDOWS32]: Initialize hash.
1557 1.1 christos
1558 1.1 christos 2003-06-19 Earnie Boyd <earnie (a] uses.sf.net>
1559 1.1 christos
1560 1.1 christos * dir.c (read_dirstream): Provide a workaround for broken versions of
1561 1.1 christos the MinGW dirent structure.
1562 1.1 christos
1563 1.1 christos 2003-05-30 Earnie Boyd <earnie (a] users.sf.net>
1564 1.1 christos
1565 1.1 christos * w32/include/dirent.h: Add __MINGW32__ filter.
1566 1.1 christos
1567 1.1 christos 2003-05-30 Earnie Boyd <earnie (a] users.sf.net>
1568 1.1 christos
1569 1.1 christos * make.h: Add global declaration of *make_host.
1570 1.1 christos * main.c (print_usage): Remove local declaration of *make_host.
1571 1.1 christos (print_version): Display "This program built for ..." after Copyright
1572 1.1 christos notice.
1573 1.1 christos
1574 1.1 christos 2003-05-30 Earnie Boyd <earnie (a] users.sf.net>
1575 1.1 christos
1576 1.1 christos * doc/make.texi: Change "ifinfo" to "ifnottex" as suggested by the
1577 1.1 christos execution of "makeinfo --html make.texi".
1578 1.1 christos
1579 1.1 christos 2003-04-30 Paul D. Smith <psmith (a] gnu.org>
1580 1.1 christos
1581 1.1 christos * build.template: Make some changes to maybe allow this script to
1582 1.1 christos work on DOS/Windows/OS2 systems. Suggested by Andreas Buening.
1583 1.1 christos
1584 1.1 christos * README.OS2.template: New file for OS/2 support. Original
1585 1.1 christos contributed by Andreas Buening.
1586 1.1 christos * configure.in: Invoke new pds_AC_DOS_PATHS macro to test for
1587 1.1 christos DOS-style paths.
1588 1.1 christos
1589 1.1 christos 2003-04-19 Paul D. Smith <psmith (a] gnu.org>
1590 1.1 christos
1591 1.1 christos Fix bug #1405: allow a target to match multiple pattern-specific
1592 1.1 christos variables.
1593 1.1 christos
1594 1.1 christos * rule.c (create_pattern_var, lookup_pattern_var): Move these to
1595 1.1 christos variable.c, where they've always belonged.
1596 1.1 christos * rule.h: Move the prototypes and struct pattern_var as well.
1597 1.1 christos * variable.c (initialize_file_variables): Invoke
1598 1.1 christos lookup_pattern_var() in a loop, until no more matches are found.
1599 1.1 christos If a match is found, create a new variable set for the target's
1600 1.1 christos pattern variables. Then merge the contents of each matching
1601 1.1 christos pattern variable set into the target's pattern variable set.
1602 1.1 christos (lookup_pattern_var): Change this function to be usable
1603 1.1 christos in a loop. It takes a starting position: if NULL, start at the
1604 1.1 christos beginning; if non-NULL, start with the pattern variable after that
1605 1.1 christos position, and return the next matching pattern.
1606 1.1 christos (create_pattern_var): Create a unique instance of
1607 1.1 christos pattern-specific variables for every definition in the makefile.
1608 1.1 christos Don't combine the same pattern together. This allows us to
1609 1.1 christos process the variable handling properly even when the same pattern
1610 1.1 christos is used multiple times.
1611 1.1 christos (parse_variable_definition): New function: break out the parsing
1612 1.1 christos of a variable definition line from try_variable_definition.
1613 1.1 christos (try_variable_definition): Call parse_variable_definition to
1614 1.1 christos parse.
1615 1.1 christos (print_variable_data_base): Print out pattern-specific variables.
1616 1.1 christos * variable.h (struct variable): Remember when a variable is
1617 1.1 christos conditional. Also remember its flavor.
1618 1.1 christos (struct pattern_var): Instead of keeping a variable set, we just
1619 1.1 christos keep a single variable for each pattern.
1620 1.1 christos * read.c (record_target_var): Each pattern variable contains only a
1621 1.1 christos single variable, not a set, so create it properly.
1622 1.1 christos * doc/make.texi (Pattern-specific): Document the new behavior.
1623 1.1 christos
1624 1.1 christos 2003-04-17 Paul D. Smith <psmith (a] gnu.org>
1625 1.1 christos
1626 1.1 christos * dir.c (file_exists_p) [VMS]: Patch provided with Bug #3018 by
1627 1.1 christos Jean-Pierre Portier <portierjp2 (a] free.fr>. I don't understand the
1628 1.1 christos file/directory naming rules for VMS so I can't tell whether this
1629 1.1 christos is correct or not.
1630 1.1 christos
1631 1.1 christos 2003-04-09 Paul D. Smith <psmith (a] gnu.org>
1632 1.1 christos
1633 1.1 christos * configure.in (HAVE_DOS_PATHS): Define this on systems that need
1634 1.1 christos DOS-style pathnames: backslash separators and drive specifiers.
1635 1.1 christos
1636 1.1 christos 2003-03-28 Paul D. Smith <psmith (a] gnu.org>
1637 1.1 christos
1638 1.1 christos * file.c (snap_deps): If .SECONDARY with no targets is given, set
1639 1.1 christos the intermediate flag on all targets. Fixes bug #2515.
1640 1.1 christos
1641 1.1 christos 2003-03-24 Paul D. Smith <psmith (a] gnu.org>
1642 1.1 christos
1643 1.1 christos * configure.in, Makefile.am, glob/Makefile.am, doc/Makefile.am:
1644 1.1 christos Upgrade to autoconf 2.57 and automake 1.7.3.
1645 1.1 christos
1646 1.1 christos * job.c: More OS/2 changes from Andreas Buening.
1647 1.1 christos
1648 1.1 christos * file.c (print_file): Fix variable initialization.
1649 1.1 christos Fixes bug #2892.
1650 1.1 christos
1651 1.1 christos * remake.c (notice_finished_file):
1652 1.1 christos
1653 1.1 christos * make.h (ENULLLOOP): Set errno = 0 before invoking the command;
1654 1.1 christos some calls (like readdir()) return NULL in valid situations
1655 1.1 christos without resetting errno. Fixes bug #2846.
1656 1.1 christos
1657 1.1 christos 2003-02-25 Paul D. Smith <psmith (a] gnu.org>
1658 1.1 christos
1659 1.1 christos Port to OS/2 (__EMX__) by Andreas Buening <andreas.buening (a] nexgo.de>.
1660 1.1 christos
1661 1.1 christos * job.c (_is_unixy_shell) [OS/2]: New function.
1662 1.1 christos Set default shell to /bin/sh.
1663 1.1 christos (reap_children): Close the job_rfd pipe here since we don't use a
1664 1.1 christos SIGCHLD handler.
1665 1.1 christos (set_child_handler_action_flags): define this to empty on OS/2.
1666 1.1 christos (start_job_command): Close the jobserver pipe and use
1667 1.1 christos child_execute_job() instead of fork/exec.
1668 1.1 christos (child_execute_job): Rewrite to handle stdin/stdout FDs and spawn
1669 1.1 christos rather than exec'ing, then reconfigure stdin/stdout.
1670 1.1 christos (exec_command): Rewrite to use spawn instead of exec. Return the
1671 1.1 christos PID of the child.
1672 1.1 christos
1673 1.1 christos * main.c (main) [OS/2]: Call initialize_main(). Handle argv[0] as
1674 1.1 christos in DOS. Handle the TEMP environment variable as in DOS. Don't
1675 1.1 christos use a SIGCHLD handler on OS/2. Choose a shell as in DOS. Don't
1676 1.1 christos use -j in DOS mode. Use child_execute_job() instead of
1677 1.1 christos exec_command().
1678 1.1 christos
1679 1.1 christos * function.c (func_shell) [OS/2]: Can't use fork/exec on OS/2: use
1680 1.1 christos spawn() instead.
1681 1.1 christos
1682 1.1 christos * job.h [OS/2]: Move CLOSE_ON_EXEC here from job.c. Add
1683 1.1 christos prototypes that return values.
1684 1.1 christos
1685 1.1 christos * remake.c (f_mtime) [OS/2]: Handle FAT timestamp offsets for OS/2.
1686 1.1 christos
1687 1.1 christos * read.c (readline) [OS/2]: Don't handle CRLF specially on OS/2.
1688 1.1 christos * default.c (default_suffixes) [OS/2]: Set proper default suffixes
1689 1.1 christos for OS/2.
1690 1.1 christos * vpath.c (construct_vpath_list) [OS/2]: Handle OS/2 paths like
1691 1.1 christos DOS paths.
1692 1.1 christos
1693 1.1 christos 2003-02-24 Paul D. Smith <psmith (a] gnu.org>
1694 1.1 christos
1695 1.1 christos * default.c [VMS]: New default rules for .cxx -> .obj compiles.
1696 1.1 christos * job.c (child_execute_job) [VMS]: New code for handling spawn().
1697 1.1 christos (child_execute_job) [VMS]: Handle error status properly.
1698 1.1 christos Patches provided by Hartmut Becker <Hartmut.Becker (a] compaq.com>.
1699 1.1 christos
1700 1.1 christos * function.c (func_shell): Use EINTRLOOP() while reading from the
1701 1.1 christos subshell pipe (Fixes bug #2502).
1702 1.1 christos * job.c (free_child): Use EINTRLOOP() while writing tokens to the
1703 1.1 christos jobserver pipe.
1704 1.1 christos * main.c (main): Ditto.
1705 1.1 christos
1706 1.1 christos 2003-01-30 Paul D. Smith <psmith (a] gnu.org>
1707 1.1 christos
1708 1.1 christos * read.c (eval): eval() was not fully reentrant, because the
1709 1.1 christos collapsed buffer was static. Change it to be an automatic
1710 1.1 christos variable so that eval() can be invoked recursively.
1711 1.1 christos Fixes bug # 2238.
1712 1.1 christos (eval): Apply patch # 1022: fix memory reference error on long
1713 1.1 christos target-specific variable lines.
1714 1.1 christos Patch provided by Steve Brown <Steve.Brown (a] macquarie.com>.
1715 1.1 christos
1716 1.1 christos * function.c (check_numeric): Combine the is_numeric() function
1717 1.1 christos into this function, since it's only called from one place.
1718 1.1 christos Constify this function. Have it print the incorrect string in the
1719 1.1 christos error message. Fixes bug #2407.
1720 1.1 christos (strip_whitespace): Constify.
1721 1.1 christos (func_if): Constify.
1722 1.1 christos * expand.c (expand_argument): Constify.
1723 1.1 christos
1724 1.1 christos 2003-01-29 Paul D. Smith <psmith (a] gnu.org>
1725 1.1 christos
1726 1.1 christos Fix bug # 2169, also reported by other people on various systems.
1727 1.1 christos
1728 1.1 christos * make.h: Some systems, such as Solaris and PTX, do not fully
1729 1.1 christos implement POSIX-compliant SA_RESTART functionality; important
1730 1.1 christos system calls like stat() and readdir() can still fail with EINTR
1731 1.1 christos even if SA_RESTART has been set on the signal handler. So,
1732 1.1 christos introduce macros EINTRLOOP() and ENULLLOOP() which can loop on
1733 1.1 christos EINTR for system calls which return -1 or 0 (NULL), respectively,
1734 1.1 christos on error.
1735 1.1 christos Also, remove the old atomic_stat()/atomic_readdir() and
1736 1.1 christos HAVE_BROKEN_RESTART handling.
1737 1.1 christos
1738 1.1 christos * configure.in: Remove setting of HAVE_BROKEN_RESTART.
1739 1.1 christos
1740 1.1 christos * arscan.c (ar_member_touch): Use EINTRLOOP() to wrap fstat().
1741 1.1 christos * remake.c (touch_file): Ditto.
1742 1.1 christos
1743 1.1 christos * commands.c (delete_target): Use EINTRLOOP() to wrap stat().
1744 1.1 christos * read.c (construct_include_path): Ditto.
1745 1.1 christos * remake.c (name_mtime): Ditto.
1746 1.1 christos * vpath.c (selective_vpath_search): Ditto.
1747 1.1 christos * dir.c (find_directory): Ditto.
1748 1.1 christos (local_stat): Ditto.
1749 1.1 christos (find_directory): Use ENULLLOOP() to wrap opendir().
1750 1.1 christos (dir_contents_file_exists_p): Use ENULLLOOP() to wrap readdir().
1751 1.1 christos
1752 1.1 christos * misc.c: Remove HAVE_BROKEN_RESTART, atomic_stat(), and
1753 1.1 christos atomic_readdir() handling.
1754 1.1 christos
1755 1.1 christos 2003-01-22 Paul D. Smith <psmith (a] gnu.org>
1756 1.1 christos
1757 1.1 christos * function.c (func_call): Fix Bug #1744. If we're inside a
1758 1.1 christos recursive invocation of $(call ...), mask any of the outer
1759 1.1 christos invocation's arguments that aren't used by this one, so that this
1760 1.1 christos invocation doesn't "inherit" them accidentally.
1761 1.1 christos
1762 1.1 christos 2002-12-05 Paul D. Smith <psmith (a] gnu.org>
1763 1.1 christos
1764 1.1 christos * function.c (subst_expand): Valery Khamenia reported a
1765 1.1 christos pathological performance hit when doing substitutions on very
1766 1.1 christos large values with lots of words: turns out we were invoking
1767 1.1 christos strlen() a ridiculous number of times. Instead of having each
1768 1.1 christos call to sindex() call strlen() again, keep track of how much of
1769 1.1 christos the text we've seen and pass the length to sindex().
1770 1.1 christos
1771 1.1 christos 2002-11-19 Paul D. Smith <psmith (a] gnu.org>
1772 1.1 christos
1773 1.1 christos * README.cvs, configure.in: Upgrade to require autoconf 2.56.
1774 1.1 christos
1775 1.1 christos
1776 1.1 christos 2002-11-16 Paul D. Smith <psmith (a] gnu.org>
1777 1.1 christos
1778 1.1 christos * NMakefile.template (OBJS): Add hash.c object file.
1779 1.1 christos * SMakefile.template (srcs): Ditto.
1780 1.1 christos * Makefile.ami (objs): Ditto.
1781 1.1 christos * build_w32.bat: Ditto.
1782 1.1 christos
1783 1.1 christos * Makefile.DOS.template: Remove extra dependencies.
1784 1.1 christos
1785 1.1 christos 2002-10-25 Paul D. Smith <psmith (a] gnu.org>
1786 1.1 christos
1787 1.1 christos * expand.c (install_variable_buffer): New function. Install a new
1788 1.1 christos variable_buffer context and return the previous one.
1789 1.1 christos (restore_variable_buffer): New function. Free the current
1790 1.1 christos variable_buffer context and put a previously saved one back.
1791 1.1 christos * variable.h: Prototypes for {install,restore}_variable_buffer.
1792 1.1 christos * function.c (func_eval): Push a new variable_buffer context
1793 1.1 christos before we eval, then restore the old one when we're done.
1794 1.1 christos Fixes Bug #1517.
1795 1.1 christos
1796 1.1 christos * read.c (install_conditionals): New function. Install a new
1797 1.1 christos conditional context and return the previous one.
1798 1.1 christos (restore_conditionals): New function. Free the current
1799 1.1 christos conditional context and put a previously saved one back.
1800 1.1 christos (eval): Use the {install,restore}_conditionals for "include"
1801 1.1 christos handling.
1802 1.1 christos (eval_buffer): Use {install,restore}_conditionals to preserve the
1803 1.1 christos present conditional state before we evaluate the buffer.
1804 1.1 christos Fixes Bug #1516.
1805 1.1 christos
1806 1.1 christos * doc/make.texi (Quick Reference): Add references to $(eval ...)
1807 1.1 christos and $(value ...).
1808 1.1 christos (Recursion): Add a variable index entry for CURDIR.
1809 1.1 christos
1810 1.1 christos * README.cvs: Update to appropriate versions.
1811 1.1 christos * Makefile.am (nodist_loadavg_SOURCES): automake gurus point out I
1812 1.1 christos don't need to copy loadavg.c: automake is smart enough to create
1813 1.1 christos it for me. Still have a bug in automake related to ansi2knr tho.
1814 1.1 christos
1815 1.1 christos 2002-10-14 Paul D. Smith <psmith (a] gnu.org>
1816 1.1 christos
1817 1.1 christos * remake.c (notice_finished_file): Only touch targets if they have
1818 1.1 christos at least one command (as per POSIX). Resolve Bug #1418.
1819 1.1 christos
1820 1.1 christos * *.c: Convert to using ANSI C-style function definitions.
1821 1.1 christos * Makefile.am: Enable the ansi2knr feature of automake.
1822 1.1 christos * configure.in: ditto.
1823 1.1 christos
1824 1.1 christos 2002-10-13 Paul D. Smith <psmith (a] gnu.org>
1825 1.1 christos
1826 1.1 christos * commands.c (set_file_variables): Bug #1379: Don't use alloca()
1827 1.1 christos for automatic variable values like $^, etc. In the case of very
1828 1.1 christos large lists of prerequisites this causes problems. Instead reuse
1829 1.1 christos a static buffer (resizeable) for each variable.
1830 1.1 christos
1831 1.1 christos * read.c (eval): Fix Bug #1391: allow "export" keyword in
1832 1.1 christos target-specific variable definitions. Check for it and set an
1833 1.1 christos "exported" flag.
1834 1.1 christos (record_target_var): Set the export field to v_export if the
1835 1.1 christos "exported" flag is set.
1836 1.1 christos * doc/make.texi (Target-specific): Document the ability to use
1837 1.1 christos "export".
1838 1.1 christos
1839 1.1 christos * doc/make.texi: Change the name of the section on automatic
1840 1.1 christos variables from "Automatic" to "Automatic Variables". Added text
1841 1.1 christos clarifying the scope of automatic variables.
1842 1.1 christos
1843 1.1 christos 2002-10-04 Paul D. Smith <psmith (a] gnu.org>
1844 1.1 christos
1845 1.1 christos * read.c (eval): Allow SysV $$@ variables to use {} braces as well
1846 1.1 christos as () braces.
1847 1.1 christos (record_files): Ditto.
1848 1.1 christos
1849 1.1 christos * expand.c (variable_expand_string): In $(A:x=y) expansion limit
1850 1.1 christos the search for the '=' to only within the enclosing parens.
1851 1.1 christos
1852 1.1 christos 2002-10-03 Paul D. Smith <psmith (a] gnu.org>
1853 1.1 christos
1854 1.1 christos Version 3.80 released.
1855 1.1 christos
1856 1.1 christos * dir.c: Change hash functions to use K&R function definition style.
1857 1.1 christos * function.c: Ditto.
1858 1.1 christos * read.c: Ditto.
1859 1.1 christos * variable.c: Ditto.
1860 1.1 christos
1861 1.1 christos Update to automake 1.7.
1862 1.1 christos
1863 1.1 christos * Makefile.am (AUTOMAKE_OPTIONS): Update to require 1.7.
1864 1.1 christos (pdf): Remove this target as automake now provides one.
1865 1.1 christos
1866 1.1 christos * configure.in: Change AM_CONFIG_HEADER to AC_CONFIG_HEADERS.
1867 1.1 christos
1868 1.1 christos 2002-09-30 Martin P.J. Zinser <zinser (a] decus.de>
1869 1.1 christos
1870 1.1 christos * makefile.com: Updates for GNU make 3.80.
1871 1.1 christos * makefile.vms: Ditto.
1872 1.1 christos
1873 1.1 christos 2002-09-23 Paul D. Smith <psmith (a] gnu.org>
1874 1.1 christos
1875 1.1 christos * read.c (enum make_word_type): Remove w_comment.
1876 1.1 christos (get_next_mword): Don't treat comment characters as special; where
1877 1.1 christos this function is used we will never see a comment (it's stripped
1878 1.1 christos before we get here) and treating comments specially means that
1879 1.1 christos targets like "foo\#bar" aren't handled properly.
1880 1.1 christos
1881 1.1 christos 2002-09-18 Paul D. Smith <psmith (a] gnu.org>
1882 1.1 christos
1883 1.1 christos * doc/make.texi (Bugs): Update with some info on Savannah, etc.
1884 1.1 christos
1885 1.1 christos * read.c (eval): Expansion of arguments to export/unexport was
1886 1.1 christos ignoring all arguments after the first one. Change the algorithm
1887 1.1 christos to expand the whole line once, then parse the results.
1888 1.1 christos
1889 1.1 christos 2002-09-17 Paul D. Smith <psmith (a] gnu.org>
1890 1.1 christos
1891 1.1 christos Fix Bug #940 (plus another bug I found while looking at this):
1892 1.1 christos
1893 1.1 christos * read.c (record_target_var): enter_file() will add a new entry if
1894 1.1 christos it's a double-colon target: we don't want to do that in this
1895 1.1 christos situation. Invoke lookup_file() and only enter_file() if it does
1896 1.1 christos not already exist. If the file we get back is a double-colon then
1897 1.1 christos add this variable to the "root" double-colon target.
1898 1.1 christos
1899 1.1 christos * variable.c (initialize_file_variables): If this file is a
1900 1.1 christos double-colon target but is not the "root" target, then initialize
1901 1.1 christos the root and make the root's variable list the parent of our
1902 1.1 christos variable list.
1903 1.1 christos
1904 1.1 christos 2002-09-13 Paul D. Smith <psmith (a] gnu.org>
1905 1.1 christos
1906 1.1 christos * doc/make.texi (MAKE Variable): Add some indexing for "+".
1907 1.1 christos
1908 1.1 christos * hash.c (round_up_2): Get rid of a warning.
1909 1.1 christos
1910 1.1 christos 2002-09-12 Paul D. Smith <psmith (a] gnu.org>
1911 1.1 christos
1912 1.1 christos * Makefile.am (loadavg_SOURCES, loadavg.c): Tiptoe around automake
1913 1.1 christos so it doesn't complain about getloadavg.c.
1914 1.1 christos
1915 1.1 christos * commands.c (set_file_variables): Make sure we always alloca() at
1916 1.1 christos least 1 character for the value of $? (for '\0').
1917 1.1 christos
1918 1.1 christos 2002-09-11 Paul D. Smith <psmith (a] gnu.org>
1919 1.1 christos
1920 1.1 christos * hash.h (STRING_COMPARE, ISTRING_COMPARE, STRING_N_COMPARE): Fix
1921 1.1 christos macro to use RESULT instead of the incorrect _RESULT_.
1922 1.1 christos
1923 1.1 christos * make.h (HAVE_BROKEN_RESTART): Add prototypes for atomic_stat()
1924 1.1 christos and atomic_readdir(). We need to #include dirent.h to get this to
1925 1.1 christos work.
1926 1.1 christos * misc.c (atomic_readdir): Fix typos.
1927 1.1 christos
1928 1.1 christos 2002-09-10 Paul D. Smith <psmith (a] gnu.org>
1929 1.1 christos
1930 1.1 christos * read.c (eval): Expand variable lists given to export and
1931 1.1 christos unexport, so that "export $(LIST_OF_VARIABLES)" (etc.) works.
1932 1.1 christos (conditional_line): Ditto for "ifdef". Fixes bug #103.
1933 1.1 christos
1934 1.1 christos * doc/make.texi (Variables/Recursion): Document this.
1935 1.1 christos (Conditional Syntax): And here.
1936 1.1 christos
1937 1.1 christos 2002-09-09 Paul D. Smith <psmith (a] gnu.org>
1938 1.1 christos
1939 1.1 christos * configure.in: Check for memmove().
1940 1.1 christos
1941 1.1 christos 2002-09-07 Paul D. Smith <psmith (a] gnu.org>
1942 1.1 christos
1943 1.1 christos * configure.in (HAVE_BROKEN_RESTART): Define this on PTX systems;
1944 1.1 christos Michael Sterrett <msterret (a] coat.com> reports that while it has
1945 1.1 christos SA_RESTART, it does not work properly.
1946 1.1 christos
1947 1.1 christos * misc.c (atomic_stat): If HAVE_BROKEN_RESTART, create a function
1948 1.1 christos that invokes stat() and loops to do it again if it returns EINTR.
1949 1.1 christos (atomic_readdir): Ditto, with readdir().
1950 1.1 christos
1951 1.1 christos * make.h (stat, readdir): If HAVE_BROKEN_RESTART, alias stat()
1952 1.1 christos and readdir() to atomic_stat() and atomic_readdir().
1953 1.1 christos
1954 1.1 christos 2002-09-04 Paul D. Smith <psmith (a] gnu.org>
1955 1.1 christos
1956 1.1 christos * implicit.c (pattern_search): Daniel <barkalow (a] reputation.com>
1957 1.1 christos reports that GNU make sometimes doesn't recognize that targets can
1958 1.1 christos be made, when directories can be created as prerequisites. He
1959 1.1 christos reports that changing the order of predicates in the DEP->changed
1960 1.1 christos flag test so that lookup_file() is always performed, solves this
1961 1.1 christos problem.
1962 1.1 christos
1963 1.1 christos 2002-08-08 Paul D. Smith <psmith (a] gnu.org>
1964 1.1 christos
1965 1.1 christos * configure.in: Require a newer version of gettext.
1966 1.1 christos
1967 1.1 christos * misc.c (perror_with_name): Translate the format string (for
1968 1.1 christos right-to-left language support).
1969 1.1 christos (pfatal_with_name): Ditto.
1970 1.1 christos
1971 1.1 christos * main.c: Create a static array of strings to store the usage
1972 1.1 christos text. This is done to facilitate translations.
1973 1.1 christos (struct command_switch): Remove argdesc and description fields.
1974 1.1 christos (switches): Remove values for obsolete fields.
1975 1.1 christos (print_usage): Print each element of the usage array.
1976 1.1 christos
1977 1.1 christos * hash.c: Change function definitions to be K&R style.
1978 1.1 christos
1979 1.1 christos 2002-08-02 Paul D. Smith <psmith (a] gnu.org>
1980 1.1 christos
1981 1.1 christos * NEWS: Remove the mention of .TARGETS; we aren't going to publish
1982 1.1 christos this one because it's too hard to get right. We'll look at it for
1983 1.1 christos a future release.
1984 1.1 christos * main.c (main): Don't create the .TARGETS variable.
1985 1.1 christos * variable.c (handle_special_var): Don't handle .TARGETS.
1986 1.1 christos
1987 1.1 christos 2002-08-01 Paul D. Smith <psmith (a] gnu.org>
1988 1.1 christos
1989 1.1 christos * main.c (switches): Add a new option, -B (--always-make). If
1990 1.1 christos specified, make will rebuild all targets that it encounters even
1991 1.1 christos if they don't appear to be out of date.
1992 1.1 christos (always_make_flag): New flag.
1993 1.1 christos * make.h: Extern always_make_flag.
1994 1.1 christos * remake.c (update_file_1): Check always_make_flag; if it's set we
1995 1.1 christos will always rebuild any target we can, even if none of its
1996 1.1 christos prerequisites are newer.
1997 1.1 christos * NEWS: Mention it.
1998 1.1 christos
1999 1.1 christos * doc/make.texi (Shell Function): Make it clear that make
2000 1.1 christos variables marked as "export" are not passed to instances of the
2001 1.1 christos shell function.
2002 1.1 christos
2003 1.1 christos Add new introspection variable .VARIABLES and .TARGETS.
2004 1.1 christos
2005 1.1 christos * variable.c (handle_special_var): New function. If the variable
2006 1.1 christos reference passed in is "special" (.VARIABLES or .TARGETS),
2007 1.1 christos calculate the new value if necessary. .VARIABLES is handled here:
2008 1.1 christos walk through the hash of defined variables and construct a value
2009 1.1 christos which is a list of the names. .TARGETS is handled by
2010 1.1 christos build_target_list().
2011 1.1 christos (lookup_variable): Invoke handle_special_var().
2012 1.1 christos * file.c (build_target_list): Walk through the hask of known files
2013 1.1 christos and construct a list of the names of all the ones marked as
2014 1.1 christos targets.
2015 1.1 christos * main.c (main): Initialize them to empty (and as simple variables).
2016 1.1 christos * doc/make.texi (Special Variables): Document them.
2017 1.1 christos * NEWS: Mention them.
2018 1.1 christos
2019 1.1 christos * variable.h (struct variable): Add a new flag "exportable" which
2020 1.1 christos is true if the variable name is valid for export.
2021 1.1 christos * variable.c (define_variable_in_set): Set "exportable" when a new
2022 1.1 christos variable is defined.
2023 1.1 christos (target_environment): Use the "exportable" flag instead of
2024 1.1 christos re-checking the name here... an efficiency improvement.
2025 1.1 christos
2026 1.1 christos 2002-07-31 Paul D. Smith <psmith (a] gnu.org>
2027 1.1 christos
2028 1.1 christos * config.h-vms.template: Updates to build on VMS. Thanks to
2029 1.1 christos Brian_Benning (a] aksteel.com for helping verify the build.
2030 1.1 christos * makefile.com: Build the new hash.c file.
2031 1.1 christos * hash.h: Use strcpmi(), not stricmp(), in the
2032 1.1 christos HAVE_CASE_INSENSITIVE_FS case.
2033 1.1 christos
2034 1.1 christos 2002-07-30 Paul D. Smith <psmith (a] gnu.org>
2035 1.1 christos
2036 1.1 christos * hash.h (ISTRING_COMPARE, return_ISTRING_COMPARE): Add missing
2037 1.1 christos backslashes to the HAVE_CASE_INSENSITIVE_FS case.
2038 1.1 christos Reported by <Brian_Benning (a] aksteel.com>.
2039 1.1 christos
2040 1.1 christos 2002-07-10 Paul D. Smith <psmith (a] gnu.org>
2041 1.1 christos
2042 1.1 christos * variable.c (pop_variable_scope): Remove variable made unused by
2043 1.1 christos new hash infrastructure.
2044 1.1 christos * read.c (dep_hash_cmp): Rewrite this to handle ignore_mtime
2045 1.1 christos comparisons as well as name comparisons.
2046 1.1 christos * variable.h: Add a prototype for new hash_init_function_table().
2047 1.1 christos * file.c (lookup_file): Remove variables made unused by new hash
2048 1.1 christos infrastructure.
2049 1.1 christos * dir.c (directory_contents_hash_2): Missing return of hash value.
2050 1.1 christos (dir_contents_file_exists_p): Remove variables made unused by new
2051 1.1 christos hash infrastructure.
2052 1.1 christos
2053 1.1 christos
2054 1.1 christos Installed Greg McGary's integration of the hash functions from the
2055 1.1 christos GNU id-utils package:
2056 1.1 christos
2057 1.1 christos 2002-07-10 Greg McGary <greg (a] mcgary.org>
2058 1.1 christos
2059 1.1 christos * scripts/functions/filter-out: Add literals to to the
2060 1.1 christos pattern space in order to add complexity, and trigger
2061 1.1 christos use of an internal hash table. Fix documentation strings.
2062 1.1 christos * scripts/targets/INTERMEDIATE: Reverse order of files
2063 1.1 christos passed to expected `rm' command.
2064 1.1 christos
2065 1.1 christos 2002-07-10 Greg McGary <greg (a] mcgary.org>
2066 1.1 christos
2067 1.1 christos * Makefile.am (SRCS): Add hash.c (noinst_HEADERS): Add hash.h
2068 1.1 christos * hash.c: New file, taken from id-utils.
2069 1.1 christos * hash.h: New file, taken from id-utils.
2070 1.1 christos
2071 1.1 christos * make.h (HASH, HASHI): Remove macros.
2072 1.1 christos (find_char_unquote): Change arglist in decl.
2073 1.1 christos (hash_init_directories): New function decl.
2074 1.1 christos * variable.h (hash.h): New #include.
2075 1.1 christos (MAKELEVEL_NAME, MAKELEVEL_LENGTH): New constants.
2076 1.1 christos * filedef.h (hash.h): New #include.
2077 1.1 christos (struct file) [next]: Remove member.
2078 1.1 christos (file_hash_enter): Remove function decl.
2079 1.1 christos (init_hash_files): New function decl.
2080 1.1 christos
2081 1.1 christos * ar.c (ar_name): Delay call to strlen until needed.
2082 1.1 christos * main.c (initialize_global_hash_tables): New function.
2083 1.1 christos (main): Call it. Use MAKELEVEL_NAME & MAKELEVEL_LENGTH.
2084 1.1 christos * misc.c (remove_comments): Pass char constants to find_char_unquote.
2085 1.1 christos * remake.c (notice_finished_file): Update last_mtime on `prev' chain.
2086 1.1 christos
2087 1.1 christos * dir.c (hash.h): New #include.
2088 1.1 christos (struct directory_contents) [next, files]: Remove members.
2089 1.1 christos [ctime]: Add member for VMS. [dirfiles]: Add hash-table member.
2090 1.1 christos (directory_contents_hash_1, directory_contents_hash_2,
2091 1.1 christos directory_contents_hash_cmp): New functions.
2092 1.1 christos (directories_contents): Change type to `struct hash_table'.
2093 1.1 christos (struct directory) [next]: Remove member.
2094 1.1 christos (directory_hash_1, directory_hash_2, directory_hash_cmp): New funcs.
2095 1.1 christos (directory): Change type to `struct hash_table'.
2096 1.1 christos (struct dirfile) [next]: Remove member.
2097 1.1 christos [length]: Add member. [impossible]: widen type to fill alignment gap.
2098 1.1 christos (dirfile_hash_1, dirfile_hash_2, dirfile_hash_cmp): New functions.
2099 1.1 christos (find_directory): Use new hash table package.
2100 1.1 christos (dir_contents_file_exists_p): Likewise.
2101 1.1 christos (file_impossible): Likewise.
2102 1.1 christos (file_impossible_p): Likewise.
2103 1.1 christos (print_dir_data_base): Likewise.
2104 1.1 christos (open_dirstream): Likewise.
2105 1.1 christos (read_dirstream): Likewise.
2106 1.1 christos (hash_init_directories): New function.
2107 1.1 christos
2108 1.1 christos * file.c (hash.h): New #include.
2109 1.1 christos (file_hash_1, file_hash_2, file_hash_cmp): New functions.
2110 1.1 christos (files): Change type to `struct hash_table'.
2111 1.1 christos (lookup_file): Use new hash table package.
2112 1.1 christos (enter_file): Likewise.
2113 1.1 christos (remove_intermediates): Likewise.
2114 1.1 christos (snap_deps): Likewise.
2115 1.1 christos (print_file_data_base): Likewise.
2116 1.1 christos
2117 1.1 christos * function.c
2118 1.1 christos (function_table_entry_hash_1, function_table_entry_hash_2,
2119 1.1 christos function_table_entry_hash_cmp): New functions.
2120 1.1 christos (lookup_function): Remove `table' argument.
2121 1.1 christos Use new hash table package.
2122 1.1 christos (struct a_word) [chain, length]: New members.
2123 1.1 christos (a_word_hash_1, a_word_hash_2, a_word_hash_cmp): New functions.
2124 1.1 christos (struct a_pattern): New struct.
2125 1.1 christos (func_filter_filterout): Pass through patterns noting boundaries
2126 1.1 christos and '%', if present. Note a_word length. Use a hash table if
2127 1.1 christos arglists are large enough to justify cost.
2128 1.1 christos (function_table_init): Renamed from function_table.
2129 1.1 christos (function_table): Declare as `struct hash_table'.
2130 1.1 christos (FUNCTION_TABLE_ENTRIES): New constant.
2131 1.1 christos (hash_init_function_table): New function.
2132 1.1 christos
2133 1.1 christos * read.c (hash.h): New #include.
2134 1.1 christos (read_makefile): Pass char constants to find_char_unquote.
2135 1.1 christos (dep_hash_1, dep_hash_2, dep_hash_cmp): New functions.
2136 1.1 christos (uniquize_deps): Use hash table to efficiently identify duplicates.
2137 1.1 christos (find_char_unquote): Accept two char-constant stop chars, rather
2138 1.1 christos than a string constant, avoiding zillions of calls to strchr.
2139 1.1 christos Tighten inner search loops to test only for desired delimiters.
2140 1.1 christos
2141 1.1 christos * variable.c (variable_hash_1, variable_hash_2,
2142 1.1 christos variable_hash_cmp): New functions.
2143 1.1 christos (variable_table): Declare as `struct hash_table'.
2144 1.1 christos (global_variable_set): Remove initialization.
2145 1.1 christos (init_hash_global_variable_set): New function.
2146 1.1 christos (define_variable_in_set): Use new hash table package.
2147 1.1 christos (lookup_variable): Likewise.
2148 1.1 christos (lookup_variable_in_set): Likewise.
2149 1.1 christos (initialize_file_variables): Likewise.
2150 1.1 christos (pop_variable_scope): Likewise.
2151 1.1 christos (create_new_variable_set): Likewise.
2152 1.1 christos (merge_variable_sets): Likewise.
2153 1.1 christos (define_automatic_variables): Likewise.
2154 1.1 christos (target_environment): Likewise.
2155 1.1 christos (print_variable_set): Likewise.
2156 1.1 christos
2157 1.1 christos 2002-07-10 Paul D. Smith <psmith (a] gnu.org>
2158 1.1 christos
2159 1.1 christos Implement the SysV make syntax $$@, $$(@D), and $$(@F) in the
2160 1.1 christos prerequisite list. A real SysV make will expand the entire
2161 1.1 christos prerequisites list _twice_: we don't do that as it's a big
2162 1.1 christos backward-compatibility problem. We only replace those specific
2163 1.1 christos variables.
2164 1.1 christos
2165 1.1 christos * read.c (record_files): Replace any $@, $(@D), and $(@F) variable
2166 1.1 christos references left in the list of prerequisites. Check for .POSIX as
2167 1.1 christos we record targets, so we can disable non-POSIX behavior while
2168 1.1 christos reading makefiles as well as running them.
2169 1.1 christos (eval): Check the prerequisite list to see if we have anything
2170 1.1 christos that looks like a SysV prerequisite variable reference.
2171 1.1 christos
2172 1.1 christos 2002-07-09 Paul D. Smith <psmith (a] gnu.org>
2173 1.1 christos
2174 1.1 christos * doc/make.texi (Prerequisite Types): Add a new section describing
2175 1.1 christos order-only prerequisites.
2176 1.1 christos
2177 1.1 christos * read.c (uniquize_deps): If we have the same file as both a
2178 1.1 christos normal and order-only prereq, get rid of the order-only prereq,
2179 1.1 christos since the normal one supersedes it.
2180 1.1 christos
2181 1.1 christos 2002-07-08 Paul D. Smith <psmith (a] gnu.org>
2182 1.1 christos
2183 1.1 christos * AUTHORS: Added Greg McGary to the AUTHORS file.
2184 1.1 christos * NEWS: Blurbed order-only prerequisites.
2185 1.1 christos * file.c (print_file): Show order-only deps properly when printing
2186 1.1 christos the database.
2187 1.1 christos
2188 1.1 christos * maintMakefile: Add "update" targets for wget'ing the latest
2189 1.1 christos versions of various external files. Taken from Makefile.maint in
2190 1.1 christos autoconf, etc.
2191 1.1 christos
2192 1.1 christos * dosbuild.bat: Somehow we got _double_ ^M's. Remove them.
2193 1.1 christos Reported by Eli Zaretskii <eliz (a] is.elta.co.il>.
2194 1.1 christos
2195 1.1 christos 2002-07-07 Paul D. Smith <psmith (a] gnu.org>
2196 1.1 christos
2197 1.1 christos * po/*.po: Remove. We'll use wget to retrieve them at release
2198 1.1 christos time.
2199 1.1 christos
2200 1.1 christos * variable.c (do_variable_definition) [W32]: On W32 using cmd
2201 1.1 christos rather than a shell you get an exception. Make sure we look up
2202 1.1 christos the variable. Patch provided by Eli Zaretskii <eliz (a] is.elta.co.il>.
2203 1.1 christos
2204 1.1 christos * remake.c (notice_finished_file): Fix handling of -t flag.
2205 1.1 christos Patch provided by Henning Makholm <henning (a] makholm.net>.
2206 1.1 christos
2207 1.1 christos * implicit.c (pattern_search): Some systems apparently run short
2208 1.1 christos of stack space, and using alloca() in this function caused an
2209 1.1 christos overrun. I modified it to use xmalloc() on the two variables
2210 1.1 christos which seemed like they might get large. Fixes Bug #476.
2211 1.1 christos
2212 1.1 christos * main.c (print_version): Update copyright notice to conform with
2213 1.1 christos GNU standards.
2214 1.1 christos (print_usage): Update help output.
2215 1.1 christos
2216 1.1 christos * function.c (func_eval): Create a new make function, $(eval
2217 1.1 christos ...). Expand the arguments, put them into a buffer, then invoke
2218 1.1 christos eval_buffer() on the resulting string.
2219 1.1 christos (func_quote): Create a new function, $(quote VARNAME). Inserts
2220 1.1 christos the value of the variable VARNAME without expanding it any
2221 1.1 christos further.
2222 1.1 christos
2223 1.1 christos * read.c (struct ebuffer): Change the linebuffer structure to an
2224 1.1 christos "eval buffer", which can be either a file or a buffer.
2225 1.1 christos (eval_makefile): Move the code in the old read_makefile() which
2226 1.1 christos located a makefile into here: create a struct ebuffer with that
2227 1.1 christos information. Have it invoke the new function eval() with that
2228 1.1 christos ebuffer.
2229 1.1 christos (eval_buffer): Create a new function that creates a struct ebuffer
2230 1.1 christos that holds a string buffer instead of a file. Have it invoke
2231 1.1 christos eval() with that ebuffer.
2232 1.1 christos (eval): New function that contains the guts of the old
2233 1.1 christos read_makefile() function: this function parses makefiles. Obtains
2234 1.1 christos data to parse from the provided ebuffer. Some modifications to
2235 1.1 christos make the flow of the function cleaner and clearer. Still could
2236 1.1 christos use some work here...
2237 1.1 christos (do_define): Takes a struct ebuffer instead of a FILE*. Read the
2238 1.1 christos contents of the define/endef variable from the ebuffer.
2239 1.1 christos (readstring): Read the next line from a string-style ebuffer.
2240 1.1 christos (readline): Read the next line from an ebuffer. If it's a string
2241 1.1 christos ebuffer, invoke readstring(). If it's a FILE* ebuffer, read it
2242 1.1 christos from the file.
2243 1.1 christos
2244 1.1 christos * dep.h (eval_buffer): Prototype eval_buffer();
2245 1.1 christos
2246 1.1 christos * variable.c (do_variable_definition): Make sure that all
2247 1.1 christos non-target-specific variables are registered in the global set.
2248 1.1 christos If we're invoked from an $(eval ...) we might be inside a $(call
2249 1.1 christos ...) or other function which has pushed a variable scope; we still
2250 1.1 christos want to define our variables from evaluated makefile code in the
2251 1.1 christos global scope.
2252 1.1 christos
2253 1.1 christos 2002-07-03 Greg McGary <greg (a] mcgary.org>
2254 1.1 christos
2255 1.1 christos * dep.h (struct dep) [ignore_mtime]: New member.
2256 1.1 christos [changed]: convert to a bitfield.
2257 1.1 christos * implicit.c (pattern_search): Zero ignore_mtime.
2258 1.1 christos * main.c (main, handle_non_switch_argument): Likewise.
2259 1.1 christos * rule.c (convert_suffix_rule): Likewise.
2260 1.1 christos * read.c (read_all_makefiles, read_makefile, multi_glob): Likewise.
2261 1.1 christos (read_makefile): Parse '|' in prerequisite list.
2262 1.1 christos (uniquize_deps): Consider ignore_mtime when comparing deps.
2263 1.1 christos * remake.c (update_file_1, check_dep): Don't force remake for
2264 1.1 christos dependencies that have d->ignore_mtime.
2265 1.1 christos * commands.c (FILE_LIST_SEPARATOR): New constant.
2266 1.1 christos (set_file_variables): Don't include a
2267 1.1 christos prerequisite in $+, $^ or $? if d->ignore_mtime.
2268 1.1 christos Define $|.
2269 1.1 christos
2270 1.1 christos 2002-06-18 Paul D. Smith <psmith (a] gnu.org>
2271 1.1 christos
2272 1.1 christos * make.texinfo: Updates for next revision. New date/rev/etc.
2273 1.1 christos Recreate all Info menus. Change license on the manual to the GNU
2274 1.1 christos Free Documentation License. A number of typos.
2275 1.1 christos (Variables Simplify): Don't use "-" before it's defined.
2276 1.1 christos (Automatic Prerequisites): Rewrite the target example to work
2277 1.1 christos properly if the compile fails. Remove incorrect comments about
2278 1.1 christos how "set -e" behaves.
2279 1.1 christos (Text Functions): Move the "word", "wordlist", "words", and
2280 1.1 christos "firstword" functions here, from "File Name Functions".
2281 1.1 christos * make-stds.texi: Update from latest GNU version.
2282 1.1 christos * fdl.texi: (created) Import the latest GNU version.
2283 1.1 christos
2284 1.1 christos 2002-06-06 Paul D. Smith <psmith (a] gnu.org>
2285 1.1 christos
2286 1.1 christos * variable.c (do_variable_definition): New function: extract the
2287 1.1 christos part of try_variable_definition() that actually sets the value
2288 1.1 christos into a separate function.
2289 1.1 christos (try_variable_definition): Call do_variable_definition() after
2290 1.1 christos parsing the variable definition string.
2291 1.1 christos (define_variable_in_set): Make the name argument const.
2292 1.1 christos
2293 1.1 christos * variable.h (enum variable_flavor): Make public.
2294 1.1 christos (do_variable_definition): Create prototype.
2295 1.1 christos
2296 1.1 christos * read.c (read_all_makefiles): Create a new built-in variable,
2297 1.1 christos MAKEFILE_LIST.
2298 1.1 christos (read_makefile): Add each makefile read in to this variable value.
2299 1.1 christos
2300 1.1 christos 2002-05-18 Eli Zaretskii <eliz (a] is.elta.co.il>
2301 1.1 christos
2302 1.1 christos * Makefile.DOS.template: Tweak according to changes in the
2303 1.1 christos distribution. Add back the dependencies of *.o files.
2304 1.1 christos
2305 1.1 christos * configh.dos.template: Synchronize with config.h.in.
2306 1.1 christos
2307 1.1 christos 2002-05-09 Paul D. Smith <psmith (a] gnu.org>
2308 1.1 christos
2309 1.1 christos * file.c (file_timestamp_now): Use K&R function declaration.
2310 1.1 christos
2311 1.1 christos * getloadavg.c (getloadavg): Merge setlocale() fix from sh-utils
2312 1.1 christos getloadavg.c. Autoconf thinks QNX is SVR4-like, but it isn't, so
2313 1.1 christos #undef it. Remove predefined setup of NLIST_STRUCT. Decide
2314 1.1 christos whether to include nlist.h based on HAVE_NLIST_H. Change obsolete
2315 1.1 christos NLIST_NAME_UNION to new HAVE_STRUCT_NLIST_N_UN_N_NAME.
2316 1.1 christos * configure.in (NLIST_STRUCT): Define this if we have nlist.h and
2317 1.1 christos nlist.n_name is a pointer rather than an array.
2318 1.1 christos
2319 1.1 christos * acinclude.m4 (make_FUNC_SETVBUF_REVERSED): Grab the latest
2320 1.1 christos version of AC_FUNC_SETVBUF_REVERSED from autoconf CVS.
2321 1.1 christos * configure.in: Use it instead of the old version.
2322 1.1 christos
2323 1.1 christos * main.c (main): Prefer setvbuf() to setlinebuf().
2324 1.1 christos
2325 1.1 christos 2002-05-08 Paul D. Smith <psmith (a] gnu.org>
2326 1.1 christos
2327 1.1 christos * Makefile.am (make_LDADD): Add GETLOADAVG_LIBS.
2328 1.1 christos (loadavg_LDADD): Ditto.
2329 1.1 christos
2330 1.1 christos 2002-04-29 Paul D. Smith <psmith (a] gnu.org>
2331 1.1 christos
2332 1.1 christos * expand.c (recursively_expand_for_file): Rename
2333 1.1 christos recursively_expand() to recursively_expand_for_file() and provide
2334 1.1 christos an extra argument, struct file. If the argument is provided, set
2335 1.1 christos the variable scope to that of the file before expanding.
2336 1.1 christos * variable.h (recursively_expand): Make this a macro that invokes
2337 1.1 christos recursively_expand_for_file() with a NULL file pointer.
2338 1.1 christos * variable.c (target_environment): Call the renamed function and
2339 1.1 christos provide the current file context.
2340 1.1 christos Fixes Debian bug #144306.
2341 1.1 christos
2342 1.1 christos 2002-04-28 Paul D. Smith <psmith (a] gnu.org>
2343 1.1 christos
2344 1.1 christos Allow $(call ...) user-defined variables to be self-referencing
2345 1.1 christos without throwing an error. Allows implementation of transitive
2346 1.1 christos closures, among other possibly useful things.
2347 1.1 christos Requested by: Philip Guenther <guenther (a] sendmail.com>
2348 1.1 christos
2349 1.1 christos * variable.h (struct variable): Add a new field: exp_count, and
2350 1.1 christos new macros to hold its size and maximum value.
2351 1.1 christos (warn_undefined): Make this a macro.
2352 1.1 christos * variable.c (define_variable_in_set): Initialize it.
2353 1.1 christos * expand.c (recursively_expand): If we detect recursive expansion
2354 1.1 christos of a variable, check the exp_count field. If it's greater than 0
2355 1.1 christos allow the recursion and decrement the count.
2356 1.1 christos (warn_undefined): Remove this (now a macro in variable.h).
2357 1.1 christos * function.c (func_call): Before we expand the user-defined
2358 1.1 christos function, modify its exp_count field to contain the maximum
2359 1.1 christos number of recursive calls we'll allow. After the call, reset it
2360 1.1 christos to 0.
2361 1.1 christos
2362 1.1 christos 2002-04-21 Paul D. Smith <psmith (a] gnu.org>
2363 1.1 christos
2364 1.1 christos Modified to use latest autoconf (2.53), automake (1.6.1), and
2365 1.1 christos gettext (0.11.1). We're using gettext's new "external" support,
2366 1.1 christos to avoid including libintl source with GNU make.
2367 1.1 christos
2368 1.1 christos * README.cvs: New file. Explain how to build GNU make from CVS.
2369 1.1 christos
2370 1.1 christos * configure.in: Modify checking for the system glob library.
2371 1.1 christos Use AC_EGREP_CPP instead of AC_TRY_CPP. Remove the setting of
2372 1.1 christos GLOBDIR (we will always put "glob" in SUBDIRS, so automake
2373 1.1 christos etc. will manage it correctly). Set an automake conditional
2374 1.1 christos USE_LOCAL_GLOB to decide whether to compile the glob library.
2375 1.1 christos
2376 1.1 christos * getloadavg.c (main): Include make.h in the "TEST" program to
2377 1.1 christos avoid warnings.
2378 1.1 christos
2379 1.1 christos * Makefile.am: Remove special rules for loadavg. Replace them
2380 1.1 christos with Automake capabilities for building extra programs.
2381 1.1 christos
2382 1.1 christos * signame.c: This file does nothing if the system provide
2383 1.1 christos strsignal(). If not, it implements strsignal(). If the system
2384 1.1 christos doesn't define sys_siglist, then we make our own; otherwise we use
2385 1.1 christos the system version.
2386 1.1 christos * signame.h: Removed.
2387 1.1 christos
2388 1.1 christos * main.c (main): No need to invoke signame_init(). Update copyright.
2389 1.1 christos
2390 1.1 christos * ABOUT-NLS: Removed.
2391 1.1 christos * gettext.c: Removed.
2392 1.1 christos * gettext.h: Get a simplified copy from the gettext package.
2393 1.1 christos * po/*: Created.
2394 1.1 christos * i18n/*.po: Moved to po/.
2395 1.1 christos * i18n/: Removed.
2396 1.1 christos
2397 1.1 christos * config/*: Created. Contains package configuration helper files.
2398 1.1 christos * config.guess, config.sub: Moved to config directory.
2399 1.1 christos
2400 1.1 christos * configure.in (AC_CONFIG_FILES): Add po/Makefile.in, config/Makefile.
2401 1.1 christos Rework to use new-style autoconf features. Use the "external"
2402 1.1 christos mode for gettext. Make the build.sh config file conditional on
2403 1.1 christos whether build.sh.in exists, to avoid autoconf errors.
2404 1.1 christos * acinclude.m4: Removed almost all macros as being obsolete.
2405 1.1 christos Rewrote remaining macros to use AC_DEFINE.
2406 1.1 christos * acconfig.h: Removed.
2407 1.1 christos
2408 1.1 christos * Makefile.am (EXTRA_DIST): Add config/config.rpath. Use a
2409 1.1 christos conditional to handle customs support. Remove special handling
2410 1.1 christos for i18n features.
2411 1.1 christos
2412 1.1 christos 2002-04-20 Paul D. Smith <psmith (a] gnu.org>
2413 1.1 christos
2414 1.1 christos * function.c (func_call): Don't mark the argument variables $1,
2415 1.1 christos etc. as recursive. They've already been fully expanded so
2416 1.1 christos there's no need to do it again, and doing so strips escaped $'s.
2417 1.1 christos Reported by Sebastian Glita <glseba (a] yahoo.com>.
2418 1.1 christos
2419 1.1 christos * remake.c (notice_finished_file): Walk through double-colon
2420 1.1 christos entries via the prev field, not the next field!
2421 1.1 christos Reported by Greg McGary <greg (a] mcgary.org>.
2422 1.1 christos
2423 1.1 christos * main.c (main): If the user specifies -q and asks for a specific
2424 1.1 christos target which is a makefile, we got an assert. In that case it
2425 1.1 christos turns out we should continue normally instead.
2426 1.1 christos
2427 1.1 christos * i18n/de.po, i18n/fr.po: Installed an updated translation.
2428 1.1 christos
2429 1.1 christos * i18n/he.po: Installed a new translation.
2430 1.1 christos
2431 1.1 christos 2002-01-07 Paul D. Smith <psmith (a] gnu.org>
2432 1.1 christos
2433 1.1 christos * i18n/es.po, i18n/ru.po: Installed an updated translation.
2434 1.1 christos
2435 1.1 christos 2001-12-04 Paul D. Smith <psmith (a] gnu.org>
2436 1.1 christos
2437 1.1 christos * i18n/ja.po: Installed an updated translation.
2438 1.1 christos
2439 1.1 christos 2001-09-06 Paul Eggert <eggert (a] twinsun.com>
2440 1.1 christos
2441 1.1 christos * configure.in (AC_CHECK_HEADERS): Add sys/resource.h.
2442 1.1 christos (AC_CHECK_FUNCS): Add getrlimit, setrlimit.
2443 1.1 christos
2444 1.1 christos * main.c: Include <sys/resource.h> if it, getrlimit, and setrlimit
2445 1.1 christos are available.
2446 1.1 christos (main): Get rid of any avoidable limit on stack size.
2447 1.1 christos
2448 1.1 christos 2001-09-04 Paul D. Smith <psmith (a] gnu.org>
2449 1.1 christos
2450 1.1 christos * i18n/da.po: Installed an updated translation.
2451 1.1 christos
2452 1.1 christos 2001-08-03 Paul D. Smith <psmith (a] gnu.org>
2453 1.1 christos
2454 1.1 christos * i18n/fr.po: Installed an updated translation.
2455 1.1 christos Resolves Debian bug #106720.
2456 1.1 christos
2457 1.1 christos 2001-06-13 Paul D. Smith <psmith (a] gnu.org>
2458 1.1 christos
2459 1.1 christos * i18n/da.po, configure.in (ALL_LINGUAS): Installed a new
2460 1.1 christos translation.
2461 1.1 christos
2462 1.1 christos 2001-06-11 Paul D. Smith <psmith (a] gnu.org>
2463 1.1 christos
2464 1.1 christos * i18n/ko.po: Installed a new translation.
2465 1.1 christos
2466 1.1 christos 2001-05-06 Paul D. Smith <psmith (a] gnu.org>
2467 1.1 christos
2468 1.1 christos Modify the EINTR handling.
2469 1.1 christos
2470 1.1 christos * job.c (new_job): Reorganize the jobserver algorithm. Reorder
2471 1.1 christos the way in which we manage the file descriptor/signal handler race
2472 1.1 christos trap to be more efficient.
2473 1.1 christos
2474 1.1 christos 2001-05-06 Paul Eggert <eggert (a] twinsun.com>
2475 1.1 christos
2476 1.1 christos Restart almost all system calls that are interrupted, instead
2477 1.1 christos of worrying about EINTR. The lone exception is the read() for
2478 1.1 christos job tokens.
2479 1.1 christos
2480 1.1 christos * configure.in (HAVE_SA_RESTART): New macro.
2481 1.1 christos (MAKE_JOBSERVER): Define to 1 only if HAVE_SA_RESTART.
2482 1.1 christos * main.c (main): Use SA_RESTART instead of the old,
2483 1.1 christos nonstandard SA_INTERRUPT.
2484 1.1 christos
2485 1.1 christos * configure.in (AC_CHECK_FUNCS): Add bsd_signal.
2486 1.1 christos * main.c (bsd_signal): New function or macro,
2487 1.1 christos if the implementation doesn't supply it.
2488 1.1 christos (The bsd_signal function will be in POSIX 1003.1-200x.)
2489 1.1 christos (HANDLESIG): Remove.
2490 1.1 christos (main, FATAL_SIG): Use bsd_signal instead of signal or HANDLESIG.
2491 1.1 christos
2492 1.1 christos * make.h (EINTR_SET): Remove.
2493 1.1 christos (SA_RESTART): New macro.
2494 1.1 christos
2495 1.1 christos * arscan.c (ar_member_touch): Don't worry about EINTR.
2496 1.1 christos * function.c (func_shell): Likewise.
2497 1.1 christos * job.c (reap_children, free_child, new_job): Likewise.
2498 1.1 christos * main.c (main): Likewise.
2499 1.1 christos * remake.c (touch_file, name_mtime): Likewise.
2500 1.1 christos
2501 1.1 christos * arscan.c (ar_member_touch): Fix bug uncovered by EINTR removal;
2502 1.1 christos if fstat failed with errno!=EINTR, the error was ignored.
2503 1.1 christos
2504 1.1 christos * job.c (set_child_handler_action_flags): New function.
2505 1.1 christos (new_job): Use it to temporarily clear the SIGCHLD action flags
2506 1.1 christos while reading the token.
2507 1.1 christos
2508 1.1 christos 2001-05-02 Paul D. Smith <psmith (a] gnu.org>
2509 1.1 christos
2510 1.1 christos * job.c (start_job_command): Don't add define/endef per-line flags
2511 1.1 christos to the top-level flags setting.
2512 1.1 christos
2513 1.1 christos 2001-04-03 Paul D. Smith <psmith (a] gnu.org>
2514 1.1 christos
2515 1.1 christos * arscan.c (VMS_get_member_info,ar_scan) [VMS]: VMS sets the low
2516 1.1 christos bit on error, so check for odd return values, not non-0 return
2517 1.1 christos values.
2518 1.1 christos (VMS_get_member_info): Calculate the timezone differences correctly.
2519 1.1 christos Reported by John Fowler <jfowler (a] nyx.net>.
2520 1.1 christos
2521 1.1 christos
2522 1.1 christos 2001-03-14 Paul D. Smith <psmith (a] gnu.org>
2523 1.1 christos
2524 1.1 christos * variable.c (lookup_variable) [VMS]: Null-terminate the variable
2525 1.1 christos value before invoking define_variable().
2526 1.1 christos Reported by John Fowler <jfowler (a] nyx.net>.
2527 1.1 christos
2528 1.1 christos 2001-02-07 Paul D. Smith <psmith (a] gnu.org>
2529 1.1 christos
2530 1.1 christos * read.c (record_target_var): If we reset the variable due to a
2531 1.1 christos command-line variable setting overriding it, turn off the "append"
2532 1.1 christos flag.
2533 1.1 christos
2534 1.1 christos 2001-01-17 Paul D. Smith <psmith (a] gnu.org>
2535 1.1 christos
2536 1.1 christos * variable.c (lookup_variable) [VMS]: When getting values from the
2537 1.1 christos environment, allocate enough space for the _value_ plus escapes,
2538 1.1 christos not enough space for the name plus escapes :-/.
2539 1.1 christos Reported by John Fowler <jfowler (a] nyx.net>.
2540 1.1 christos
2541 1.1 christos * remake.c (f_mtime): Removed the "***" prefix from the mod time
2542 1.1 christos warnings that make generates, so it doesn't look like an error.
2543 1.1 christos Reported by Karl Berry <karl (a] gnu.org>.
2544 1.1 christos
2545 1.1 christos
2546 1.1 christos Fix for PR/2020: Rework appended target-specific variables. I'm
2547 1.1 christos fairly confident this algorithm is finally correct.
2548 1.1 christos
2549 1.1 christos * expand.c (allocated_variable_append): Rewrite. Instead of
2550 1.1 christos expanding each appended variable then adding all the expanded
2551 1.1 christos strings together, we append all the unexpanded values going up
2552 1.1 christos through the variable set contexts, then expand the final result.
2553 1.1 christos This behaves just like non-target-specific appended variable
2554 1.1 christos values, while the old way didn't in various corner cases.
2555 1.1 christos (variable_append): New function: recursively append the unexpanded
2556 1.1 christos value of a variable, walking from the outermost variable scope to
2557 1.1 christos the innermost.
2558 1.1 christos * variable.c (lookup_variable): Remove the code that looked up the
2559 1.1 christos variable set list if the found variable was "append". We don't
2560 1.1 christos need this anymore.
2561 1.1 christos (lookup_variable_in_set): Make this non-static so we can use it
2562 1.1 christos elsewhere.
2563 1.1 christos (try_variable_definition): Use lookup_variable_in_set() rather
2564 1.1 christos than faking out current_variable_set_list by hand (cleanup).
2565 1.1 christos * variable.h: Add a prototype for the now non-static
2566 1.1 christos lookup_variable_in_set().
2567 1.1 christos
2568 1.1 christos 2000-11-17 Paul D. Smith <psmith (a] gnu.org>
2569 1.1 christos
2570 1.1 christos * remake.c (f_mtime) [WINDOWS32]: On various advice, I changed the
2571 1.1 christos WINDOWS32 port to assume timestamps can be up to 3 seconds away
2572 1.1 christos before throwing a fit.
2573 1.1 christos
2574 1.1 christos 2000-11-17 Paul D. Smith <psmith (a] gnu.org>
2575 1.1 christos
2576 1.1 christos * read.c (readline): CRLF calculations had a hole, if you hit the
2577 1.1 christos buffer grow scenario just right. Reworked the algorithm to avoid
2578 1.1 christos the need for len or lastlen at all. Problem description with
2579 1.1 christos sample code chages provided by Chris Faylor <cgf (a] redhat.com>.
2580 1.1 christos
2581 1.1 christos 2000-10-24 Paul D. Smith <psmith (a] gnu.org>
2582 1.1 christos
2583 1.1 christos * gettext.c (SWAP): Declare this with the prototype, otherwise
2584 1.1 christos some systems don't work (non-32-bit? Reported for Cray T3E).
2585 1.1 christos Reported by Thorstein Thorsteinsson <thor (a] signe.teokem.lu.se>.
2586 1.1 christos
2587 1.1 christos 2000-10-05 Paul D. Smith <psmith (a] gnu.org>
2588 1.1 christos
2589 1.1 christos * acinclude.m4 (AM_LC_MESSAGES): Remove undefined macro
2590 1.1 christos AM_LC_MESSAGES; it doesn't seem to do anything anyway??
2591 1.1 christos
2592 1.1 christos * i18n/gl.po, configure.in (ALL_LINGUAS): New Galician translation.
2593 1.1 christos
2594 1.1 christos 2000-09-22 Paul D. Smith <psmith (a] gnu.org>
2595 1.1 christos
2596 1.1 christos * gettext.c: Don't #define _GETTEXT_H here; we only include some
2597 1.1 christos parts of the real gettext.h here, and we expect to really include
2598 1.1 christos the real gettext.h later. If we keep this #define, it's ignored.
2599 1.1 christos
2600 1.1 christos 2000-09-21 Paul D. Smith <psmith (a] gnu.org>
2601 1.1 christos
2602 1.1 christos * main.c (log_working_directory): Rework the text to use complete
2603 1.1 christos sentences, to make life simpler for the translators.
2604 1.1 christos
2605 1.1 christos 2000-08-29 Paul D. Smith <psmith (a] gnu.org>
2606 1.1 christos
2607 1.1 christos * file.c (remove_intermediates): Print a debug message before we
2608 1.1 christos remove intermediate files, so the user (if she uses -d) knows
2609 1.1 christos what's going on.
2610 1.1 christos
2611 1.1 christos 2000-08-21 Paul D. Smith <psmith (a] gnu.org>
2612 1.1 christos
2613 1.1 christos * variable.c (try_variable_definition): Change how we handle
2614 1.1 christos target-specific append variable defns: instead of just setting the
2615 1.1 christos value, expand it as an append _but_ only within the current
2616 1.1 christos target's context. Otherwise we lose all but the last value if the
2617 1.1 christos variable is appended more than once within the current target
2618 1.1 christos context. Fixes PR/1831.
2619 1.1 christos
2620 1.1 christos 2000-08-16 Paul D. Smith <psmith (a] gnu.org>
2621 1.1 christos
2622 1.1 christos * function.c (func_shell): Nul-terminate the buffer before
2623 1.1 christos printing an exec error message (just in case it's not!).
2624 1.1 christos Fixes PR/1860, reported by Joey Hess <joey (a] valinux.com>.
2625 1.1 christos
2626 1.1 christos 2000-07-25 Paul D. Smith <psmith (a] gnu.org>
2627 1.1 christos
2628 1.1 christos * job.c (construct_command_argv_internal): Add "~" to the list of
2629 1.1 christos sh_chars[] which disallow optimizing out the shell call.
2630 1.1 christos
2631 1.1 christos 2000-07-23 Paul Eggert <eggert (a] twinsun.com>
2632 1.1 christos
2633 1.1 christos * NEWS, make.texinfo: Document .LOW_RESOLUTION_TIME, which
2634 1.1 christos supersedes --disable-nsec-timestamps.
2635 1.1 christos * make.texinfo: Consistently use "time stamp" instead of "timestamp".
2636 1.1 christos * README: Remove --disable-nsec-timestamps.
2637 1.1 christos
2638 1.1 christos * filedef.h (struct file.low_resolution_time): New member.
2639 1.1 christos * file.c (snap_deps): Add support for .LOW_RESOLUTION_TIME.
2640 1.1 christos * remake.c (update_file_1):
2641 1.1 christos Avoid spurious rebuilds due to low resolution time stamps,
2642 1.1 christos generalizing the earlier code that applied only to archive members.
2643 1.1 christos (f_mtime): Archive members always have low resolution time stamps.
2644 1.1 christos
2645 1.1 christos * configure.in: Remove --disable-nsec-timestamps, as this has
2646 1.1 christos been superseded by .LOW_RESOLUTION_TIME.
2647 1.1 christos
2648 1.1 christos 2000-07-23 Paul Eggert <eggert (a] twinsun.com>
2649 1.1 christos
2650 1.1 christos * configure.in (enable_nsec_timestamps): Renamed from
2651 1.1 christos make_cv_nsec_timestamps, since enable/disable options
2652 1.1 christos shouldn't be cached.
2653 1.1 christos
2654 1.1 christos 2000-07-23 Bruno Haible <haible (a] clisp.cons.org>
2655 1.1 christos and Paul Eggert <eggert (a] twinsun.com>
2656 1.1 christos
2657 1.1 christos * file.c (file_timestamp_now):
2658 1.1 christos Use preprocessor-time check for FILE_TIMESTAMP_HI_RES
2659 1.1 christos so that clock_gettime is not linked unless needed.
2660 1.1 christos
2661 1.1 christos * filedef.h (FILE_TIMESTAMP_HI_RES):
2662 1.1 christos Remove definition; "configure" now does this.
2663 1.1 christos
2664 1.1 christos * configure.in (jm_AC_TYPE_UINTMAX_T): Move up,
2665 1.1 christos to before high resolution file timestamp check,
2666 1.1 christos since that check now uses uintmax_t.
2667 1.1 christos (FILE_TIMESTAMP_HI_RES): Define to nonzero if the code should use
2668 1.1 christos high resolution file timestamps.
2669 1.1 christos (HAVE_CLOCK_GETTIME): Do not define if !FILE_TIMESTAMP_HI_RES,
2670 1.1 christos so that we don't link in clock_gettime unnecessarily.
2671 1.1 christos
2672 1.1 christos 2000-07-17 Paul D. Smith <psmith (a] gnu.org>
2673 1.1 christos
2674 1.1 christos * i18n/ja.po: New version of the translation file.
2675 1.1 christos
2676 1.1 christos 2000-07-07 Paul D. Smith <psmith (a] gnu.org>
2677 1.1 christos
2678 1.1 christos * remake.c (f_mtime): If NO_FLOAT is defined, don't bother with
2679 1.1 christos the offset calculation.
2680 1.1 christos (name_mtime): Replace EINTR test with EINTR_SET macro.
2681 1.1 christos
2682 1.1 christos 2000-07-07 Paul Eggert <eggert (a] twinsun.com>
2683 1.1 christos
2684 1.1 christos Fix for PR/1811:
2685 1.1 christos
2686 1.1 christos * remake.c (update_file_1):
2687 1.1 christos Avoid spurious rebuilds of archive members due to their
2688 1.1 christos timestamp resolution being only one second.
2689 1.1 christos (f_mtime): Avoid spurious warnings of timestamps in the future due to
2690 1.1 christos the clock's resolution being lower than file timestamps'.
2691 1.1 christos When warning about future timestamps, report only the discrepancy,
2692 1.1 christos not the absolute value of the timestamp and the current time.
2693 1.1 christos
2694 1.1 christos * file.c (file_timestamp_now): New arg RESOLUTION.
2695 1.1 christos * filedef.h (file_timestamp_now): Likewise.
2696 1.1 christos (FILE_TIMESTAMP_NS): Now returns int. All uses changed.
2697 1.1 christos
2698 1.1 christos 2000-07-05 Paul D. Smith <psmith (a] gnu.org>
2699 1.1 christos
2700 1.1 christos * variable.c (lookup_variable) [VMS]: Remove vestigial references
2701 1.1 christos to listp. Fixes PR/1793.
2702 1.1 christos
2703 1.1 christos 2000-06-26 Paul Eggert <eggert (a] twinsun.com>
2704 1.1 christos
2705 1.1 christos * Makefile.am (MAINTAINERCLEANFILES): New macro, with stamp-pot in it.
2706 1.1 christos
2707 1.1 christos * dir.c (vms_hash): Ensure ctype macro args are nonnegative.
2708 1.1 christos
2709 1.1 christos * remake.c (f_mtime): Remove unused var memtime.
2710 1.1 christos
2711 1.1 christos 2000-06-25 Martin Buchholz <martin (a] xemacs.org>
2712 1.1 christos
2713 1.1 christos * make.texinfo, NEWS, TODO.private: Minor spelling corrections.
2714 1.1 christos Ran spell-check on make.texinfo.
2715 1.1 christos
2716 1.1 christos 2000-06-23 Paul D. Smith <psmith (a] gnu.org>
2717 1.1 christos
2718 1.1 christos * main.c (main): Replace EXIT_SUCCESS, EXIT_FAILURE, and
2719 1.1 christos EXIT_TROUBLE with MAKE_SUCCESS, MAKE_FAILURE, and MAKE_TROUBLE.
2720 1.1 christos * make.h: Define these macros.
2721 1.1 christos
2722 1.1 christos * Version 3.79.1 released.
2723 1.1 christos
2724 1.1 christos * configure.in: Add a new option, --disable-nsec-timestamps, to
2725 1.1 christos avoid using sub-second timestamps on systems that support it. It
2726 1.1 christos can lead to problems, e.g. if your makefile relies on "cp -p".
2727 1.1 christos * README.template: Document the issue with "cp -p".
2728 1.1 christos
2729 1.1 christos * config.guess, config.sub: Updated.
2730 1.1 christos
2731 1.1 christos
2733 1.1 christos
2734 1.1 christos See ChangeLog.2, available in the CVS repository at:
2735 1.1 christos
2736 1.1 christos http://savannah.gnu.org/cvs/?group=make
2737 1.1 christos
2738 1.1 christos for earlier changes.
2739 1.1 christos
2740 1.1 christos
2741 1.1 christos Copyright (C) 2000, 2001, 2002, 2003, 2004, 2005, 2006 Free Software
2742 1.1 christos Foundation, Inc.
2743 1.1 christos This file is part of GNU Make.
2744 1.1 christos
2745 1.1 christos GNU Make is free software; you can redistribute it and/or modify it under the
2746 1.1 christos terms of the GNU General Public License as published by the Free Software
2747 1.1 christos Foundation; either version 2, or (at your option) any later version.
2748 1.1 christos
2749 1.1 christos GNU Make is distributed in the hope that it will be useful, but WITHOUT ANY
2750 1.1 christos WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR
2751 1.1 christos A PARTICULAR PURPOSE. See the GNU General Public License for more details.
2752 1.1 christos
2753 1.1 christos You should have received a copy of the GNU General Public License along with
2754 1.1 christos GNU Make; see the file COPYING. If not, write to the Free Software
2755 Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
2756