diff options
-rw-r--r-- | gcc/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/tree-inline.c | 2 |
2 files changed, 6 insertions, 1 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index f89e387..2910d4c 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,5 +1,10 @@ 2002-06-13 Gabriel Dos Reis <gdr@codesourcery.com> + * tree-inline.c (expand_call_inline): Don' mess with _DECL + fields. + +2002-06-13 Gabriel Dos Reis <gdr@codesourcery.com> + * diagnostic.c (output_format): Recognize "%H" as a format specifier for a location_t. (text_specifies_location): New function. diff --git a/gcc/tree-inline.c b/gcc/tree-inline.c index 145cfe8..7bb0a4a 100644 --- a/gcc/tree-inline.c +++ b/gcc/tree-inline.c @@ -867,7 +867,7 @@ expand_call_inline (tp, walk_subtrees, data) line numbers corresponding to the function we are calling. We wrap the whole inlined body in an EXPR_WITH_FILE_AND_LINE as well because individual statements don't record the filename. */ - push_srcloc (fn->decl.filename, fn->decl.linenum); + push_srcloc (DECL_SOURCE_FILE (fn), DECL_SOURCE_LINE (fn)); /* Build a statement-expression containing code to initialize the arguments, the actual inline expansion of the body, and a label |