This is the mail archive of the gcc@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]

[patch] conditionally declare bswap functions depending on target



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

So, I finally got around to this patch. While I was at it I went ahead and check SImode as well.


Tested on mips64vr-elf and x86-darwin.

OK?

-eric

2007-07-03 Eric Christopher <echristo@gmail.com>

	* libgcc2.h: Conditionally include __bswapsi2 and
	__bswapdi2.

Attachment: libgcc2.h.diff.txt
Description: Text document



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