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: [Ada] Do not pass -Werror during linking


> Probably for Convention C, we should convert Address to *void.
>
> So, for
>
>    function Alloc (Size : size_t) return System.Address;
>    pragma Export (C, Alloc,   "__gnat_malloc");
>
> we probably should do this replacement and add the necessary
> type conversions. That would seem to be how this was intended.
> However, I'm not sure how much of an earthquake this would
> be in gigi.

That sounds like a good idea which, even if it doesn't solve the underlying 
issue in its full generality, would probably be sufficient in the m68k case.

I'll give it a try.  Thanks for the tip!

-- 
Eric Botcazou


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