Fix for regression in gcc.c-torture/execute/20011114-1.c

Alexandre Oliva aoliva@redhat.com
Thu Dec 6 09:12:00 GMT 2001


On Dec  5, 2001, Alexandre Oliva <aoliva@redhat.com> wrote:

> I disagree.  The documentation of DECL_ABSTRACT_ORIGIN supports the
> use I'm making of it.  If something else breaks because of this
> choice, it's this something else that should be fixed.  Or perhaps the
> documentation.

However, I must admit the patch had a problem.  For some reason, I had
assumed get_callee_fndecl() was only used by the tree inliner.  I was
wrong, and that's why the decision of following DECL_ABSTRACT_ORIGIN
has caused problems in C++.  Moving that change from get_callee_fndecl
to the tree inliner fixed the C++ regressions while not re-introducing
execute/20011114-1.c (though compile/20011114-1.c, totally unrelated,
still fails, and still gets me confused as to the test results <:-)

Here's the patch, bootstrapped and regression tested on
i686-pc-linux-gnu.  Ok to install?

-------------- next part --------------
A non-text attachment was scrubbed...
Name: nested-inline.patch
Type: text/x-patch
Size: 2521 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20011206/05bf0a8a/attachment.bin>
-------------- next part --------------

-- 
Alexandre Oliva   Enjoy Guarana', see http://www.ic.unicamp.br/~oliva/
Red Hat GCC Developer                  aoliva@{cygnus.com, redhat.com}
CS PhD student at IC-Unicamp        oliva@{lsd.ic.unicamp.br, gnu.org}
Free Software Evangelist    *Please* write to mailing lists, not to me


More information about the Gcc-patches mailing list