mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-19 17:18:24 +08:00
(potable): Treat "string" like "asciz".
This commit is contained in:
15
gas/read.c
15
gas/read.c
@ -250,6 +250,7 @@ static const pseudo_typeS potable[] =
|
|||||||
{"single", float_cons, 'f'},
|
{"single", float_cons, 'f'},
|
||||||
/* size */
|
/* size */
|
||||||
{"space", s_space, 0},
|
{"space", s_space, 0},
|
||||||
|
{"string", stringer, 1},
|
||||||
/* tag */
|
/* tag */
|
||||||
{"text", s_text, 0},
|
{"text", s_text, 0},
|
||||||
{"title", listing_title, 0}, /* Listing title */
|
{"title", listing_title, 0}, /* Listing title */
|
||||||
@ -1702,7 +1703,9 @@ emit_expr (exp, nbytes)
|
|||||||
#ifdef BFD_ASSEMBLER
|
#ifdef BFD_ASSEMBLER
|
||||||
fix_new_exp (frag_now, p - frag_now->fr_literal, nbytes, exp, 0,
|
fix_new_exp (frag_now, p - frag_now->fr_literal, nbytes, exp, 0,
|
||||||
/* @@ Should look at CPU word size. */
|
/* @@ Should look at CPU word size. */
|
||||||
nbytes == 8 ? BFD_RELOC_64 : BFD_RELOC_32);
|
nbytes == 2 ? BFD_RELOC_16
|
||||||
|
: nbytes == 8 ? BFD_RELOC_64
|
||||||
|
: BFD_RELOC_32);
|
||||||
#else
|
#else
|
||||||
#ifdef TC_CONS_FIX_NEW
|
#ifdef TC_CONS_FIX_NEW
|
||||||
TC_CONS_FIX_NEW (frag_now, p - frag_now->fr_literal, nbytes, exp);
|
TC_CONS_FIX_NEW (frag_now, p - frag_now->fr_literal, nbytes, exp);
|
||||||
@ -1964,10 +1967,8 @@ parse_repeat_cons (exp, nbytes)
|
|||||||
* It would be nicer to permit bignums in expressions and only
|
* It would be nicer to permit bignums in expressions and only
|
||||||
* complain if the result overflowed. However, due to "efficiency"...
|
* complain if the result overflowed. However, due to "efficiency"...
|
||||||
*/
|
*/
|
||||||
/* worker to do .quad etc statements */
|
/* Worker to do .quad etc statements. Clobbers input_line_pointer, checks
|
||||||
/* clobbers input_line_pointer, checks */
|
end-of-line. 8=.quad 16=.octa ... */
|
||||||
/* end-of-line. */
|
|
||||||
/* 8=.quad 16=.octa ... */
|
|
||||||
|
|
||||||
void
|
void
|
||||||
big_cons (nbytes)
|
big_cons (nbytes)
|
||||||
@ -2122,8 +2123,8 @@ grow_bignum ()
|
|||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
|
||||||
void /* JF was static, but can't be if VAX.C is goning to use it */
|
void
|
||||||
float_cons (float_type) /* Worker to do .float etc statements. */
|
float_cons (float_type)
|
||||||
/* Clobbers input_line-pointer, checks end-of-line. */
|
/* Clobbers input_line-pointer, checks end-of-line. */
|
||||||
register int float_type; /* 'f':.ffloat ... 'F':.float ... */
|
register int float_type; /* 'f':.ffloat ... 'F':.float ... */
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user