mirror of
https://sourceware.org/git/binutils-gdb.git
synced 2025-02-17 13:10:12 +08:00
gas: don't open-code LEX_*NAME
... except in read.c's definition of lex_type[], where readbility would otherwise suffer.
This commit is contained in:
parent
4b939bab12
commit
50e19e6e6c
@ -44,7 +44,7 @@ extern bool bfin_start_label (char *);
|
||||
#define md_convert_frag(b,s,f) as_fatal ("bfin convert_frag\n");
|
||||
|
||||
/* Allow for [, ], etc. */
|
||||
#define LEX_BR 6
|
||||
#define LEX_BR (LEX_BEGIN_NAME | LEX_END_NAME)
|
||||
|
||||
#define TC_EOL_IN_INSN(PTR) (bfin_eol_in_insn(PTR) ? 1 : 0)
|
||||
extern bool bfin_eol_in_insn (char *);
|
||||
|
@ -29,7 +29,7 @@
|
||||
|
||||
#define WORKING_DOT_WORD
|
||||
|
||||
#define LEX_DOLLAR 1
|
||||
#define LEX_DOLLAR LEX_NAME
|
||||
|
||||
#include "bit_fix.h"
|
||||
|
||||
|
@ -99,7 +99,7 @@
|
||||
|
||||
/* Support symbols like: C$$IO$$. */
|
||||
#undef LEX_DOLLAR
|
||||
#define LEX_DOLLAR 1
|
||||
#define LEX_DOLLAR LEX_NAME
|
||||
|
||||
#define TC_IMPLICIT_LCOMM_ALIGNMENT(SIZE, P2VAR) (P2VAR) = 0
|
||||
/* An `.lcomm' directive with no explicit alignment parameter will
|
||||
|
@ -149,7 +149,7 @@ struct ppc_tc_sy
|
||||
#define OBJ_COFF_MAX_AUXENTRIES 4
|
||||
|
||||
/* Square and curly brackets are permitted in symbol names. */
|
||||
#define LEX_BR 3
|
||||
#define LEX_BR (LEX_BEGIN_NAME | LEX_NAME)
|
||||
|
||||
/* Canonicalize the symbol name. */
|
||||
#define tc_canonicalize_symbol_name(name) ppc_canonicalize_symbol_name (name)
|
||||
|
@ -19,8 +19,8 @@
|
||||
|
||||
#define TE_PE_DYN /* PE with dynamic linking (UNIX shared lib) support */
|
||||
#define TE_PE
|
||||
#define LEX_AT 1 /* can have @'s inside labels */
|
||||
#define LEX_QM 3 /* can have ?'s in or begin labels */
|
||||
#define LEX_AT LEX_NAME /* can have @'s inside labels */
|
||||
#define LEX_QM (LEX_BEGIN_NAME | LEX_NAME) /* can have ?'s in or begin labels */
|
||||
|
||||
/* The PE format supports long section names. */
|
||||
#define COFF_LONG_SECTION_NAMES
|
||||
|
@ -285,7 +285,8 @@ read_begin (void)
|
||||
/* Use more. FIXME-SOMEDAY. */
|
||||
|
||||
if (flag_mri)
|
||||
lex_type['?'] = 3;
|
||||
lex_type['?'] = LEX_BEGIN_NAME | LEX_NAME;
|
||||
|
||||
stabs_begin ();
|
||||
|
||||
#ifndef WORKING_DOT_WORD
|
||||
|
Loading…
Reference in New Issue
Block a user