Paul Smith
e4d5d43424
Save strings we're expanding in case an embedded eval causes them
...
to be freed (if they're the value of a variable that's reset for example).
See Savannah patch #7534
2011-08-29 16:20:19 +00:00
Paul Smith
b06b8c64a2
Fix another error related to whitespace handling in archives.
...
Newer version of VMS support strncasecmp() so update the config.h.
2011-06-12 16:22:04 +00:00
Paul Smith
f15efca811
Ensure private variables are not used when appending target-specific
...
variables. Fixes Savannah bug #32872 .
2011-05-07 20:03:49 +00:00
Paul Smith
b664d3a91d
Inverted the boolean test from what I wanted it to be. Added a
...
regression test to make sure this continues to work.
2011-05-07 14:36:11 +00:00
Eli Zaretskii
b5c065418f
job.c (construct_command_argv_internal): Don't assume shellflags
...
is always non-NULL. Escape-protect characters special to the
shell when copying the value of SHELL into new_line. Fixes
Savannah bug #23922 .
2011-05-07 08:29:13 +00:00
Paul Smith
bd6f63e563
Updated documentation to fix Savannah bugs #32058 and #31582
2011-05-02 15:11:23 +00:00
Paul Smith
6979e7e43b
Use the same algorithm for counting the number of words to sort as we
...
use to break up the list of words, so we're sure to get the same number.
Fixes Savannah bug #33125
2011-05-02 12:35:01 +00:00
Paul Smith
dc90160079
Extern the global declaration of stack_limit. Fixes Savannah bug #32753
2011-05-02 12:29:09 +00:00
Paul Smith
a81ee5209b
Avoid invoking glob() unless the filename has potential globbing
...
characters in it, for performance improvements.
2011-05-02 00:18:06 +00:00
Boris Kolpackov
15a79d723d
Delay caching of the file name in eval_makefile() until after all the
...
expansions and searches are complete. This fixes an assertion in a
situation where the MAKEFILES variable contains a file path that
contains tilde.
2011-04-29 15:27:39 +00:00
Paul Smith
b34438bee8
Add new feature: != shell assignment for portability with BSD make.
...
Feature submitted by David Wheeler.
2011-04-18 01:25:20 +00:00
Paul Smith
1454a04f81
* Fixups to the make man page
...
* Minor syntax cleanups in the manual
* In non-maintainer mode set NDEBUG to disable assert()
* Performance improvements in strcache:
Build Info 1000 2000 4000
3.82 -g 2.61s 8.85s 33.52s
3.82 -O2 1.90s 7.62s 27.82s
New -g (with asserts) 1.03s 2.31s 5.79s
New -O2 (no asserts) 0.65s 1.50s 3.52s
2011-02-21 07:30:11 +00:00
Paul Smith
ae2ab76fac
Check if the target-specific variable is the same as the global
...
variable, and if so don't try to update it. Savannah bug #31743 .
2010-11-30 14:48:52 +00:00
Paul Smith
391456aad7
Improve backslash/newline handling to adhere to POSIX requirements.
2010-11-06 21:56:23 +00:00
Paul Smith
a86d1693ba
Bump the version to 3.82.90.
...
Fix some doc bugs.
Implement the --trace flag.
Show filename/linenumber on error.
2010-08-29 23:05:26 +00:00
Paul Smith
3b1432d86a
Set shellflags to a reasonable default if it's not set already.
2010-08-29 04:50:26 +00:00
Eli Zaretskii
c3188c6f31
variable.c (define_automatic_variables) [__MSDOS__ || WINDOWS32]:
...
Remove trailing backslashes in $(@D), $(<D), etc., for consistency
with forward slashes. Fixes Savannah bug #30795 .
2010-08-27 15:01:42 +00:00
Paul Smith
5acda13ace
- Fix the NEWS file to be accurate
...
- Add oneshell to $(.FEATURES) (forgot that!)
- Fix Savannah bug #30612 : handling of archive references with >1 object
2010-08-14 02:50:14 +00:00
Paul Smith
036760a9fd
Fix Savannah bug #30723 : expand MAKEFLAGS before we re-exec after
...
rebuilding makefiles.
2010-08-10 07:35:34 +00:00
Eli Zaretskii
91be515567
w32/subproc/build.bat: Make all 3 cl.exe compile command lines
...
use the same /I switches. Fixes Savannah bug #30662 .
2010-08-07 08:55:17 +00:00
Eli Zaretskii
b6b6875986
function.c (func_shell) [WINDOWS32]: Reset just_print_flag
...
around the call to construct_command_argv, so that a temporary
batch file _is_ created when needed for $(shell). Fixes Savannah
bug #16362 .
2010-08-07 08:46:06 +00:00
Eli Zaretskii
8f029808af
Fix the DJGPP build.
...
configh.dos.template (HAVE_STRNCASECMP): Define.
2010-08-07 08:15:45 +00:00
Paul Smith
95f1a32d27
Release GNU make 3.82
...
- Update tests for Solaris bizarre-ness
- Update files for release
2010-07-28 05:39:50 +00:00
Eli Zaretskii
59691939f9
job.c
2010-07-24 08:27:50 +00:00
Eli Zaretskii
e954532d48
job.c (pid2str) [WINDOWS32]: Fix CPP conditionals for using %Id format.
2010-07-24 08:27:26 +00:00
Paul Smith
f5d7411c49
Fix up incorrect prototype.
2010-07-20 13:12:06 +00:00
Paul Smith
fba20a776d
- Many fixup patches from Savannah.
...
- Fix the test suite on Solaris (from Boris)
- Update the manual for .ONESHELL
2010-07-19 07:10:53 +00:00
Boris Kolpackov
df2fa7c5a5
Fix buffer overrun in concat().
2010-07-16 13:01:15 +00:00
Paul Smith
9903cda2a7
Update copyrights for 2010.
2010-07-13 01:20:10 +00:00
Paul Smith
ded9121846
Fixes to build_w32.bat for building with MSVC 64bit.
2010-07-12 20:32:59 +00:00
Eli Zaretskii
02ff72c970
Add missing one_shell declaration.
2010-07-12 17:18:31 +00:00
Eli Zaretskii
90b30b6e0e
*** empty log message ***
2010-07-12 17:17:45 +00:00
Eli Zaretskii
96c0761689
make.h (alloca) [!__GNUC__]: Don't define prototype.
...
(int w32_kill): Use pid_t for process ID argument.
Savannah bug #27809 .
2010-07-12 17:16:54 +00:00
Paul Smith
bbe7b86718
Forgot to add the ONESHELL regression tests.
2010-07-12 05:29:25 +00:00
Paul Smith
7ba7dbca47
Add the beginning of the .ONESHELL special feature.
...
Original patch by David Boyce. Modified by Paul Smith.
2010-07-12 05:23:19 +00:00
Eli Zaretskii
b85b7e0a55
w32/subproc/sub_proc.c: Include stdint.h.
...
(sub_process_t): Use intptr_t for file handles and pid_t for
process ID.
(process_pipes, process_init_fd, process_begin): Use intptr_t for
file handles and pid_t for process ID.
Savannah bug #27809 . Patch by Ozkan Sezer <sezeroz@gmail.com>
2010-07-09 12:05:10 +00:00
Eli Zaretskii
587588c1fa
Fix Savannah bug #30312 .
...
function.c (abspath): Support absolute file names in UNC format.
2010-07-09 11:40:19 +00:00
Eli Zaretskii
94bda718c4
config.h.W32.template (pid_t): Add a definition for 64-bit Windows builds that don't use GCC.
2010-07-09 11:38:01 +00:00
Eli Zaretskii
4e4d8f246f
job.c (pid2str) [WINDOWS32]: Don't use %Id with GCC < 4.x.
...
(exec_command) [WINDOWS32]: Use pid2str instead of non-portable
%Id.
main.c (handle_runtime_exceptions): Use %p to print addresses,
to DTRT on both 32-bit and 64-bit hosts. Savannah bug #27809 .
job.c (w32_kill, start_job_command, create_batch_file): Use
pid_t for process IDs and intptr_t for the 1st arg of
_open_osfhandle.
function.c (windows32_openpipe): Use pid_t for process IDs and
intptr_t for the 1st arg of _open_osfhandle.
(func_shell): Use pid_t for process IDs.
main.c (main) [WINDOWS32]: Pacify the compiler.
config.h.W32.template (pid_t): Add a definition for 64-bit
Windows builds that don't use GCC.
Savannah bug #27809 . Patch by Ozkan Sezer <sezeroz@gmail.com>
2010-07-09 11:10:04 +00:00
Paul Smith
8a0f9d7b42
Fix FTP upload rules.
2010-07-07 02:06:48 +00:00
Paul Smith
c7b469f0f3
- Enhance .POSIX to set -e when invoking shells, as demanded by a
...
backward-incompatible change in the 2008 POSIX specification.
- Add the .SHELLFLAGS variable so people can choose their own shell flags.
- Add tests for this.
- Add documentation for this.
2010-07-06 06:37:42 +00:00
Paul Smith
c78b7265bd
Fixups for warnings on Windows (esp 64bit).
2010-07-05 18:32:03 +00:00
Paul Smith
fc644b4c45
Do not consider filenames that contain parens but don't END in a paren,
...
to be an archive group. Fixes Savannah bug #28525 .
2010-07-03 16:45:45 +00:00
Paul Smith
97f106fa10
- Add whitespace to command line invocation in features/recursion
...
- Set up .FEATURES with separate calls for optional features, as some
compilers don't like conditionals inside macro invocations.
2010-07-01 07:16:00 +00:00
Paul Smith
7746a1f74f
- Rename strieq() to patheq() for clarity.
...
- Convert xmalloc/memset pairs to xcalloc.
2010-07-01 05:59:08 +00:00
Eli Zaretskii
c0239cdbfa
*** empty log message ***
2009-12-11 15:55:16 +00:00
Eli Zaretskii
866aa6267a
(construct_command_argv_internal) <sh_cmds_dos> [WINDOWS32]: Add "echo." and
...
a few more commands that are built into cmd.exe. Fixes Savannah bug #28126 .
2009-12-11 15:54:19 +00:00
Eli Zaretskii
b4cec7790f
*** empty log message ***
2009-12-11 12:03:05 +00:00
Eli Zaretskii
deace771d6
(lookup_file) [HAVE_DOS_PATHS]: Treat '\\' like we do with '/'.
2009-12-11 12:02:45 +00:00
Eli Zaretskii
f4d9937274
(construct_vpath_list): Correct the argument names in the commentary.
2009-12-11 09:47:41 +00:00