This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Moving the definition of parse_operand_result
- From: Nick Clifton <nickc at redhat dot com>
- To: shinwell at codesourcery dot com
- Cc: binutils at sourceware dot org
- Date: Sat, 17 Jun 2006 17:04:53 +0100
- Subject: Moving the definition of parse_operand_result
Hi Mark,
I am applying the attached patch to move the definition of the
parse_operand_result enum outside of a #ifdef OBJ_ELF...#endif
block. Without this change non-ELF targeted ARM ports will fail to
build.
Cheers
Nick
gas/ChangeLog
2006-06-17 Nick Clifton <nickc@redhat.com>
* config/tc-arm.c (enum parse_operand_result): Move outside of
#ifdef OBJ_ELF so that non-ELF targeted ARM ports can build.
Index: gas/config/tc-arm.c
===================================================================
RCS file: /cvs/src/src/gas/config/tc-arm.c,v
retrieving revision 1.276
diff -c -3 -p -r1.276 tc-arm.c
*** gas/config/tc-arm.c 15 Jun 2006 11:03:01 -0000 1.276
--- gas/config/tc-arm.c 17 Jun 2006 16:01:11 -0000
*************** static struct
*** 79,84 ****
--- 79,91 ----
unsigned sp_restored:1;
} unwind;
+ /* Bit N indicates that an R_ARM_NONE relocation has been output for
+ __aeabi_unwind_cpp_prN already if set. This enables dependencies to be
+ emitted only once per section, to save unnecessary bloat. */
+ static unsigned int marked_pr_dependency = 0;
+
+ #endif /* OBJ_ELF */
+
/* Results from operand parsing worker functions. */
typedef enum
*************** typedef enum
*** 88,100 ****
PARSE_OPERAND_FAIL_NO_BACKTRACK
} parse_operand_result;
- /* Bit N indicates that an R_ARM_NONE relocation has been output for
- __aeabi_unwind_cpp_prN already if set. This enables dependencies to be
- emitted only once per section, to save unnecessary bloat. */
- static unsigned int marked_pr_dependency = 0;
-
- #endif /* OBJ_ELF */
-
enum arm_float_abi
{
ARM_FLOAT_ABI_HARD,
--- 95,100 ----