This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Cannot configure gcc4.4.0 in order to build h8300 crosscompiler
- From: "ariga masahiro" <ariga at link-lab dot co dot jp>
- To: "sumanth" <sumanth dot gundapneni at redpinesignals dot com>
- Cc: <gcc at gcc dot gnu dot org>
- Date: Thu, 30 Jul 2009 15:51:30 +0900
- Subject: Re: Cannot configure gcc4.4.0 in order to build h8300 crosscompiler
Hello,I found next patch in GCC project site.a.. From: Eric Christopher
<echristo at apple dot com> b.. To: gcc mailing list <gcc at gcc dot gnu dot
org> c.. Cc: Pompapathi V Gadad <Pompapathi dot V dot Gadad at nsc dot com>
d.. Date: Tue, 3 Jul 2007 08:35:21 -0700 e.. Subject: [patch] conditionally
declare bswap functions depending on target f.. References:
<4678C015.50106@nsc.com> <89CEF06D-0A74-4413-B7C0-4D7EB393C7EF@apple.com>
<467A0120.1080705@nsc.com> Do you think it is effective ?Index: libgcc2.h
===================================================================
--- libgcc2.h (revision 126242)
+++ libgcc2.h (working copy)
@@ -342,18 +342,23 @@ extern UWtype __udiv_w_sdiv (UWtype *, U
extern word_type __cmpdi2 (DWtype, DWtype);
extern word_type __ucmpdi2 (DWtype, DWtype);
+#if MIN_UNITS_PER_WORD > 1
+extern SItype __bswapsi2 (SItype);
+#endif
+#if LONG_LONG_TYPE_SIZE > 32
+extern DItype __bswapdi2 (DItype);
+#endif
+
extern Wtype __absvSI2 (Wtype);
extern Wtype __addvSI3 (Wtype, Wtype);
extern Wtype __subvSI3 (Wtype, Wtype);
extern Wtype __mulvSI3 (Wtype, Wtype);
extern Wtype __negvSI2 (Wtype);
-extern SItype __bswapsi2 (SItype);
extern DWtype __absvDI2 (DWtype);
extern DWtype __addvDI3 (DWtype, DWtype);
extern DWtype __subvDI3 (DWtype, DWtype);
extern DWtype __mulvDI3 (DWtype, DWtype);
extern DWtype __negvDI2 (DWtype);
-extern DItype __bswapdi2 (DItype);
#ifdef COMPAT_SIMODE_TRAPPING_ARITHMETIC
extern SItype __absvsi2 (SItype);
I tried to patch GCC4.4.0 libgcc2.h then resulted next message and did not
change file at all.$ patch -p0 < libgcc2_h_diff.txt(Stripping trailing CRs
from patch.)patching file libgcc2.hReversed (or previously applied) patch
detected! Assume -R? [n]Apply anyway? [n]Skipping patch.1 out of 1 hunk
ignored -- saving rejects to file libgcc2.h.rejI am not deft of handling
patch file,so would you please modify it to apply to GCC4.4.0 libgcc2.h ?And
please teach me how to apply it.I append GCC4.4.0 libgcc2.h and patch
file.Masahiro Ariga
Attachment:
libgcc_files.tar.bz2
Description: Binary data