summaryrefslogtreecommitdiff
path: root/expand.c
diff options
context:
space:
mode:
authorPaul Smith <psmith@gnu.org>2000-02-05 07:37:40 +0000
committerPaul Smith <psmith@gnu.org>2000-02-05 07:37:40 +0000
commitab403eccb399ad0f7240cd9849e81590724cff26 (patch)
treeb35695ad78c82d25f7e60d4c93880394a2a970b3 /expand.c
parent9be5fd9eefb54c3f02db370c9d94af4e602d5456 (diff)
downloadmake-ab403eccb399ad0f7240cd9849e81590724cff26.tar.gz
* Fix PR/1407.
* Keep filename/lineno information for variables, for debugging.
Diffstat (limited to 'expand.c')
-rw-r--r--expand.c15
1 files changed, 1 insertions, 14 deletions
diff --git a/expand.c b/expand.c
index a7cfcdbf..f15da026 100644
--- a/expand.c
+++ b/expand.c
@@ -445,7 +445,7 @@ variable_expand_for_file (line, file)
register struct file *file;
{
char *result;
- struct variable_set_list *save, *fnext;
+ struct variable_set_list *save;
if (file == 0)
return variable_expand (line);
@@ -456,22 +456,9 @@ variable_expand_for_file (line, file)
reading_file = &file->cmds->fileinfo;
else
reading_file = 0;
- fnext = file->variables->next;
- /* See if there's a pattern-specific variable struct for this target. */
- if (!file->pat_searched)
- {
- file->patvar = lookup_pattern_var(file->name);
- file->pat_searched = 1;
- }
- if (file->patvar != 0)
- {
- file->patvar->vars->next = fnext;
- file->variables->next = file->patvar->vars;
- }
result = variable_expand (line);
current_variable_set_list = save;
reading_file = 0;
- file->variables->next = fnext;
return result;
}