mirror of
https://github.com/mirror/make.git
synced 2025-01-14 06:10:12 +08:00
Fixed Savannah bug #12180.
This commit is contained in:
parent
a2232470c2
commit
0759af440a
@ -1,3 +1,8 @@
|
||||
Tue Mar 1 10:12:20 2005 Boris Kolpackov <boris@kolpackov.net>
|
||||
|
||||
* read.c (record_files): Add a check for the list of prerequisites
|
||||
of a static pattern rule being empty. Fixes Savannah bug #12180.
|
||||
|
||||
2005-02-28 Paul D. Smith <psmith@gnu.org>
|
||||
|
||||
* doc/make.texi (Text Functions): Update docs to allow the end
|
||||
|
2
read.c
2
read.c
@ -1915,7 +1915,7 @@ record_files (struct nameseq *filenames, char *pattern, char *pattern_percent,
|
||||
the target pattern, the target's name and the dependencies'
|
||||
patterns into plain dependency names. */
|
||||
|
||||
if (find_percent (this->name) != 0)
|
||||
if (this != 0 && find_percent (this->name) != 0)
|
||||
{
|
||||
PATH_VAR (stem);
|
||||
char *o;
|
||||
|
@ -1,3 +1,8 @@
|
||||
Tue Mar 1 10:15:25 2005 Boris Kolpackov <boris@kolpackov.net>
|
||||
|
||||
* tests/scripts/features/statipattrules: Add a test for
|
||||
Savannah bug #12180.
|
||||
|
||||
2005-02-28 Paul D. Smith <psmith@gnu.org>
|
||||
|
||||
* scripts/options/dash-q: Add a test for Savannah bug # 7144.
|
||||
|
@ -62,11 +62,15 @@ close(MAKEFILE);
|
||||
$answer = "$makefile2:1: *** target `foo' leaves prerequisite pattern empty. Stop.\n";
|
||||
&compare_output($answer, &get_logfile(1));
|
||||
|
||||
# TEST #5 -- bug #12180: core dump on a stat pattern rule with an empty
|
||||
# prerequisite list.
|
||||
#
|
||||
run_make_test('
|
||||
foo.x bar.x: %.x : ; @echo $@
|
||||
|
||||
',
|
||||
'',
|
||||
'foo.x
|
||||
');
|
||||
|
||||
1;
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user