This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: PATCH: Fix IRIX bootstrap
>>>>> "Bernd" == Bernd Schmidt <bernds@redhat.co.uk> writes:
Bernd> Wouldn't it be better if we worked towards making both the
Bernd> fixup_var_refs code and ADDRESSOF unnecessary? If we did
Bernd> the optimizations Joe Buck has outlined (a bit of constant
Bernd> propagation on trees), and allocated all pseudos/stack
Bernd> slots for variables after finishing the whole tree, but
Bernd> before expanding into rtl, then the need for both would go
Bernd> away.
Certainly the scatter-gather stuff (which was a large part of why we
did the tree-based inliner) would eliminate some of this.
But, I think there's still going to be a need for ADDRESSOF. The
front-end will inline, and even eliminate some dead code, one day.
But the back-end will elimiinate more dead code, and it's only after
you've gotten rid of all dead code that you really know what needs to
go on the stack.
--
Mark Mitchell mark@codesourcery.com
CodeSourcery, LLC http://www.codesourcery.com