aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFrank Ch. Eigler <fche@redhat.com>2004-07-16 21:25:43 +0000
committerFrank Ch. Eigler <fche@gcc.gnu.org>2004-07-16 21:25:43 +0000
commitcc3704221d03fee7b4fea0918a06ee2e1ee866ff (patch)
tree0dcd35b54febea8f95ff11e647f37419d3e4eb94
parentb764adea38591ca510c0b9039fc08e3727fb764d (diff)
downloadgcc-cc3704221d03fee7b4fea0918a06ee2e1ee866ff.zip
gcc-cc3704221d03fee7b4fea0918a06ee2e1ee866ff.tar.gz
gcc-cc3704221d03fee7b4fea0918a06ee2e1ee866ff.tar.bz2
tree-mudflap.c (mf_file_function_line_tree): Correct typo that prevented descriptive __mf_check source location strings.
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. From-SVN: r84836
-rw-r--r--gcc/ChangeLog5
-rw-r--r--gcc/tree-mudflap.c9
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)
{