[patch] Convert coff-rs6000.c to iso-c
Joseph S. Myers
joseph@codesourcery.com
Thu Apr 21 10:22:00 GMT 2011
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
More information about the Binutils
mailing list