This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: DECL_RTL vs. explicit make_decl_rtl calls
- From: Mark Mitchell <mark at codesourcery dot com>
- To: "David S. Miller" <davem at redhat dot com>, "gcc at gcc dot gnu dot org" <gcc at gcc dot gnu dot org>
- Date: Mon, 03 Jun 2002 22:13:10 -0700
- Subject: Re: DECL_RTL vs. explicit make_decl_rtl calls
--On Thursday, May 30, 2002 04:02:06 AM -0700 "David S. Miller"
<davem@redhat.com> wrote:
Why do we ever perform explicit make_decl_rtl calls when
DECL_RTL will do that when necessary?
Only because of design bugs elsewhere. Sometimes, information is
encoded in the RTL that is not encoded anywhere else. (I think
asmspecs giving register names are one example, but I could be
wrong.)
In theory all such places should be found and killed; if the DECL node
doesn't contain enough information to generate appropriate RTL it's
missing something.
--
Mark Mitchell mark@codesourcery.com
CodeSourcery, LLC http://www.codesourcery.com