This is the mail archive of the binutils@sourceware.org mailing list for the binutils 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] Convert coff-rs6000.c to iso-c


On Mon, 18 Apr 2011, Nick Clifton wrote:

> PS. If you are going to do more of these you might also like to replace
> occurrences of the PTR macro with "void *".

How about declaring all the macros in ansidecl.h that are for pre-C90 
compatibility obsolete and removing their definitions once all uses in the 
gcc and src repositories are gone?  That's ANSI_PROTOTYPES PTR PTRCONST 
LONG_DOUBLE PARAMS VPARAMS VA_START VA_OPEN VA_CLOSE VA_FIXEDARG CONST 
VOLATILE SIGNED PROTO EXFUN DEFUN DEFUN_VOID AND DOTS NOARGS (plus 
definitions as macros of const volatile signed).  Some of these macros may 
already have been eliminated (GCC's system.h poisons eight of them, for 
example, and some more are not defined if IN_GCC) and despite the comments 
on ansidecl.h claiming to be from the GNU C Library, the glibc copy was 
removed in 1997 so it's purely a libiberty header now.

-- 
Joseph S. Myers
joseph@codesourcery.com


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