[RFC PATCH 09/11] MIPS/LD: Convert ELF linker emulation option macros to an enum
Maciej W. Rozycki
macro@imgtec.com
Fri Nov 20 14:51:00 GMT 2015
ld/
* emultempl/mipself.em (PARSE_AND_LIST_PROLOGUE): Convert
OPTION_INSN32 and OPTION_NO_INSN32 macros to an enum.
---
binutils-mips-ld-emultempl-option-enum.diff
Index: binutils/ld/emultempl/mipself.em
===================================================================
--- binutils.orig/ld/emultempl/mipself.em 2015-06-17 16:08:47.208518315 +0100
+++ binutils/ld/emultempl/mipself.em 2015-06-17 16:09:06.506135569 +0100
@@ -250,8 +250,11 @@ EOF
# parse_args and list_options functions.
#
PARSE_AND_LIST_PROLOGUE='
-#define OPTION_INSN32 301
-#define OPTION_NO_INSN32 (OPTION_INSN32 + 1)
+enum
+ {
+ OPTION_INSN32 = 301,
+ OPTION_NO_INSN32
+ };
'
PARSE_AND_LIST_LONGOPTS='
More information about the Binutils
mailing list