public inbox for gdb@sourceware.org
 help / color / mirror / Atom feed
* An issue in configure.ac of gdbserver
@ 2005-12-29  5:38 Jie Zhang
  2005-12-30  2:40 ` Daniel Jacobowitz
  0 siblings, 1 reply; 3+ messages in thread
From: Jie Zhang @ 2005-12-29  5:38 UTC (permalink / raw)
  To: gdb; +Cc: Daniel Jacobowitz

Hi,

This piece of code in configure.ac of gdbserver does not work as
intended, since gcc only gives an warning if it does not accept
-rdynamic.

  LDFLAGS="$LDFLAGS -rdynamic"
  AC_TRY_LINK([], [], [RDYNAMIC=-rdynamic], [RDYNAMIC=])
  AC_SUBST(RDYNAMIC)


Regards,
Jie

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

* Re: An issue in configure.ac of gdbserver
  2005-12-29  5:38 An issue in configure.ac of gdbserver Jie Zhang
@ 2005-12-30  2:40 ` Daniel Jacobowitz
  2005-12-30  6:31   ` Jie Zhang
  0 siblings, 1 reply; 3+ messages in thread
From: Daniel Jacobowitz @ 2005-12-30  2:40 UTC (permalink / raw)
  To: Jie Zhang; +Cc: gdb

On Thu, Dec 29, 2005 at 01:38:29PM +0800, Jie Zhang wrote:
> Hi,
> 
> This piece of code in configure.ac of gdbserver does not work as
> intended, since gcc only gives an warning if it does not accept
> -rdynamic.
> 
>   LDFLAGS="$LDFLAGS -rdynamic"
>   AC_TRY_LINK([], [], [RDYNAMIC=-rdynamic], [RDYNAMIC=])
>   AC_SUBST(RDYNAMIC)

Is this a problem?  For one thing, usually dejagnu reports gcc warnings
as fatal; the test would fail if the option generated a warning.  For
another, the option should be used unless it causes gcc to fail;
using it even when GCC doesn't support it should be harmless.

-- 
Daniel Jacobowitz
CodeSourcery, LLC

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

* Re: An issue in configure.ac of gdbserver
  2005-12-30  2:40 ` Daniel Jacobowitz
@ 2005-12-30  6:31   ` Jie Zhang
  0 siblings, 0 replies; 3+ messages in thread
From: Jie Zhang @ 2005-12-30  6:31 UTC (permalink / raw)
  To: Daniel Jacobowitz; +Cc: gdb

Daniel Jacobowitz wrote:
> On Thu, Dec 29, 2005 at 01:38:29PM +0800, Jie Zhang wrote:
> 
>>Hi,
>>
>>This piece of code in configure.ac of gdbserver does not work as
>>intended, since gcc only gives an warning if it does not accept
>>-rdynamic.
>>
>>  LDFLAGS="$LDFLAGS -rdynamic"
>>  AC_TRY_LINK([], [], [RDYNAMIC=-rdynamic], [RDYNAMIC=])
>>  AC_SUBST(RDYNAMIC)
> 
> 
> Is this a problem?  For one thing, usually dejagnu reports gcc warnings
> as fatal; the test would fail if the option generated a warning.  For
> another, the option should be used unless it causes gcc to fail;
> using it even when GCC doesn't support it should be harmless.
> 
I thought it's also trying to catch the warning. Thanks for explanation.

Jie

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

end of thread, other threads:[~2005-12-30  6:31 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-12-29  5:38 An issue in configure.ac of gdbserver Jie Zhang
2005-12-30  2:40 ` Daniel Jacobowitz
2005-12-30  6:31   ` Jie Zhang

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).