This is the mail archive of the gcc@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]

Re: Prototype in machine dependent header files


> 
>  > From: hjl@lucon.org (H.J. Lu)
>  > 
>  > Have we found an acceptable solution for prototypes in machine
>  > dependent header files? The problem is the machine dependent config
>  > file is included before rtl.h, machmode.h and tree.h. But many function
>  > prototypes in machine dependent header file need those type defined in
>  > rtl.h, machmode.h and tree.h. I have proposed a kludge many months
>  > ago and I have been using it since. But noone but me thinks it is
>  > acceptable :-(. Do we have a better alternative?
>  > 
>  > H.J.
> 
> 	Regarding the first problem, we could possibly use the
> solution used in toplev.h wherein it declares the structures it needs.

I don't think it will work on anything but pointers.

> (IMHO, this is kind of kludgy.)  I could also have another look at
> your "kludge", would you please provide a link into the mail archives?
> 

http://www.cygnus.com/ml/egcs/1997-Aug/0066.html

should give you some ideas about what I have done. I have patched
machmode.h/machmode.def and tree.h/tree.def with the similar scheme.


-- 
H.J. Lu (hjl@gnu.org)


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