From cc3704221d03fee7b4fea0918a06ee2e1ee866ff Mon Sep 17 00:00:00 2001 From: "Frank Ch. Eigler" Date: Fri, 16 Jul 2004 21:25:43 +0000 Subject: [PATCH] tree-mudflap.c (mf_file_function_line_tree): Correct typo that prevented descriptive __mf_check source location strings. 2004-07-16 Frank Ch. Eigler * tree-mudflap.c (mf_file_function_line_tree): Correct typo that prevented descriptive __mf_check source location strings. From-SVN: r84836 --- gcc/ChangeLog | 5 +++++ gcc/tree-mudflap.c | 9 +++++---- 2 files changed, 10 insertions(+), 4 deletions(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 2647e885fe9..9646260eaa8 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2004-07-16 Frank Ch. Eigler + + * tree-mudflap.c (mf_file_function_line_tree): Correct typo + that prevented descriptive __mf_check source location strings. + 2004-07-16 Richard Henderson * tree-def (WITH_SIZE_EXPR): New. diff --git a/gcc/tree-mudflap.c b/gcc/tree-mudflap.c index adfb3c7b771..57586b57a0c 100644 --- a/gcc/tree-mudflap.c +++ b/gcc/tree-mudflap.c @@ -195,10 +195,11 @@ mf_file_function_line_tree (location_t location) tree result; /* Add FILENAME[:LINENUMBER]. */ - if (xloc.file == NULL && current_function_decl != NULL_TREE) - xloc.file = DECL_SOURCE_FILE (current_function_decl); - if (xloc.file == NULL) - xloc.file = ""; + file = xloc.file; + if (file == NULL && current_function_decl != NULL_TREE) + file = DECL_SOURCE_FILE (current_function_decl); + if (file == NULL) + file = ""; if (xloc.line > 0) { -- 2.30.2