📄 gcc-iwmmx-softfp.patch
字号:
diff -uNr gcc-3.2.orig/gcc/config/arm/linux-elf.h gcc-3.2/gcc/config/arm/linux-elf.h--- gcc-3.2.orig/gcc/config/arm/linux-elf.h Tue Apr 16 04:27:24 2002+++ gcc-3.2/gcc/config/arm/linux-elf.h Mon Apr 21 11:31:52 2003@@ -32,13 +32,15 @@ /* Default is to use APCS-32 mode. */ #undef TARGET_DEFAULT-#define TARGET_DEFAULT (ARM_FLAG_APCS_32 | ARM_FLAG_MMU_TRAPS)+#define TARGET_DEFAULT (ARM_FLAG_SOFT_FLOAT | ARM_FLAG_APCS_32 | ARM_FLAG_MMU_TRAPS) +#undef SUBTARGET_EXTRA_ASM_SPEC+#define SUBTARGET_EXTRA_ASM_SPEC "%{!mcpu=*:-miwmmxt} %{!mhard-float:-mno-fpu}" #define SUBTARGET_EXTRA_LINK_SPEC " -m armelf_linux -p" #undef MULTILIB_DEFAULTS #define MULTILIB_DEFAULTS \- { "marm", "mlittle-endian", "mhard-float", "mapcs-32", "mno-thumb-interwork" }+ { "marm", "mlittle-endian", "msoft-float", "mapcs-32", "mno-thumb-interwork" } #define CPP_APCS_PC_DEFAULT_SPEC "-D__APCS_32__" @@ -52,7 +54,7 @@ %{!shared: %{pthread:-lpthread} \ %{profile:-lc_p} %{!profile: -lc}}" -#define LIBGCC_SPEC "%{msoft-float:-lfloat} -lgcc"+#define LIBGCC_SPEC "-lgcc" /* Provide a STARTFILE_SPEC appropriate for GNU/Linux. Here we add the GNU/Linux magical crtbegin.o file (see crtstuff.c) which@@ -120,4 +122,4 @@ } #undef CC1_SPEC-#define CC1_SPEC "%{profile:-p}"+#define CC1_SPEC "%{profile:-p} -msoft-float"diff -uNr gcc-3.2.orig/gcc/config/arm/t-linux gcc-3.2/gcc/config/arm/t-linux--- gcc-3.2.orig/gcc/config/arm/t-linux Thu May 17 11:15:49 2001+++ gcc-3.2/gcc/config/arm/t-linux Mon Apr 21 13:45:49 2003@@ -21,3 +21,22 @@ # LIBGCC = stmp-multilib # INSTALL_LIBGCC = install-multilib++# We want fine grained libraries, so use the new code to build the+# floating point emulation libraries.+FPBIT = fp-bit.c+DPBIT = dp-bit.c++fp-bit.c: $(srcdir)/config/fp-bit.c+ echo '#define FLOAT' > fp-bit.c+ echo '#ifndef __ARMEB__' >> fp-bit.c+ echo '#define FLOAT_BIT_ORDER_MISMATCH' >> fp-bit.c+ echo '#endif' >> fp-bit.c+ cat $(srcdir)/config/fp-bit.c >> fp-bit.c++dp-bit.c: $(srcdir)/config/fp-bit.c+ echo '#ifndef __ARMEB__' > dp-bit.c+ echo '#define FLOAT_BIT_ORDER_MISMATCH' >> dp-bit.c+ echo '#define FLOAT_WORD_ORDER_MISMATCH' >> dp-bit.c+ echo '#endif' >> dp-bit.c+ cat $(srcdir)/config/fp-bit.c >> dp-bit.c
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -