diff options
| -rw-r--r-- | gcc/ChangeLog | 4 | ||||
| -rw-r--r-- | gcc/integrate.c | 4 |
2 files changed, 8 insertions, 0 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 6424cae..7a53d4f 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,7 @@ +2000-08-25 Jason Merrill <jason@redhat.com> + + * integrate.c (expand_inline_function): Pull out the original decl. + 2000-08-25 Jim Wilson <wilson@cygnus.com> * cse.c (cse_insn): Don't pass label subtraction to force_const_mem. diff --git a/gcc/integrate.c b/gcc/integrate.c index 2cf8813..ca5483a 100644 --- a/gcc/integrate.c +++ b/gcc/integrate.c @@ -653,6 +653,10 @@ expand_inline_function (fndecl, parms, target, ignore, type, if (max_regno < FIRST_PSEUDO_REGISTER) abort (); + /* Pull out the decl for the function definition; fndecl may be a + local declaration, which would break DECL_ABSTRACT_ORIGIN. */ + fndecl = inl_f->decl; + nargs = list_length (DECL_ARGUMENTS (fndecl)); if (cfun->preferred_stack_boundary < inl_f->preferred_stack_boundary) |
