aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorGabriel Dos Reis <gdr@codesourcery.com>2002-06-13 15:32:40 +0000
committerGabriel Dos Reis <gdr@gcc.gnu.org>2002-06-13 15:32:40 +0000
commit0d0f605c7216d03116aea77a93975d41e4a35cd1 (patch)
tree87fe168785b6fdde0ed115de8c8a183044a9c4a8 /gcc
parentc92bcccb955acf88560d86494889b49c0c757ee0 (diff)
downloadgcc-0d0f605c7216d03116aea77a93975d41e4a35cd1.zip
gcc-0d0f605c7216d03116aea77a93975d41e4a35cd1.tar.gz
gcc-0d0f605c7216d03116aea77a93975d41e4a35cd1.tar.bz2
tree-inline.c (expand_call_inline): Don' mess with _DECL fields.
* tree-inline.c (expand_call_inline): Don' mess with _DECL fields. From-SVN: r54585
Diffstat (limited to 'gcc')
-rw-r--r--gcc/ChangeLog5
-rw-r--r--gcc/tree-inline.c2
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