diff options
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/tree-mudflap.c | 9 |
2 files changed, 10 insertions, 4 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 2647e88..9646260 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2004-07-16 Frank Ch. Eigler <fche@redhat.com> + + * tree-mudflap.c (mf_file_function_line_tree): Correct typo + that prevented descriptive __mf_check source location strings. + 2004-07-16 Richard Henderson <rth@redhat.com> * tree-def (WITH_SIZE_EXPR): New. diff --git a/gcc/tree-mudflap.c b/gcc/tree-mudflap.c index adfb3c7..57586b5 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 = "<unknown file>"; + file = xloc.file; + if (file == NULL && current_function_decl != NULL_TREE) + file = DECL_SOURCE_FILE (current_function_decl); + if (file == NULL) + file = "<unknown file>"; if (xloc.line > 0) { |