This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [lto] PATCH: Make global function/variable references work
- From: Kenneth Zadeck <zadeck at naturalbridge dot com>
- To: mark at codesourcery dot com
- Cc: gcc-patches at gcc dot gnu dot org
- Date: Fri, 10 Nov 2006 18:06:45 -0500
- Subject: Re: [lto] PATCH: Make global function/variable references work
- References: <200611102250.kAAMoNiw028015@sparrowhawk.codesourcery.com>
Mark Mitchell wrote:
> This patch wires up bits to write out and read in references to global
> variables and global functions from the bodies of functions.
>
> I was hoping this small program:
>
> extern int i;
>
> void f(int j) {
> f(i);
> }
>
> could be round-tripped with this patch, but it causes the
> function-body reader to crash.
>
> Kenny, will you have time to work on that?
>
>
I will try to look at it this weekend.
kenny
> Also, you've got some debugging output printing from
> lto-function-out.c; that needs to be turned off before we can do
> automated testing. Would you please conditionalize this on some macro
> that you can turn on/off in lto-function-out.c in your own tree for
> debugging?
>
> Committed to LTO branch.
>