gcc-3.4.6 and sh-unknown-linux-gnu build error
There was a phenomenon that the multi library was not able to be made when gcc-3.4.6 was Bilded with sh-unknown-linux-gnu. The cause In config/sh/linux.h, #if defined (__SH4E__) || defined(__SH4__) ---> Original #if defined (__SH3E__) || defined(__SH4__) ---> Chenged It failed in making the multi library becoming. The influence is still uncertain though there is a similar description in linux-unwind.h also as for gcc-4.1.2. It confirms and also when it is bug, it reports. cut hear--- diff -ruN gcc-3.4.6.orig/gcc/config/sh/linux.h gcc-3.4.6/gcc/config/sh/linux.h --- gcc-3.4.6.orig/gcc/config/sh/linux.h2004-01-12 11:29:13.0 +0900 +++ gcc-3.4.6/gcc/config/sh/linux.h 2006-08-09 17:24:32.0 +0900 @@ -182,7 +182,7 @@ /* MD_FALLBACK_FRAME_STATE_FOR is not yet defined for SHMEDIA. */ #else /* defined (__SH5__) */ -#if defined (__SH3E__) || defined (__SH4__) +#if defined (__SH4E__) || defined (__SH4__) #define SH_FALLBACK_FRAME_FLOAT_STATE(SC, FS, CFA) \ do { \ int i_, r_; \ cut hear---
RE: gcc-3.4.6 and sh-unknown-linux-gnu build error
Andrew STUBBS wrote: >There's no such thing as an SH4E. There is an SH3E and it shares the >same single-precision support as SH4, thus there are some places where I >would expect to see such an #if. It is said that the libgcc.a multi-library cannot be made because an impossible register is referred for SH3 if I say easily. It is said that it makes an error of making the multi library in sh-unknown-linux-gnu on the way so that the register definition of 2.4 factions Linux may refer to an impossible combination for this because define is done with SH4E and SH4. Therefore, if this patch is put away without recapitulating as -- target=sh-unknown-linux-gnu, it is sure to become an error. The header file was made here based on crosstools 0.84, and it succeeded in making of all libraries since it had it of seeing the header file. It ..said extent alone.. is not thought that the SH architecture can be basic in my understanding big endian and set little endian to the end. Endian is not seen on the linux side but the SH3 architecture or the SH4 architecture is not passed though the register for SH4 is referred when the header file on the linux side sees the register of SH4 ..seeing... At least, only refer to SH4E SH4 when you see the register added with SH4 on the linux side.
RE: gcc-3.4.6 and sh-unknown-linux-gnu build error
Andrew STUBBS wrote: >Sorry, I find this very hard to read. I think you found it very hard to >write. :) >I do not say that the code is right. I say that changing SH3E to SH4E is >wrong. It might be that completely removing SH3E is right. Perhaps the >error is somewhere else. >Kaz, I don't know if you have already seen this message. Perhaps you can >help Motohisa, both with the compiler and the language barrier? Sorry. I am not good at English. I do not think that it is correct to detach SH3E. I transplanted linux to TMM-1000 and TMM-1200. I am wishing that all of SH2,SH2E, SH3, SH3E, SH4, and SH4E can be compiled with sh-unknown-linux-gnu-gcc. Sorry Mr. Kojima.
RE: gcc-3.4.6 and sh-unknown-linux-gnu build error
Andrew STUBBS wrote: >Perhaps you mean SH4A? yes Because my debian environment has crashed, -m option cannot be confirmed Please point it out if the mistake is found in my idea. SH2A Core SH2,SH3 SH4A Core SH4 (SH5 is unknown) Motohisa