From 24aac7f8f6c72d60ce7c9f80868cbf21fb458072 Mon Sep 17 00:00:00 2001 From: Paul Smith Date: Mon, 20 Mar 2006 02:36:36 +0000 Subject: Add some alloca(0) calls for systems without "normal" alloca support. Fix a file descriptor leak with make re-exec while using the jobserver. Update some release information. --- remake.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'remake.c') diff --git a/remake.c b/remake.c index 2dfade3..a752734 100644 --- a/remake.c +++ b/remake.c @@ -264,6 +264,7 @@ update_goal_chain (struct dep *goals) just_print_flag = n; job_slots = j; } + return status; } @@ -306,6 +307,9 @@ update_file (struct file *file, unsigned int depth) status |= update_file_1 (f, depth); check_renamed (f); + /* Clean up any alloca() used during the update. */ + alloca (0); + /* If we got an error, don't bother with double_colon etc. */ if (status != 0 && !keep_going_flag) return status; -- cgit v1.2.3