t-rl78 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. # Makefile fragment for building LIBGCC for the Renesas RL78 target.
  2. # Copyright (C) 2011-2022 Free Software Foundation, Inc.
  3. # Contributed by Red Hat.
  4. #
  5. # This file is part of GCC.
  6. #
  7. # GCC is free software; you can redistribute it and/or modify it
  8. # under the terms of the GNU General Public License as published
  9. # by the Free Software Foundation; either version 3, or (at your
  10. # option) any later version.
  11. #
  12. # GCC is distributed in the hope that it will be useful, but
  13. # WITHOUT ANY WARRANTY; without even the implied warranty of
  14. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See
  15. # the GNU General Public License for more details.
  16. #
  17. # You should have received a copy of the GNU General Public
  18. # License along with GCC; see the file COPYING3. If not see
  19. # <http://www.gnu.org/licenses/>.
  20. LIB2ADD = \
  21. $(srcdir)/config/rl78/trampoline.S \
  22. $(srcdir)/config/rl78/lib2shift.c \
  23. $(srcdir)/config/rl78/lshrsi3.S \
  24. $(srcdir)/config/rl78/mulsi3.S \
  25. $(srcdir)/config/rl78/divmodsi.S \
  26. $(srcdir)/config/rl78/divmodhi.S \
  27. $(srcdir)/config/rl78/divmodqi.S \
  28. $(srcdir)/config/rl78/signbit.S \
  29. $(srcdir)/config/rl78/bit-count.S \
  30. $(srcdir)/config/rl78/fpbit-sf.S \
  31. $(srcdir)/config/rl78/fpmath-sf.S \
  32. $(srcdir)/config/rl78/cmpsi2.S \
  33. $(srcdir)/config/rl78/adddi3.S \
  34. $(srcdir)/config/rl78/subdi3.S \
  35. $(srcdir)/config/rl78/umindi3.S \
  36. $(srcdir)/config/rl78/umaxdi3.S \
  37. $(srcdir)/config/rl78/smindi3.S \
  38. $(srcdir)/config/rl78/smaxdi3.S \
  39. $(srcdir)/config/rl78/anddi3.S
  40. LIB2FUNCS_EXCLUDE = _clzhi2 _clzsi2 _ctzhi2 _ctzsi2 \
  41. _popcounthi2 _popcountsi2 \
  42. _parityhi2 _paritysi2 _ffssi2 _ffshi2 \
  43. _negate_sf _compare_sf _eq_sf _ne_sf _gt_sf _ge_sf \
  44. _lt_sf _le_sf _unord_sf \
  45. _si_to_sf _usi_to_sf \
  46. _sf_to_si _sf_to_usi \
  47. _fixunssfsi _fixsfsi \
  48. _addsub_sf _mul_sf _div_sf
  49. # Remove __gcc_bcmp from LIB2FUNCS_ST
  50. LIB2FUNCS_ST = _eprintf
  51. HOST_LIBGCC2_CFLAGS += -Os -ffunction-sections -fdata-sections