summaryrefslogtreecommitdiff
path: root/default.c
AgeCommit message (Collapse)AuthorFilesLines
2007-03-20This is a major update, which switches virtually every allocated-but-not-freedPaul Smith1-5/+5
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-11-18Fix from Eli for incorrect value of $(MAKE) on Cygwin.Paul Smith1-7/+7
A few changes from char* to void* where appropriate, and removing of unnecessary casts. Much more work on const-ifying the codebase. This round involves some code changes to make it correct. NOTE!! There will almost certainly be problems on the non-POSIX ports that will need to be addressed after the const changes are finished: they will need to be const-ified properly and there may need to be some changes to allocate memory, etc. as well. The next (last?) big push for this, still to come, is const-ifying the filenames in struct file, struct dep, etc. This will allow us to store file names in the string cache and finally resolve Savannah bug #15182 (make uses too much memory), among other advantages.
2006-04-09Another round of cleanups:Paul Smith1-1/+1
- 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-02-11Last of the copyright updates.Paul Smith1-1/+2
2006-02-11Update copyright and license notices on all files.Paul Smith1-14/+11
Added new file strcache.c to various non-UNIX makefiles and build scripts.
2005-06-25Add a new variable: MAKE_RESTARTS, to count how many times make has re-exec'd.Paul Smith1-1/+2
When rebuilding makefiles, unset -B if MAKE_RESTARTS is >0.
2004-05-16Various enhancementsPaul Smith1-1/+5
- OS/2 Patches - OpenVMS updates - Sanitize the handling of -include/sinclude with and without -k - Fix the setting of $< for order-only rules.
2003-05-02- Fix bug #1405: allow multiple pattern-specific variables to match a target.Paul Smith1-2/+2
- 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-2/+8
Also a small patch from Hartmut Becker <Hartmut.Becker@compaq.com> for VMS.
2002-10-14Convert the source code to use ANSI C style function definitions andPaul Smith1-4/+4
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.
2000-03-26* Ignore attempt to change a file into itself.Paul Smith1-3/+3
* Define COFLAGS to avoid unknown variable warning. * Fix some usec problems on UnixWare. * Don't remove .INTERMEDIATE targets specified on the command line.
2000-02-05* Updates for VMS, Windows, and DOS ports.Paul Smith1-0/+4
* Clean up some warnings.
2000-01-22* Merge VMS patches by Hartmut Becker.Paul Smith1-9/+74
1999-10-15* Fix PR/1394.Paul Smith1-2/+1
* Apply changes from Paul Eggert. * Many other cleanups (index/rindex --> strchr/strrchr, etc.)
1999-07-22* Installed new versions of GLIBC glob library.Paul Smith1-10/+10
* Installed Tim Magill's "graph pruning" performance enhancement. * Update version to 3.77.90 for the release. * Require automake 1.4.
1999-07-08* Added -R / --no-builtin-variables flag.Paul Smith1-0/+3
1999-03-05* Update FSF address info in copyright notices.Paul Smith1-1/+2
* Update maintainers build process; remove GNUmakefile. Require builders to run automake && autoreconf by hand. * Use AC_SUBST_FILE to get the maintMakefile included, rather than GNU make's include directive, which conflicts with automake 1.4's include directive.
1999-02-22* New feature: .LIBPATTERNS controls the way -lfoo dependencies are expanded.Paul Smith1-0/+10
* A few tweaks to the system glob test, after trying it on a system where it's true. * Installed patches to archive handling for AIX 4.3 big archives. * Fix a memory stomp in target-specific variables. * Fix a memory leak in foreach functions.
1998-10-03Checkpoint changes. Bug fixes, mostly.Paul Smith1-1/+1
1998-07-30GNU make release 3.77.Paul Smith1-1/+9
1996-03-20Tue Mar 19 20:21:34 1996 Roland McGrath <roland@charlie-brown.gnu.ai.mit.edu>Roland McGrath1-3/+111
Merged VMS port from Klaus Kaempf <kkaempf@didymus.rmi.de>. * make.h (PARAMS): New macro. * config.h-vms: New file. * makefile.com: New file. * makefile.vms: New file. * readme.vms: New file. * vmsdir.h: New file. * vmsfunctions.c: New file. * vmsify.c: New file. * file.h: Renamed to filedef.h to avoid conflict with VMS system hdr. * ar.c: Added prototypes and changes for VMS. * commands.c: Likewise. * commands.h: Likewise. * default.c: Likewise. * dep.h: Likewise. * dir.c: Likewise. * expand.c: Likewise. * file.c: Likewise. * function.c: Likewise. * implicit.c: Likewise. * job.c: Likewise. * job.h: Likewise. * main.c: Likewise. * make.h: Likewise. * misc.c: Likewise. * read.c: Likewise. * remake.c: Likewise. * remote-stub.c: Likewise. * rule.c: Likewise. * rule.h: Likewise. * variable.c: Likewise. * variable.h: Likewise. * vpath.c: Likewise. * compatMakefile (srcs): Rename file.h to filedef.h.
1996-02-29Wed Feb 28 03:56:20 1996 Roland McGrath <roland@charlie-brown.gnu.ai.mit.edu>Roland McGrath1-5/+5
* default.c (default_terminal_rules): Remove + prefix from RCS cmds. (default_variables): Put + prefix in $(CHECKOUT,v) value instead.
1995-12-12Remove all [M_XENIX] code.Roland McGrath1-19/+3
1995-01-11(default_variables) [__hpux]: Remove special definition of ARFLAGS.Roland McGrath1-7/+1
Existence of the `f' flag is not consistent across HPUX versions; and one might be using GNU ar anyway.
1994-09-07Add missing ".Roland McGrath1-1/+1
1994-07-25[__MSDOS__]: Define GCC_IS_NATIVE.Roland McGrath1-0/+27
(default_suffix_rules) [__MSDOS__]: Use `y_tab.c' instead of `y.tab.c'. (default_variables) [GCC_IS_NATIVE]: Set CC and CXX to `gcc', YACC to `bison -y', and LEX to `flex'. Part of MSDOS/GO32 port from DJ Delorie <dj@ctron.com>.
1994-05-17(default_terminal_rules): In SCCS rules, put $(SCCS_OUTPUT_OPTION) beforeRoland McGrath1-2/+2
$<. On some systems -G is grokked only before the file name.
1994-02-16entered into RCSRoland McGrath1-0/+6
1994-01-17Formerly default.c.~32~Roland McGrath1-7/+7
1993-12-14Formerly default.c.~31~Roland McGrath1-2/+6
1993-11-11Formerly default.c.~30~Roland McGrath1-2/+2
1993-10-14Formerly default.c.~29~Roland McGrath1-11/+24
1993-10-03Formerly default.c.~28~Roland McGrath1-2/+2
1993-06-25Formerly default.c.~27~Roland McGrath1-3/+9
1993-06-21Formerly default.c.~26~Roland McGrath1-3/+3
1993-06-09Formerly default.c.~25~Roland McGrath1-2/+2
1993-04-16Formerly default.c.~24~Roland McGrath1-6/+2
1993-04-14Formerly default.c.~23~Roland McGrath1-3/+3
1993-04-12Formerly default.c.~22~Roland McGrath1-2/+9
1992-12-22Formerly default.c.~21~Roland McGrath1-1/+5
1992-12-09Formerly default.c.~20~Roland McGrath1-3/+3
1992-11-23Formerly default.c.~19~Roland McGrath1-14/+14
1992-11-10Formerly default.c.~18~Roland McGrath1-1/+1
1992-10-15Formerly default.c.~17~Roland McGrath1-1/+1
1992-09-09Formerly default.c.~16~Roland McGrath1-2/+2
1992-07-30Formerly default.c.~15~Roland McGrath1-8/+14
1992-06-17Formerly default.c.~14~Roland McGrath1-3/+3
1992-06-03Formerly default.c.~13~Roland McGrath1-1/+14
1992-01-14Formerly default.c.~12~Roland McGrath1-1/+1
1992-01-11Initial revisionRoland McGrath1-0/+327