[PATCH] Fix PR bootstrap/18058, building with Sun's CC
Andrew Pinski
pinskia@physics.uc.edu
Sat Oct 23 23:52:00 GMT 2004
On Oct 19, 2004, at 2:23 PM, Andrew Pinski wrote:
> The problem here is that we include some header files in
> insn-conditions.c
> which include static inline functions and these functions reference
> global
> variables and functions were are not included in the build programs.
> This
> patch fixes this problem by adding a "#ifndef GENERATOR_FILE" around
> the
> headers which include the problem right now.
>
> OK? Bootstrapped and tested on powerpc-darwin with
> STAGE1_CFLAGS='-g -fkeep-inline-functions' and also
> Eric Botcazou tested it with Sun's CC.
Well this does not work on a cross to m68k. Darn.
This works everywhere. We need to say the static functions in
bitmap.h are not for GENERATOR_FILE programs.
OK? Bootstrapped and tested on powerpc-darwin and crossed to m68k
also.
Thanks,
Andrew Pinski
ChangeLog:
* bitmap.h: Ifndef GENERATOR_FILE around the static inline
functions.
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: fixboot.patch.txt
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20041023/0aca38e9/attachment.txt>
More information about the Gcc-patches
mailing list