summaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2013-11-27Solve some Windows build issues.Stephan T. Lavavej3-5/+5
* main.c (main): Use ONS(), not OSN(). (prepare_mutex_handle_string) [WINDOWS32]: Use %Ix formatting to support both 32bit and 64bit systems. * job.c (free_child, new_job): Use ONS(), not OSN(). * w32/subproc/w32err.c (map_windws32_error_to_string): Use O() when calling fatal(). Copyright-paperwork-exempt: yes
2013-11-24* features/loadapi (test_expand): Allocate memory for the nul byte.Paul Smith1-1/+1
2013-11-24* load.c (load_file): Reset the name length minus the symbol.Paul Smith1-0/+1
2013-11-24* read.c (unescape_char): Use memmove() for overlapping memory.Paul Smith1-2/+2
2013-11-24Fix memory leak during environment option decoding.Paul Smith1-10/+11
* main.c (decode_switches): Always make a copy of option arguments. (decode_env_switches): Use a stack buffer to convert environment switches for parsing.
2013-11-24[SV 40226] Add a new type of switch: single-string optionsPaul Smith1-71/+49
* main.c (struct command_switch): Change the "string" types to "strlist" and make "string" be a single-valued string instead. (output_sync_option, jobserver_fds, sync_mutex): Change to string type. (decode_output_sync_flags): Handle single strings instead of lists. (prepare_mutex_handle_string): Ditto. (main): Ditto. (clean_jobserver): Ditto. (init_switches): Handle the new type. (decode_switches): Ditto. (define_makeflags): Ditto.
2013-11-23* load.c: [SV 40515] Define RTLD_GLOBAL if not set.Daniel Richard G1-0/+5
Copyright-paperwork-exempt: yes
2013-11-23[SV 40361] Don't use vsnprintf(), which is an ISO C99 function.Paul Smith22-384/+428
* output.c (error, fatal, message): Take an extra argument specifying how many bytes are used by the formatted arguments. (get_buffer): New function that allocates the requested buffer size. Remove msc_vsnprintf(), vfmtconcat(), and fmtconcat() as unneeded. * makeint.h: Declare various helper macros for generating output. * *.c: Change all error(), fatal(), message() calls to use the macros, or pass the extra length argument directly.
2013-10-27* makeint.h (STOP_SET): [SV 40371] Cast to unsigned char.Paul Smith2-1/+15
* tests/scripts/misc/utf8: Test variable names with characters >127. Fix suggested by Robert Bogomip <bob.bogo@milohedge.com>
2013-10-24Fix MS Visual Studio NET2003 build.Gerte Hoogewerf1-2/+2
* make_msvc_net2003.vcproj: Do not exclude guile.c from compilation. Copyright-paperwork-exempt: Yes.
2013-10-23Fix SV bug #40227 with respect to stack size set for the MSVC build.Christian Boos1-3/+3
* NMakefile.template (/STACK): Increase to 0x400000, mainly for the 64-bit builds. Fixes SV bug #40227. Copyright-paperwork-exempt: Yes. (guile): Uncomment.
2013-10-23Fix the MS-Windows build: now guile.c must always be compiled in.Eli Zaretskii2-16/+3
* build_w32.bat: Always compile guile.c and link against guile.o. Reported by Alexey Pavlov <alexpux@gmail.com>. * makeint.h (guile_gmake_setup): Define prototype unconditionally, to avoid compiler warnings.
2013-10-22Fix Savannah bug #31150 with failures due to setting window title.Eli Zaretskii1-1/+0
* sub_proc.c (process_begin): Don't set startInfo.lpTitle, it reportedly causes SV bug #31150, and according to MSDN it's a no-no.
2013-10-22Fix Savannah bug 40241 with Unixy file names as commands to MSYS shell.Eli Zaretskii1-4/+38
* sub_proc.c: Include filedef.h and variable.h. (process_begin): If exec_path was not found, but its first character is '/', assume there's some shell magic, and invoke the command through '$(SHELL) -c "COMMAND"'. Fixes SV bug#40241. (make_command_line): Kludgey feature: if full_exec_path is "-c", assume that argv[0] is not to be skipped, as it holds the command string to be passed to the shell.
2013-10-20* glob.c (glob) [SV 18123]: Cherry-pick glibc fixPaul Smith2-0/+11
Apply commit a471e96a5352a5f0bde6d32dd36d33524811a2b1 from git://sourceware.org/git/glibc.git to fix https://sourceware.org/bugzilla/show_bug.cgi?id=10278
2013-10-20* read.c (record_files): [SV 33034] Change fatal() to error()Paul Smith2-12/+9
Allows deprecated syntax. However we don't guarantee this syntax will continue to be legal in the future. Change suggested by David Boyce <david.s.boyce@gmail.com>
2013-10-20* README.git: Add some missing release steps.Paul Smith1-19/+26
2013-10-19[SV 40240] Use configure info to build load test shared libsPaul Smith7-8/+38
* tests/config-flags.pm.in: A new file containing variable assignments for the test suite; these variables are set by configure to contain the values detected there for compilers, flags, etc. * tests/run_make_tests.pl: Require the config-flags.pm file * tests/scripts/features/load, tests/scripts/features/loadapi: Use the configure-provided values when building the shared test library. * configure.ac: Replace tests/config-flags.pm.in * Makefile.am: Make sure tests/config-flags.pm is up to date
2013-10-19* maintMakefile (checkcfg.%): Add testing of build.shPaul Smith2-3/+10
2013-10-19[SV 40254] Modify build.sh to work properly with Guile support.Paul Smith4-11/+18
* guile.c (guile_gmake_setup) [HAVE_GUILE]: Define a stub function when Guile support is not enabled. * main.c (main) [HAVE_GUILE]: Always invoke guile_gmake_setup(). * Makefile.am: Make guile.c standard, not optional. * build.template: Add the Guile compiler and linker flags.
2013-10-19* maintMakefile: Accept variable overrides from the environment.Paul Smith1-4/+12
2013-10-19* NEWS: Fix version so we can build a distfile.Paul Smith1-1/+1
2013-10-19* read.c (eval): Avoid GCC warning to add braces.Paul Smith1-8/+9
2013-10-19* GNUMAKEFLAGS: Remove -O so it passes in NO_OUTPUT_SYNC mode.Paul Smith1-2/+2
2013-10-18Fix initialization of stringlist variables for jobserver_fds and sync_mutex.Christian Boos1-4/+6
(tiny change) main.c (prepare_mutex_handle_string, main): Initialize stringlist variables with at least 2 members, as one member is not currently supported.
2013-10-18Fix MinGW64 problem with non-compliant vsnprintf.Eli Zaretskii1-0/+6
makeint.h (__USE_MINGW_ANSI_STDIO) [__MINGW64_VERSION_MAJOR]: Define for MinGW64, to force it to use an ANSI-compliant implementation of vsnprintf. Reported by Christian Boos <cboos@edgewall.org>.
2013-10-18Fix the MSVC build on MS-Windows.Eli Zaretskii2-1/+5
output.c (vsnprintf) [_MSC_VER]: Define, instead of defining snprintf, which isn't used. Reported by Christian Boos <cboos@edgewall.org>. NMakefile.template (OBJS): Add load.obj and posixfcn.obj. ($(OUTDIR)/pathstuff.obj): New dependency. Suggested by Christian Boos <cboos@edgewall.org>.
2013-10-13[SV 40139] Modify "missing separator" for better translationPaul Smith1-3/+4
2013-10-13Add support for updating the GNU make web pages.Paul Smith3-10/+70
Add makefile rules for updating the http://www.gnu.org/software/make web pages, including the online GNU make manual.
2013-10-13Convert to auto-generated ChangeLog files.Paul Smith10-125/+43
Rename existing ChangeLog files so they won't be distributed. Add targets to maintMakefile to generate ChangeLog from the Git repository. This will require a version of gnulib be available. Because ChangeLog is auto-generated, we have to switch our automake mode to "foreign" or it will complain and fail.
2013-10-13Set up for the next release.Paul Smith2-2/+9
2013-10-09GNU Make release 4.0.4.0Paul Smith5-9/+34
2013-10-09[SV 39709] Fix some typos.Paul Smith5-11/+15
2013-10-07Untabify posixfcn.c.Eli Zaretskii1-163/+163
2013-10-07Foix compilation with MSVC.Eli Zaretskii2-9/+17
w32/compat/posixfcn.c (tmpfile): Move declaration of h before the first executable statement. Reported by Gisle Vanem <gvanem@yahoo.no>.
2013-10-05Clean up some tests for use on Windows.Paul Smith4-110/+121
2013-10-05Sanitize the registered function interface.Paul Smith11-49/+143
Expand the characters which are legal in a function name, and check the name for validity. Create a type for the function pointer. Convert the last argument from a boolean to flags, to allow for expansion.
2013-10-03 function.c (abspath): Reset root_len to one for Cygwin only whenEli Zaretskii2-1/+6
HAVE_DOS_PATHS is defined. Suggested by Christopher Faylor.
2013-10-02Fix tmpfile on MS-Windows.Eli Zaretskii2-0/+103
w32/compat/posixfcn.c (tmpfile): New function, a replacement for the Windows libc version.
2013-10-02Fix $abspath on Cygwin when HAVE_DOS_PATHS is in effect.Eli Zaretskii2-4/+21
function.c (IS_ABSOLUTE) [__CYGWIN__]: Special definition for Cygwin. (abspath) [__CYGWIN__]: Reset root_len to 1 if the absolute file name has the Posix /foo/bar form. [HAVE_DOS_PATHS]: Use root_len instead of hard-coded 2.
2013-10-01Release GNU Make version 3.99.93.3.99.93Paul Smith3-3/+8
2013-09-30Fix portability issues for Guile 1.8.Paul Smith4-7/+14
2013-09-30Final fixes for obscure output-sync errors.Paul Smith4-62/+72
2013-09-30Fixes for building with MSVC.Paul Smith4-6/+21
2013-09-30Solaris /bin/sh can't handle multiple options ("-e -c").Paul Smith3-3/+21
2013-09-29Fix build failures on EMX for output-sync support.Paul Smith5-12/+17
2013-09-29Portability for Guile 1.8. Force UTF-8 encoding.Paul Smith4-32/+27
2013-09-29Reset GNUMAKEFLAGS after parsing.Paul Smith6-8/+52
If we don't do this we'll continually add flags on recursion. This is mainly for users to set in their environment before invoking make.
2013-09-23Rename dash-w to print-directory.Paul Smith2-0/+6
Avoid conflicts with dash-W on case-insensitive filesystems.
2013-09-23Fix broken w32 build due to OUTPUT_SYNC -> NO_OUTPUT_SYNC inversion.Eli Zaretskii3-3/+9
w32/compat/posixfcn.c: Fix the forgotten OUTPUT_SYNC conditional. job.h: Ditto, but in a comment.