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 preview] New target hooks


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


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