summaryrefslogtreecommitdiff
path: root/implicit.c
AgeCommit message (Collapse)AuthorFilesLines
2012-02-26Check for possible buffer overflow on very long filenames.Paul Smith1-0/+7
Fixes Savannah bug #35525
2012-01-16Update copyright notices.Paul Smith1-3/+3
2010-07-13Update copyrights for 2010.Paul Smith1-2/+2
2010-07-05Fixups for warnings on Windows (esp 64bit).Paul Smith1-1/+1
2009-11-12Implement linker-compatible library search.Boris Kolpackov1-1/+1
2009-10-25Update copyright years.Paul Smith1-1/+1
2009-10-25Fix fat-finger bug that left implicit rules with identical stem lengthsPaul Smith1-3/+3
being sorted indeterminately.
2009-10-06Fix savannah bug 25780. Optimize things a bit.Boris Kolpackov1-7/+6
2009-10-05Performance improvementsBoris Kolpackov1-4/+11
2009-09-28Implement the shortest stem first search order for pattern-specific ↵Boris Kolpackov1-0/+22
variables and pattern rules.
2009-09-25Performance improvement.Boris Kolpackov1-0/+4
2009-09-25Merge three parallel arrays into one. Make sure sufficient space is allocated.Boris Kolpackov1-28/+36
2009-09-24- Fix broken handling of order-only prereqs in secondary expansionPaul Smith1-225/+238
of implicit rules. - Fix leaked memory when dealing with implicit rule chains that have file variables or pattern variables.
2009-09-24- Rework secondary expansion so we only defer it if there's a possibilityPaul Smith1-356/+334
it might be needed: for most situations we parse prereqs immediately as we used to. Reduces memory usage. - Fixes Savannah bug #18622.
2009-09-16- Add xcalloc() and call itPaul Smith1-20/+14
- Fix memory errors found by valgrind - Remove multi_glob() and empower parse_file_seq() to do its job: the goal here is to remove the confusing reverse/re-reverse we do on the file lists: needed for future fixes. - Add a prefix arg to parse_file_seq() - Make concat() variadic so it can take arbitrary #'s of strings
2009-06-13- Fix Savannah bug 17825Paul Smith1-1/+1
- Fix Savannah bug 21231
2009-06-10- Fix Savannah bug #19108Paul Smith1-2/+1
- Fix Savannah bug #17752 - Test suite: * When tests fail keep a "run" file containing the command invoked. * Support for the Valgrind "memcheck" and "massif" tools.
2009-06-04- Modify access of config and gnulib Savannah modules to use GITPaul Smith1-2/+3
- Fix Savannah bug #24655. - Fix Savannah bug #24588. - Fix Savannah bug #24277. - Fix Savannah bug #25697. - Fix Savannah bug #25694. - Fix Savannah bug #25460. - Fix Savannah bug #26207. - Fix Savannah bug #25712. - Fix Savannah bug #26593. - Fix various doc issues.
2007-07-04* Update to GPLv3Paul Smith1-4/+4
* Update copyright to 2007 * Fix download URL for translation files (thanks to Thiemo Seufer)
2007-03-20This is a major update, which switches virtually every allocated-but-not-freedPaul Smith1-72/+47
string into the strcache. As a side-effect, many more structure members and function arguments can/should be declared const. As mentioned in the changelog, unfortunately measurement shows that this change does not yet reduce memory. The problem is with secondary expansion: because of this we store all the prerequisites in the string cache twice. First we store the prerequisite string after initial expansion but before secondary expansion, then we store each individual file after secondary expansion and expand_deps(). I plan to change expand_deps() to be callable in either context (eval or snap_deps) then have non-second-expansion targets call expand_deps() during eval, so that we only need to store that dependency list once.
2006-04-09Another round of cleanups:Paul Smith1-64/+62
- Add more warnings. - Rename variables that mask out-scope vars with the same name. - Remove all casts of return values from xmalloc, xrealloc, and alloca. - Remove casts of the first argument to xrealloc. - Convert all bcopy/bzero/bcmp invocations to use memcp/memmove/memset/memcmp.
2006-04-07Code cleanup: Remove all references to PARAMS() & ansi2knr.Paul Smith1-3/+2
2006-04-01Release GNU make 3.81.Paul Smith1-3/+2
Update NEWS docs. Enhance the manual to use automake version.texi, and use the canonical FSF copyright features and statement. Some $(realpath ...) tests won't work on Windows; leave them out The jobserver filedescriptor test might fail if some FDs are reserved, so for now comment out that check.
2006-03-22Fixed Savannah bug #16140.Boris Kolpackov1-2/+12
2006-03-17Fixed Savannah bug #16053.Boris Kolpackov1-12/+5
2006-03-10Numerous updates to tests for issues found on Cygwin and Windows.Paul Smith1-1/+1
Revert a fix for $? including non-existent files as it shows a bug in the Linux kernel build. Give them a release to fix this. Add some changes from Eli Z. for Windows changes.
2006-02-21Fix a potential core dump when merging aliases. Might fix bug #15818.Paul Smith1-7/+9
Revert intermediate file free code. Suppress some warnings in VMS builds.
2006-02-20- Memory cleanups, found with valgrind.Paul Smith1-9/+4
- Fix handling of special targets like .SUFFIX for VMS insensitive targets. - Don't make temporary batch files for -n. Make sure batch files are created in text mode.
2006-02-14Some memory leak cleanups (found with valgrind).Paul Smith1-10/+13
2006-02-13Fix bug #11183.Paul Smith1-6/+17
2006-02-11Last of the copyright updates.Paul Smith1-1/+2
2006-02-11Update copyright and license notices on all files.Paul Smith1-23/+17
Added new file strcache.c to various non-UNIX makefiles and build scripts.
2005-12-11Extend .SECONDEXPANSION to implicit rules. Final fix for bug #13781.Paul Smith1-24/+54
2005-12-09Fixed bug #13022 by setting is_target flag on files that this implicitBoris Kolpackov1-0/+5
pattern rule also makes.
2005-10-26Fix a crash I introduced last-minute.Paul Smith1-20/+18
Try to avoid extraneous rebuilds of template files.
2005-10-24Make second expansion optional (partial implementation).Paul Smith1-9/+5
I decided this feature was too impacting to make the permanent default behavior. This set of changes makes the default behavior of make the old behavior (no second expansion). If you want second expansion, you must define the .SECONDEXPANSION: special target before the first target that needs it. This set of changes ONLY fixes explicit and static pattern rules to work like this. Implicit rules still have second expansion enabled all the time: I'll work on that next. Note that there is still a backward-incompatibility: now to get the old SysV behavior using $$@ etc. in the prerequisites list you need to set .SECONDEXPANSION: as well.
2005-05-31Fixed Savannah bugs #13216 and #13218.Boris Kolpackov1-0/+14
2005-04-13Fix performance degradation introduced by the second expansion feature.Paul Smith1-11/+13
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-03-10Fixed Savannah bug #12267.Boris Kolpackov1-4/+18
2005-03-04Fixed Savannah bug #12202.Boris Kolpackov1-0/+2
2005-03-03Fixed stem termination and stem triple-expansion bugs.Boris Kolpackov1-5/+21
2005-02-28* New feature: -L optionPaul Smith1-1/+1
* 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 second expansion in explicitBoris Kolpackov1-160/+421
rules, static pattern rules and implicit rules.
2004-09-21Fixed bug in implicit rule prerequisite evaluation code. Added test.Boris Kolpackov1-1/+3
2004-01-08Enhancements to the documentation (fixes bugs #1772 and 4898).Paul Smith1-1/+1
Add "!" to the list of shell escape characters: POSIX sh allows it to be used to negate the return value of the command.
2004-01-07Fix order-only prerequisites for pattern rules. (Savannah patch #2349).Paul Smith1-3/+7
Add a regression test for this. Older libraries don't allow *alloc(0), so make sure we don't ever do that.
2003-05-02- Fix bug #1405: allow multiple pattern-specific variables to match a target.Paul Smith1-1/+1
- Fix some uncleanliness about the implementation of patterns-specific vars. - Some enhancements to the OS/2 port.
2002-10-14Convert the source code to use ANSI C style function definitions andPaul Smith1-8/+3
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-09-04Fix for complex situations where directories are declared as prerequisites.Paul Smith1-2/+2
Info on this fix from barkalow@reputation.com: thanks! Some updates/cleanups of some of the tests; added a forgotten -t test, etc.
2002-08-10Update to a new version of automake and gettext.Paul Smith1-1/+1
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.