]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
MIPS/LD: Convert ELF linker emulation option macros to an enum
authorMaciej W. Rozycki <macro@imgtec.com>
Mon, 4 Jan 2016 23:35:03 +0000 (23:35 +0000)
committerMaciej W. Rozycki <macro@imgtec.com>
Mon, 4 Jan 2016 23:35:03 +0000 (23:35 +0000)
ld/
* emultempl/mipself.em (PARSE_AND_LIST_PROLOGUE): Convert
OPTION_INSN32 and OPTION_NO_INSN32 macros to an enum.

ld/ChangeLog
ld/emultempl/mipself.em

index 8a062e1f97ced6407ff6fbf2177ba542dc8cd46c..3aa46ed88e02f82334ea8b1ea9d5da803998ad0b 100644 (file)
@@ -1,3 +1,8 @@
+2016-01-04  Maciej W. Rozycki  <macro@imgtec.com>
+
+       * emultempl/mipself.em (PARSE_AND_LIST_PROLOGUE): Convert
+       OPTION_INSN32 and OPTION_NO_INSN32 macros to an enum.
+
 2016-01-04  Maciej W. Rozycki  <macro@imgtec.com>
 
        * testsuite/ld-mips-elf/attr-gnu-4-14.d: Update the order of
index 1b79aaf22316d641f5fd7b167c3a4d4de0090068..dbff36bb8d18264bdba1d29c2127a1804ec9e896 100644 (file)
@@ -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='