aboutsummaryrefslogtreecommitdiff
path: root/ld/emultempl
diff options
context:
space:
mode:
authorMaciej W. Rozycki <macro@imgtec.com>2016-01-04 23:35:03 +0000
committerMaciej W. Rozycki <macro@imgtec.com>2016-01-04 23:35:03 +0000
commit2f2da8fd3ff3c04928621bcbc0c01b9f9ebce7cc (patch)
tree46ce492ce501e3ae77118dcd3e66c03bf55e4a70 /ld/emultempl
parenta3dc0a7f65bd4cfcfad6afee8b11657972e5a8de (diff)
downloadgdb-2f2da8fd3ff3c04928621bcbc0c01b9f9ebce7cc.zip
gdb-2f2da8fd3ff3c04928621bcbc0c01b9f9ebce7cc.tar.gz
gdb-2f2da8fd3ff3c04928621bcbc0c01b9f9ebce7cc.tar.bz2
MIPS/LD: Convert ELF linker emulation option macros to an enum
ld/ * emultempl/mipself.em (PARSE_AND_LIST_PROLOGUE): Convert OPTION_INSN32 and OPTION_NO_INSN32 macros to an enum.
Diffstat (limited to 'ld/emultempl')
-rw-r--r--ld/emultempl/mipself.em7
1 files changed, 5 insertions, 2 deletions
diff --git a/ld/emultempl/mipself.em b/ld/emultempl/mipself.em
index 1b79aaf..dbff36b 100644
--- a/ld/emultempl/mipself.em
+++ b/ld/emultempl/mipself.em
@@ -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='