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]
Other format: [Raw text]

Re: precompiled header support


Gunther Nikl <gni@gecko.de> writes:

> > Create a host-amiga.c file, mention it in config.host, and define
> > HOST_HOOKS_GT_PCH_GET_ADDRESS to a function which simply calls
> > error().
> 
>   That looks like a good solution. I just noticed that the PCH support in
>   3.4.0 and mainline is different. Mainline will probably fail because
>   default_gt_pch_use_address would return -1. Hm, I suppose taht function
>   should simply return -1 and not allocate any memory. Its highly unlikely
>   that base and addr will ever match with the default_gt_pch_get_address.

Yes, the default versions of the host hook, if you don't have mmap,
will essentially always fail.  I guess the effect on mainline is that
you will be able to create a PCH on the Amiga, but you will never be
able to use it.

The default host hooks do the right thing if anybody implements the
pointer swizzling required to avoid the "had to relocate PCH" error.
I think that is what will be needed on the Amiga.

Ian


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