0003-gcc-Use-the-C-implementations-for-division-and-mod.patch 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. From 3fcfbcc9357939cf3a6b8aef1cb255016e061b9a Mon Sep 17 00:00:00 2001
  2. From: Holger Freyther <ich@tamarin.(none)>
  3. Date: Mon, 15 Sep 2008 21:05:35 +0200
  4. Subject: [PATCH] [gcc] Use the C implementations for division and modulo
  5. The current assembly does not work on the PE variant of the CPU. For now
  6. we will have to use the C variant of these four libgcc functions until we
  7. have a faster assembly replacement.
  8. ---
  9. gcc/config/c33/t-c33 | 10 +---------
  10. 1 files changed, 1 insertions(+), 9 deletions(-)
  11. diff --git a/gcc/config/c33/t-c33 b/gcc/config/c33/t-c33
  12. index 662c546..a7a6893 100644
  13. --- a/gcc/config/c33/t-c33
  14. +++ b/gcc/config/c33/t-c33
  15. @@ -1,15 +1,7 @@
  16. -CROSS_LIBGCC1 = libgcc1-asm.a
  17. -LIB1ASMSRC = c33/libgcc1.S
  18. -LIB1ASMFUNCS = _divsi3 \
  19. - _udivsi3 \
  20. - _modsi3 \
  21. - _umodsi3
  22. -
  23. -
  24. # These are really part of libgcc1, but this will cause them to be
  25. # built correctly, so...
  26. -LIB2FUNCS_EXTRA = fp-bit.c dp-bit.c
  27. +LIB2FUNCS_EXTRA = fp-bit.c dp-bit.c $(srcdir)/config/udivmod.c $(srcdir)/config/udivmodsi4.c $(srcdir)/config/divmod.c
  28. dp-bit.c: $(srcdir)/config/fp-bit.c
  29. echo '#ifdef __LITTLE_ENDIAN__' > dp-bit.c
  30. --
  31. 1.5.4.3