This is the mail archive of the
gdb@sourceware.org
mailing list for the GDB project.
Re: why is sim_addr_range_hit_p tagged inline?
- From: Andreas Schwab <schwab at linux-m68k dot org>
- To: DJ Delorie <dj at redhat dot com>
- Cc: gdb at sourceware dot org
- Date: Fri, 14 Nov 2014 11:25:48 +0100
- Subject: Re: why is sim_addr_range_hit_p tagged inline?
- Authentication-results: sourceware.org; auth=none
- References: <201411132030 dot sADKUbhj008048 at greed dot delorie dot com>
DJ Delorie <dj@redhat.com> writes:
> In sim/sim-arange.h:
>
> /* Return non-zero if ADDR is in range AR, traversing the entire tree.
> If no range is specified, that is defined to mean "everything". */
> extern INLINE int
> sim_addr_range_hit_p (ADDR_RANGE * /*ar*/, address_word /*addr*/);
> #define ADDR_RANGE_HIT_P(ar, addr) \
> ((ar)->range_tree == NULL || sim_addr_range_hit_p ((ar), (addr)))
>
> Why is the INLINE there? sim_addr_range_hit_p() is only defined in
> sim-arange.c
Unless HAVE_INLINE is defined.
Andreas.
--
Andreas Schwab, schwab@linux-m68k.org
GPG Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5
"And now for something completely different."