This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[mudflap] source location typo fix
- From: "Frank Ch. Eigler" <fche at redhat dot com>
- To: gcc-patches at gcc dot gnu dot org
- Date: Fri, 16 Jul 2004 17:25:15 -0400
- Subject: [mudflap] source location typo fix
Hi -
Committing:
> 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.
Index: tree-mudflap.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/tree-mudflap.c,v
retrieving revision 2.13
diff -r2.13 tree-mudflap.c
198,201c198,202
< 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>";