This is the mail archive of the
binutils@sourceware.cygnus.com
mailing list for the binutils project.
Re: textdomain warning removal
- To: bje at redhat dot com
- Subject: Re: textdomain warning removal
- From: Andrew Cagney <ac131313 at cygnus dot com>
- Date: Fri, 12 May 2000 19:28:15 +1000
- CC: Alan Modra <alan at linuxcare dot com dot au>, binutils at sourceware dot cygnus dot com
- Organization: Cygnus Solutions
- References: <Pine.LNX.4.21.0005121734050.9884-100000@moshpit.cygnus.com>
Ben Elliston wrote:
>
> > Has anyone any objection to changing the definition of textdomain and
> > bindtextdomain as follows? This silences gcc as regards
> > "warning: statement with no effect"
>
> These changes are a bit unfortunate in light of the need to retain
> compatibility with ancient compilers. GDB now requires an ISO C compiler
> to build it (e.g. GCC). Can't the binutils follow suit?
To expand a little. GDB requires a compiler that can parse the ISO-C
syntax. It, unfortunatly, can't assume things like ISO-C headers and
libraries.
GDB 4.18 contained one ISO-C function declaration/definition as a trial
to see if anyone complained. Since then GDB 5.0 has become littered
with ISO-Cisms. GDB 6.0 (scheduled for year 3k?) will be K&R clean.
enjoy,
Andrew