Revert "GAS: Replace macro LITERAL_PREFIXDOLLAR_HEX with a runtime value."

This reverts commit cffc205c9e.
This commit is contained in:
John Darrington 2019-05-21 07:30:05 +02:00
parent 302d65e0b2
commit da0523c666
8 changed files with 9 additions and 21 deletions

View File

@ -145,8 +145,6 @@ md_begin (void)
/* Set the machine type. */
bfd_default_set_arch_mach (stdoutput, bfd_arch_epiphany, bfd_mach_epiphany32);
literal_prefix_dollar_hex = TRUE;
}
valueT

View File

@ -37,6 +37,7 @@
/* We don't need to handle .word strangely. */
#define WORKING_DOT_WORD
#define LITERAL_PREFIXDOLLAR_HEX
#define LITERAL_PREFIXPERCENT_BIN
#define DOUBLESLASH_LINE_COMMENTS

View File

@ -160,8 +160,6 @@ md_begin (void)
/* Set the machine type. */
bfd_default_set_arch_mach (stdoutput, bfd_arch_ip2k, ip2k_mach);
literal_prefix_dollar_hex = TRUE;
}

View File

@ -38,6 +38,7 @@
/* We don't need to handle .word strangely. */
#define WORKING_DOT_WORD
#define LITERAL_PREFIXDOLLAR_HEX
#define LITERAL_PREFIXPERCENT_BIN
#define DOUBLESLASH_LINE_COMMENTS

View File

@ -178,8 +178,6 @@ md_begin (void)
/* Set the machine type. */
bfd_default_set_arch_mach (stdoutput, bfd_arch_mt, mt_mach);
literal_prefix_dollar_hex = TRUE;
}
void

View File

@ -41,6 +41,7 @@
/* All mt instructions are multiples of 32 bits. */
#define DWARF2_LINE_MIN_INSN_LENGTH 4
#define LITERAL_PREFIXDOLLAR_HEX
#define LITERAL_PREFIXPERCENT_BIN
#define md_apply_fix mt_apply_fix

View File

@ -35,8 +35,6 @@
#define CHAR_BIT 8
#endif
bfd_boolean literal_prefix_dollar_hex = FALSE;
static void floating_constant (expressionS * expressionP);
static valueT generic_bignum_to_int32 (void);
#ifdef BFD64
@ -780,19 +778,14 @@ operand (expressionS *expressionP, enum expr_mode mode)
expressionP);
break;
#ifdef LITERAL_PREFIXDOLLAR_HEX
case '$':
if (literal_prefix_dollar_hex)
{
/* $L is the start of a local label, not a hex constant. */
if (* input_line_pointer == 'L')
goto isname;
integer_constant (16, expressionP);
}
else
{
goto isname;
}
/* $L is the start of a local label, not a hex constant. */
if (* input_line_pointer == 'L')
goto isname;
integer_constant (16, expressionP);
break;
#endif
#ifdef LITERAL_PREFIXPERCENT_BIN
case '%':

View File

@ -187,5 +187,3 @@ extern symbolS *expr_build_uconstant (offsetT);
extern symbolS *expr_build_dot (void);
int resolve_expression (expressionS *);
extern bfd_boolean literal_prefix_dollar_hex;