summaryrefslogtreecommitdiff
path: root/read.c
AgeCommit message (Collapse)AuthorFilesLines
2005-08-10Fixed Savannah bug #13881.Boris Kolpackov1-12/+12
2005-08-08- Fixed a bug reported by Michael Matz regarding handling of parallelPaul Smith1-13/+10
jobs after a failed job. - Enhancements to WINDOWS32 code from Eli Zaretskii. - Add Microsoft Project files from J. Grant.
2005-06-27Fix strerror() handling for systems which set ANSI_STRING.Paul Smith1-5/+3
Don't print errors if "include" is specified with no arguments. New test suite for the $(shell ...) function.
2005-06-25Fix Savannah bug # 13478. If -L is given, take the latest mtime for aPaul Smith1-3/+0
symlink even if it is "dangling" (it doesn't resolve to a real file).
2005-06-25Fix Savannah bug #1454: skip over semicolons (and comments) inside variablePaul Smith1-18/+77
references in target definition lines.
2005-05-13Implement new "if... else if... endif" semantics.Paul Smith1-76/+119
2005-05-03Fix problems with losing tokens in the jobserver, reported by GrantPaul Smith1-13/+10
Taylor. There are two forms of this: first, it was possible to lose tokens when using -j and -l at the same time, because waiting jobs were not checked when determining whether any jobs were outstanding. Second, if you had an exported recursive variable that contained a $(shell ...) function there is a possibility to lose tokens, since a token was taken but the child list was not updated until after the shell function was complete. To resolve this I introduced a new variable that counted the number of tokens we have obtained, rather than checking whether there were any children on the list. I also added some sanity checks to make sure we weren't writing back too many or not enough tokens. And, the master make will drain the token pipe before exiting and compare the count of tokens at the end to what was written there at the beginning. Also: * Ensure a bug in the environment (missing "=") doesn't cause make to core. * Rename the .DEFAULT_TARGET variable to .DEFAULT_GOAL, to match the terminology in the documentation and other variables like MAKECMDGOALS. * Add documentation of the .DEFAULT_GOAL special variable. Still need to document the secondary expansion stuff...
2005-04-13Fix performance degradation introduced by the second expansion feature.Paul Smith1-27/+38
I did this by adding intelligence into the algorithm such that the second expansion was only actually performed when the prerequisite list contained at least one "$", so we knew it is actually needed. Without this we were using up a LOT more memory, since every single target (even ones never used by make) had their file variables initialized. This also used a lot more CPU, since we needed to create and populate a new variable hash table for every target. There is one issue remaining with this feature: it leaks memory. In pattern_search() we now initialize the file variables for every pattern target, which allocates a hash table, etc. However, sometimes we recursively invoke pattern_search() (for intermediate files) with an automatic variable (alloca() I believe) as the file. When that function returns, obviously, the file variable hash memory is lost.
2005-04-08Fix some Savannah bugs.Paul Smith1-0/+2
Updates to docs (still need more work here) and NEWS file. New language.
2005-03-09Fixed Savannah bug #12266.Boris Kolpackov1-2/+2
2005-03-03Fixed stem termination and stem triple-expansion bugs.Boris Kolpackov1-19/+4
2005-03-01Fixed Savannah bug #12180.Boris Kolpackov1-1/+1
2005-02-28* New feature: -L optionPaul Smith1-1/+8
* New function: $(info ...) * Disallow $(eval ...) to create prereq relationships inside command scripts (caused core dumps) * Try to allow more tests to succeed in Windows/DOS by sanitizing CRLF and \ * Various bug fixes and code cleanups (see the ChangeLog entry)
2005-02-27Implementation of the .DEFAULT_TARGET special variable.Boris Kolpackov1-41/+86
2005-02-27Implementation of the second expansion in explicitBoris Kolpackov1-171/+87
rules, static pattern rules and implicit rules.
2004-10-05Moved expansion of simple pattern-specific variables from the rebuild stageBoris Kolpackov1-1/+6
to the read stage.
2004-09-21Some code cleanups and efficiency enhancements. As far as I can tellPaul Smith1-32/+28
none of these have impacts that are visible to the user (although in some cases that appears to be nothing more than dumb luck :-/).
2004-09-21Fix some bugs in variable pattern substitution (e.g. $(VAR:A=B)),Paul Smith1-2/+2
reported by Markus Mauhart <qwe123@chello.at>. One was a simple typo; to fix the other we call patsubst_expand() for all instances of variable substitution, even when there is no '%'. We used to call subst_expand() with a special flag set in the latter case, but it didn't work properly in all situations. Easier to just use patsubst_expand() since that's what it is.
2004-05-16Various enhancementsPaul Smith1-5/+3
- OS/2 Patches - OpenVMS updates - Sanitize the handling of -include/sinclude with and without -k - Fix the setting of $< for order-only rules.
2004-03-22Numerous updates and bug fixes.Paul Smith1-1/+1
A number of W32 cleanups from J.Grant. A number of OS/2 cleanups from Andreas Buening. Various random bug fixes.
2004-01-21Many bug fixes etc.Paul Smith1-21/+24
- Apply a fix for the "thundering herd" problem when using "-j -l". This also fixes bug #4693. - Fix bug #7257: allow functions as ifdef arguments - Fix bug #4518: make sure we print all double-colon rules with -p. - Upgrade to autconf 2.58/automake 1.8/gettext 0.13.1 - Various doc cleanups, etc.
2003-05-02- Fix bug #1405: allow multiple pattern-specific variables to match a target.Paul Smith1-16/+20
- Fix some uncleanliness about the implementation of patterns-specific vars. - Some enhancements to the OS/2 port.
2003-03-24Add support for OS/2, contributed by Andreas Buening <andreas.buening@nexgo.de>Paul Smith1-4/+8
Also a small patch from Hartmut Becker <Hartmut.Becker@compaq.com> for VMS.
2003-01-30Fix bug #2238: the read.c:eval() function was not entirely reentrant.Paul Smith1-7/+11
Apply patch #1022: fix a memory corruption on very long target-specific variable definition lines.
2003-01-30Portability fix for glob.h building in FreeBSD ports system.Paul Smith1-4/+10
Implement a fix for bug # 2169: too many OSs, even major OSs like Solaris, don't properly implement SA_RESTART: important system calls like stat() can still fail when SA_RESTART is set. So, forget the BROKEN_RESTART config check and get rid of atomic_stat() and atomic_readdir(), and implement permanent wrappers for EINTR checking on various system calls (stat(), fstat(), opendir(), and readdir() so far).
2002-10-25Fix eval bugs 1516 and 1517.Paul Smith1-17/+38
2002-10-14Convert the source code to use ANSI C style function definitions andPaul Smith1-75/+27
enable the automake ansi2knr capability. Right now this doesn't quite build using a K&R compiler because of a problem with the loadavg test program, but the rest of the code works. I'm asking the automake list about this problem.
2002-10-13Fix bug#1379: don't use alloca() where it could overrun the stack size.Paul Smith1-9/+22
Implemented enhancement #1391: allow "export" in target-specific variable definitions. Change the Info name of the "Automatic" node to "Automatic Variables". Add text clarifying the scope of automatic variables to that section.
2002-10-05Fix core dump on malformed variable line (Debian bug #81656)Paul Smith1-10/+13
Allow SysV-style variable references to use {} in addition to (). Add variable.h to the POTFILES.in since it has a translatable string.
2002-10-04Fix K&R-isms found on SunOS 4.1.4 builds.Paul Smith1-4/+8
2002-09-23Fix a bug handling target/prerequisite names containing commentPaul Smith1-7/+1
characters.
2002-09-18Fix a bug exporting/unexporting multiple variables in one command.Paul Smith1-25/+20
Update the text about reporting bugs.
2002-09-17Fix bug #940 (from the Savannah bug tracker): make sure that target-Paul Smith1-2/+10
specific variables work correctly in conjunction with double-colon targets.
2002-09-10Add support for broken SA_RESTART on PTX.Paul Smith1-6/+37
Fix bug #103: allow ifdef, export, and unexport to expand their arguments.
2002-08-10Update to a new version of automake and gettext.Paul Smith1-20/+20
Invent a new macro HAVE_DOS_PATHS and change various instances of: #if defined(WINDOWS) || defined(__MSDOS__) to use the new macro instead. This should help make the OS/2 port cleaner, as well. Invent a cvs-clean maintainer target that tries to get the workspace back to the state it was in after a CVS checkout. New language.
2002-08-08Incorporate some VMS fixes.Paul Smith1-2/+9
Add -B option docs. Add .VARIABLES variable. Add a few new tests. Add a new translation: Swedish
2002-07-11Install Greg McGary's patches to port the id-utils hashing functions toPaul Smith1-77/+113
GNU make. Also he provides some other performance fixups after doing some profiling of make on large makefiles. Modify the test suite to allow the use of Valgrind to find memory problems.
2002-07-10Implement SysV-style $$@ support. I looked at E.Parmelan's patch butPaul Smith1-7/+122
decided to implement this a different way, and didn't use it.
2002-07-09Documentation and tests for order-only prerequisites.Paul Smith1-2/+9
Add a new test suite for automatic variables.
2002-07-08Various cleanups reported by people using the alpha release.Paul Smith1-4/+29
Incorporate "order-only" prerequisites patch. Wrote a test for it. The test shows what might be a bug in the code; I need to look at it more closely (anyway it doesn't behave as I expected). Also I haven't done the docs yet.
2002-07-08Major updates in preparation for 3.80.Paul Smith1-579/+739
New version of the manual, put into the doc subdir. Enhancements: $(eval ...) and $(value ...) functions, various bug fixes, etc. See the ChangeLog. More to come.
2001-06-01Fix for EINTR problems when using jobserver.Paul Smith1-2/+5
New translation files. Fix for @+ inside define macros being applied too widely. Various other bug fixes.
2000-11-17* Fix FAT handling on Windows to match the DJGPP port's FAT handling.Paul Smith1-22/+14
* Fix a potential hole in readline if lines end in ^M (CRLF).
2000-06-22* Fix PR/1709.Paul Smith1-1/+10
2000-06-07* Lots of bug fixes and cleanup; new i18n files, etc.Paul Smith1-16/+16
2000-04-05* Some final cleanups, and release 3.79.3.79Paul Smith1-2/+1
2000-03-27* Handle case of empty static pattern rule prerequisites.Paul Smith1-6/+19
* Fix linenumbers in error messages for rule definitions.
2000-02-09* Fix backslash-escape in targets.3.78.91Paul Smith1-1/+1
* Release 3.78.91.
2000-02-05* Fix PR/1407.Paul Smith1-5/+6
* Keep filename/lineno information for variables, for debugging.
1999-11-27* Update debugging to use string flags instead of integers.Paul Smith1-1/+1