This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
Re: [patch/rfc] h8300 Change literal reg numbers to REGNUM macros
- From: Richard Earnshaw <rearnsha at arm dot com>
- To: Andrew Cagney <ac131313 at cygnus dot com>
- Cc: Andreas Schwab <schwab at suse dot de>, Richard dot Earnshaw at arm dot com, gdb-patches at sources dot redhat dot com
- Date: Wed, 15 May 2002 18:04:42 +0100
- Subject: Re: [patch/rfc] h8300 Change literal reg numbers to REGNUM macros
- Organization: ARM Ltd.
- Reply-to: Richard dot Earnshaw at arm dot com
> > Richard Earnshaw <rearnsha@arm.com> writes:
> >
> > |> Further, it's general to talk about 'ISO' when referring to c99. I said
> > |> 'ANSI', which is usually taken to refer to the original standard.
> >
> > I'm pretty sure that ANSI has adopted C99 too. And C89 (well, C90
> > actually) was an ISO standard as well.
>
> GDB requires ISO C, not ANSI C :-)
> http://sources.redhat.com/gdb/onlinedocs/gdbint_13.html#SEC102
I just built gdb on arm-netbsdelf with -std=c89 -Werror added to the build
options. Apart from needing to add -Wno-trigraphs to compile solib-svr4.c
('cos it includes elf/mips.h, which has '???' in coments), everything
worked fine.
Maybe we should work towards adding the 'std' option on builds. It should
help to clear out any accidental use of GCC-isms.
R.