This is the mail archive of the binutils-cvs@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]

[binutils-gdb] MIPS/LD: Convert ELF linker emulation option macros to an enum


https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=2f2da8fd3ff3c04928621bcbc0c01b9f9ebce7cc

commit 2f2da8fd3ff3c04928621bcbc0c01b9f9ebce7cc
Author: Maciej W. Rozycki <macro@imgtec.com>
Date:   Mon Jan 4 23:35:03 2016 +0000

    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.

Diff:
---
 ld/ChangeLog            | 5 +++++
 ld/emultempl/mipself.em | 7 +++++--
 2 files changed, 10 insertions(+), 2 deletions(-)

diff --git a/ld/ChangeLog b/ld/ChangeLog
index 8a062e1..3aa46ed 100644
--- a/ld/ChangeLog
+++ b/ld/ChangeLog
@@ -1,5 +1,10 @@
 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
 	messages expected according to MIPS BFD private data merge
 	changes.
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='


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