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]

Re: PATCH: Fix PR 8391


Mark Mitchell <mark@codesourcery.com> writes:

> This patch fixes PR 8391.  This is the case I brought up recently
> where a function in a local class is not emitted by
> rest_of_compilation.
> 
> I'm still not sure if the debugging output will be exactly correct,
> but at least the program will compile; before it caused the compiler
> to go into an infinite loop.
> 
> The real problem here is that it should be the front end that decides
> what functions get emitted, and which don't; that the back end decides
> on its own to defer certain functions is confused.  Some day...

No, it's the reverse!  The concepts involved (inlining, vtables,
linker features) are all known primarily to the backend, and so the
backend should be deciding what functions to output and how.

-- 
- Geoffrey Keating <geoffk@geoffk.org>


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