Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
* PATCH: check for `inline' keyword
@ 2002-04-03 16:11 Jim Blandy
  2002-04-03 20:36 ` Andrew Cagney
  0 siblings, 1 reply; 3+ messages in thread
From: Jim Blandy @ 2002-04-03 16:11 UTC (permalink / raw)
  To: gdb-patches


This allows GDB to use the `inline' keyword, but still build under
compilers that don't support it.

2002-04-03  Jim Blandy  <jimb@redhat.com>

	* configure.in: Call AC_C_INLINE.
	* configure: Regenerated.
	
Index: gdb/configure.in
===================================================================
RCS file: /cvs/src/src/gdb/configure.in,v
retrieving revision 1.84
diff -c -r1.84 configure.in
*** gdb/configure.in	2002/03/15 00:44:49	1.84
--- gdb/configure.in	2002/04/04 00:10:02
***************
*** 130,135 ****
--- 130,136 ----
  AC_HEADER_STAT
  
  AC_C_CONST
+ AC_C_INLINE
  
  AC_CHECK_FUNCS(bcopy btowc bzero canonicalize_file_name isascii poll \
  	realpath sbrk setpgid setpgrp sigaction sigprocmask sigsetmask )


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: PATCH: check for `inline' keyword
  2002-04-03 16:11 PATCH: check for `inline' keyword Jim Blandy
@ 2002-04-03 20:36 ` Andrew Cagney
  2002-04-04 13:12   ` Jim Blandy
  0 siblings, 1 reply; 3+ messages in thread
From: Andrew Cagney @ 2002-04-03 20:36 UTC (permalink / raw)
  To: Jim Blandy; +Cc: gdb-patches

> This allows GDB to use the `inline' keyword, but still build under
> compilers that don't support it.

Um, I'm curious.  On which machine?  Why does GDB want to use the inline 
keyword?

Andrew


> 2002-04-03  Jim Blandy  <jimb@redhat.com>
> 
> * configure.in: Call AC_C_INLINE.
> 	* configure: Regenerated.
> 	
> Index: gdb/configure.in
> ===================================================================
> RCS file: /cvs/src/src/gdb/configure.in,v
> retrieving revision 1.84
> diff -c -r1.84 configure.in
> *** gdb/configure.in	2002/03/15 00:44:49	1.84
> --- gdb/configure.in	2002/04/04 00:10:02
> ***************
> *** 130,135 ****
> --- 130,136 ----
>   AC_HEADER_STAT
>   
>   AC_C_CONST
> + AC_C_INLINE
>   
>   AC_CHECK_FUNCS(bcopy btowc bzero canonicalize_file_name isascii poll \
>   	realpath sbrk setpgid setpgrp sigaction sigprocmask sigsetmask )
> 



^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: PATCH: check for `inline' keyword
  2002-04-03 20:36 ` Andrew Cagney
@ 2002-04-04 13:12   ` Jim Blandy
  0 siblings, 0 replies; 3+ messages in thread
From: Jim Blandy @ 2002-04-04 13:12 UTC (permalink / raw)
  To: Andrew Cagney; +Cc: gdb-patches


Andrew Cagney <ac131313@cygnus.com> writes:
> > This allows GDB to use the `inline' keyword, but still build under
> > compilers that don't support it.
> 
> Um, I'm curious.  On which machine?  Why does GDB want to use the
> inline keyword?

The test works by trying to compile a function with the inline
keyword, and seeing if any errors are reported.  So it should work for
any compiler, on any machine.

The macro code has some uses of `inline'.  They're not too important.


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2002-04-04 21:12 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-04-03 16:11 PATCH: check for `inline' keyword Jim Blandy
2002-04-03 20:36 ` Andrew Cagney
2002-04-04 13:12   ` Jim Blandy

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox