This is the mail archive of the crossgcc@cygnus.com mailing list for the crossgcc project.


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

Re: powerpc-linux cross-compiler. unknown register name


Brendan Simon wrote:

> Now I get a unrecognised registers in the __math.h header file.
> 
> /usr/local/src/gnu-tools/build-egcs-1.1.2/gcc/xgcc
> -B/usr/local/src/gnu-tools/build-egcs-1.1.2/gcc/ -c -DHAVE_CONFIG_H -g -O2 -I.
> -I../../.././tools/egcs-1.1.2/libiberty/../include
> ../../.././tools/egcs-1.1.2/libiberty/floatformat.c
> /usr/local/egcs/powerpc-linux/sys-include/__math.h: In function `atan2':
> In file included from /usr/local/egcs/powerpc-linux/sys-include/math.h:208,
>                  from ../../.././tools/egcs-1.1.2/libiberty/floatformat.c:21:

 I still don't know for which purpose the '.../sys-include' is needed, what to
put into it and so on... But then I also have never used it for anything or 
never seen anybody to use it either...

 I remember (not having the sources now) it to be defined via the macro 
SYSTEM_INCLUDE_DIR and the egcs-manual says about the macro :

-------- clip --------------------
SYSTEM_INCLUDE_DIR
	Define this macro as a C string constant if you wish to specify a
	system-specific directory to search for header files before the standard
	directory. SYSTEM_INCLUDE_DIR comes before STANDARD_INCLUDE_DIR in the
	search order.

	Cross compilers do not use this macro and do not search the directory 
	specified.
-------- clip --------------------

 The GCC and egcs docs don't know about the 'sys-include'...

 Anyway you seem to have installed the x86-includes into it, and the 
cross-compiler takes it into use (although the docs say that it shouldn't), and 
uses the wrong headers from it before the right

  /usr/local/egcs/powerpc-linux/include/math.h
and
  /usr/local/egcs/powerpc-linux/include/__math.h

ones (the Linux-PowerPC ones)

> Is this a valid powerpc assembler statement ?

 No, it is for x86...

> Have I got the right header files (I got the yellowdog linux rpm files) ?

 Yes and you should have them in '/usr/local/egcs/powerpc-linux/include' and
have no '/usr/local/egcs/powerpc-linux/sys-include' at all (until there is some
reason to use it for something).

With best regards,
					Kai
_______________________________________________
New CrossGCC FAQ: http://www.objsw.com/CrossGCC
_______________________________________________
To remove yourself from the crossgcc list, send
mail to crossgcc-request@cygnus.com with the
text 'unsubscribe' (without the quotes) in the
body of the message.

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