This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: Problems with gcc/config/arm/arm.h...
- To: Scott Bambrough <scottb at corelcomputer dot com>
- Subject: Re: Problems with gcc/config/arm/arm.h...
- From: Richard Earnshaw <rearnsha at arm dot com>
- Date: Tue, 13 Apr 1999 13:14:19 +0100
- Cc: egcs-bugs at egcs dot cygnus dot com
- Cc: richard dot earnshaw at arm dot com
- Organization: ARM Ltd.
- Reply-To: richard dot earnshaw at arm dot com
> Hi,
>
> I am having trouble building EGCS for the NetWinder from the source in CVS.
>
> Changes made to the header gcc/config/arm/arm.h prevent gcc/crtstuff.c from
> compiling when building for ArmLinux. The problem is HOST_WIDE_INT is never
> defined when gcc/hwint.h is included as HOST_BITS_PER_LONG and HOST_BITS_PER_INT
> are not defined.
>
> These are actually defined in gcc/config/arm/xm-arm.h as in all the other
> ports. xm-arm.h is included by gcc/xm-linux.h. xm-linux.h is included in
> gcc/config.h. This is not included in crtstuff.c; there is a comment saying it
> is not the appropriate thing to do.
>
> The problem in arm.h occurs wherever the define Hint is used. Is it important
> for the prototypes to be defined with type HOST_WIDE_INT or can I just change it
> to long. I'm not keen on doing some other macro magic, as I find it makes the
> meaning obscure. Any suggestions?
I've just committed a fix for this:
Tue Apr 13 05:04:59 1999 Richard Earnshaw (rearnsha@arm.com)
* arm.h (function prototypes for arm.c): Ifdef these out if
HAVE_CONFIG_H is not defined.
Richard.