This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
[RFC PATCH 09/11] MIPS/LD: Convert ELF linker emulation option macros to an enum
- From: "Maciej W. Rozycki" <macro at imgtec dot com>
- To: <binutils at sourceware dot org>
- Cc: Matthew Fortune <Matthew dot Fortune at imgtec dot com>, Daniel Sanders <Daniel dot Sanders at imgtec dot com>
- Date: Fri, 20 Nov 2015 14:51:03 +0000
- Subject: [RFC PATCH 09/11] MIPS/LD: Convert ELF linker emulation option macros to an enum
- Authentication-results: sourceware.org; auth=none
- References: <alpine dot DEB dot 2 dot 00 dot 1511200755190 dot 6915 at tp dot orcam dot me dot uk>
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='