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: sh-elf doesn't support objc?


On Wed, 3 Jan 2001 18:01:05 -0500 (EST), John Wehle <john@feith.com> wrote:

> > You provide a very good hint, it looks like you need the following line in
> > sendmsg.m:
> > 
> >  #define gen_rtx_REG(args...) 1
> > 
> > I've checked-in the change in the repository. Please let me know if it works
> > for you.
> 
> I'll be suprised if it fixes the problem since STRUCT_VALUE uses
> TARGET_HITACHI which is defined as:
> 
>   (target_flags & HITACHI_BIT)
> 
> I don't see how the preprocessor can evaluate:
> 
>   (TARGET_HITACHI ? 0 : gen_rtx_REG (Pmode, STRUCT_VALUE_REGNUM))
> 
> given that it depends on a runtime flag.

Yes, I'm aware of this limitation. However as there's no way to pass the
compile option information to the running program and moreover different
modules of a running program could be compiled using different options, we
usually impose this limitation on few platforms. We basically assume that big
structures on these platforms are always passed using a hidden pointer. This
seems to work fine on AIX/RS6000 where ObjC had such a problem a few years
back.

Regards,
-- 
Ovidiu Predescu <ovidiu@cup.hp.com>
http://orion.nsr.hp.com/ (inside HP's firewall only)
http://www.geocities.com/SiliconValley/Monitor/7464/



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