This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
libgcc fails to compile if DItype is not supported [bswapdi2]
- From: "Pompapathi V Gadad" <Pompapathi dot V dot Gadad at nsc dot com>
- To: gcc at gcc dot gnu dot org
- Date: Wed, 20 Jun 2007 11:20:13 +0530
- Subject: libgcc fails to compile if DItype is not supported [bswapdi2]
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 __bswapdi2 (DWtype u)
Is the above declaration more safer for all targets?
Please advice,
Thanks,
Pompa
----------------------------------------
Pompapathi V Gadad
CR Tool Chain Team
National Semiconductor Corporation