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

[RFC PATCH 09/11] 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.
---
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='


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