2
0

100-no_extern_inline.patch 960 B

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