Re: libgcc fails to compile if DItype is not supported [bswapdi2]

2007-06-21 Thread Pompapathi V Gadad
Hello Eric, bswapdi2 is implemented in libgcc2.c as follows: #ifdef L_bswapdi2 DItype __bswapdi2 (DItype u) { ... } #endif One way to avoid compilation of this function is to add condition macros like: #if LONG_LONG_TYPE_SIZE > 32 However, libgcc2.h does not have such facility and declaration

Re: libgcc fails to compile if DItype is not supported [bswapdi2]

2007-06-21 Thread Eric Christopher
On Jun 20, 2007, at 9:40 PM, Pompapathi V Gadad wrote: Hello Eric, The target I am working on is 16-bit target and cannot support 64- bit data types (DI mode). How about conditionally declare the function? #if LONG_LONG_TYPE_SIZE > 32 extern DItype __bswapdi2 (DItype); #endif You'll want t

Re: libgcc fails to compile if DItype is not supported [bswapdi2]

2007-06-20 Thread Pompapathi V Gadad
Hello Eric, The target I am working on is 16-bit target and cannot support 64-bit data types (DI mode). How about conditionally declare the function? #if LONG_LONG_TYPE_SIZE > 32 extern DItype __bswapdi2 (DItype); #endif Thanks, Pompa Eric Christopher wrote: On Jun 19, 2007, at 10:50 PM, Po

Re: libgcc fails to compile if DItype is not supported [bswapdi2]

2007-06-20 Thread Eric Christopher
On Jun 19, 2007, at 10:50 PM, Pompapathi V Gadad wrote: Hello, Current function declaration of __bswapdi2 in libgcc2.h is: DItype __bswapdi2 (DItype u) Since this declaration does not check if DItype is supported, it is bound for compilation failure for targets that do not support DItype.

libgcc fails to compile if DItype is not supported [bswapdi2]

2007-06-19 Thread Pompapathi V Gadad
Hello, Current function declaration of __bswapdi2 in libgcc2.h is: DItype __bswapdi2 (DItype u) Since this declaration does not check if DItype is supported, it is bound for compilation failure for targets that do not support DItype. Would it be ok to change the DItype to DWtype as in: DWtype