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: [PATCH] Fix PR bootstrap/18058, building with Sun's CC



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.

Attachment: fixboot.patch.txt
Description: Text document


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