summaryrefslogtreecommitdiff
path: root/implicit.c
AgeCommit message (Collapse)AuthorFilesLines
2013-09-22[SV 31155] Parse order-only tokens in second expansion results.Paul Smith1-11/+28
2013-07-22[Bug #39310] Parse simple pattern prereqs for globbing.Paul Smith1-11/+12
We tried to get some efficiency by avoiding a parse_file_seq() for simple pattern prerequisites, but this also means no wildcard expansion was happening, so add it back. Add regression tests for wildcards in target and prerequisite lists.
2013-07-09Keep a local count of the max dependency list size.Paul Smith1-6/+8
This global variable could be modified during recursion so keep our own local copy to compare against.
2013-06-22Create a character map to use for locating stop-points in strings.Paul Smith1-1/+1
In various places we were passing flags and characters to compare, then using complex conditionals to see where to stop in string searches. Performance numbers reveal that we were spending as much as 23% of our processing time in these functions, most of it in the comparison lines. Instead create a character map and use a single bitwise comparison to determine if this is any one of the stop characters.
2013-05-17Update source file format: remove TABs, use GNU coding styles.Paul Smith1-2/+2
2013-05-17Update copyright for changes in 2013.Paul Smith1-1/+1
2013-04-28Fix a few compiler warnings found by Eli.Paul Smith1-7/+1
2013-01-20Rename the make.h file to makeint.h for internal use only.Paul Smith1-1/+1
2012-03-05Simplify copyrights using ranges of years.Paul Smith1-3/+1
The new GNU Maintainer's Manual allows the use of year ranges in certain situations; take advantage of this simplification.
2012-03-04Convert all "`'" quotes to "''" per new GNU Coding Standard guidelines.Paul Smith1-15/+15
Fixes Savannah bug #34530.
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