Ticket #3226: gdb-sim-arange-inline.diff

File gdb-sim-arange-inline.diff, 761 bytes (added by Sebastian Huber, on 11/10/17 at 08:50:03)
  • sim/common/sim-arange.h

    old new  
    6262
    6363/* Return non-zero if ADDR is in range AR, traversing the entire tree.
    6464   If no range is specified, that is defined to mean "everything".  */
    65 extern INLINE int
     65static INLINE int
    6666sim_addr_range_hit_p (ADDR_RANGE * /*ar*/, address_word /*addr*/);
    6767#define ADDR_RANGE_HIT_P(ar, addr) \
    6868  ((ar)->range_tree == NULL || sim_addr_range_hit_p ((ar), (addr)))
    6969
    7070#ifdef HAVE_INLINE
    71 #ifdef SIM_ARANGE_C
    72 #define SIM_ARANGE_INLINE INLINE
    73 #else
    74 #define SIM_ARANGE_INLINE EXTERN_INLINE
    75 #endif
     71#define SIM_ARANGE_INLINE static INLINE
    7672#include "sim-arange.c"
    7773#else
    7874#define SIM_ARANGE_INLINE