This is the mail archive of the gdb-patches@sources.redhat.com mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [patch/rfc] h8300 Change literal reg numbers to REGNUM macros


> > 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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]