100-no_extern_inline.patch 794 B

123456789101112131415161718192021222324
  1. --- a/sim/common/sim-arange.c
  2. +++ b/sim/common/sim-arange.c
  3. @@ -277,9 +277,7 @@ sim_addr_range_delete (ADDR_RANGE *ar, a
  4. build_search_tree (ar);
  5. }
  6. -#else /* SIM_ARANGE_C_INCLUDED */
  7. -
  8. -SIM_ARANGE_INLINE int
  9. +int
  10. sim_addr_range_hit_p (ADDR_RANGE *ar, address_word addr)
  11. {
  12. ADDR_RANGE_TREE *t = ar->range_tree;
  13. --- a/sim/common/sim-arange.h
  14. +++ b/sim/common/sim-arange.h
  15. @@ -73,7 +73,7 @@ extern void sim_addr_range_delete (ADDR_
  16. /* Return non-zero if ADDR is in range AR, traversing the entire tree.
  17. If no range is specified, that is defined to mean "everything". */
  18. -SIM_ARANGE_INLINE int
  19. +extern int
  20. sim_addr_range_hit_p (ADDR_RANGE * /*ar*/, address_word /*addr*/);
  21. #define ADDR_RANGE_HIT_P(ar, addr) \
  22. ((ar)->range_tree == NULL || sim_addr_range_hit_p ((ar), (addr)))