This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [patch preview] New target hooks
- From: Alexandre Oliva <aoliva at redhat dot com>
- To: Richard Henderson <rth at redhat dot com>
- Cc: DJ Delorie <dj at redhat dot com>, gcc-patches at gcc dot gnu dot org
- Date: 02 Aug 2003 09:39:14 -0300
- Subject: Re: [patch preview] New target hooks
- Organization: GCC Team, Red Hat
- References: <200307311623.h6VGNk322790@greed.delorie.com><20030731222457.GB31537@redhat.com><200308010127.h711RVp04923@greed.delorie.com><20030801165150.GB28242@redhat.com>
On Aug 1, 2003, Richard Henderson <rth@redhat.com> wrote:
> On Thu, Jul 31, 2003 at 09:27:31PM -0400, DJ Delorie wrote:
>> They're easy enough to change, so if you want it to
>> always be type I can do that.
> Please.
What if I want to look at an attribute of the function, not of its
type? It's easy enough to go from function decl to its type, but once
you get only the type, you can't go back to the function decl.
Besides, most of the time (i.e., for most ports), we won't be looking
at the decl or type anyway, so dereferencing the function decl to pass
its type to the target hook will be just a waste of processing.
Minor, but still...
--
Alexandre Oliva Enjoy Guarana', see http://www.ic.unicamp.br/~oliva/
Red Hat GCC Developer aoliva@{redhat.com, gcc.gnu.org}
CS PhD student at IC-Unicamp oliva@{lsd.ic.unicamp.br, gnu.org}
Free Software Evangelist Professional serial bug killer