This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[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>";


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]