* config/bfin-parse.y (asm_1): Error if plain symbol is used
as load/store offset.
This commit is contained in:
parent
5778530ea7
commit
81fd73edd1
@ -1,3 +1,8 @@
|
||||
2008-07-24 Jie Zhang <jie.zhang@analog.com>
|
||||
|
||||
* config/bfin-parse.y (asm_1): Error if plain symbol is used
|
||||
as load/store offset.
|
||||
|
||||
2008-07-22 Chao-ying Fu <fu@mips.com>
|
||||
|
||||
* config/tc-mips.c (mips_ip): Reset s to argsStart.
|
||||
|
@ -3202,6 +3202,11 @@ asm_1:
|
||||
if (!IS_DREG ($1) && !ispreg)
|
||||
return yyerror ("Bad destination register for LOAD");
|
||||
|
||||
if (tmp->type == Expr_Node_Reloc
|
||||
&& strcmp (tmp->value.s_value,
|
||||
"_current_shared_library_p5_offset_") != 0)
|
||||
return yyerror ("Plain symbol used as offset");
|
||||
|
||||
if ($5.r0)
|
||||
tmp = unary (Expr_Op_Type_NEG, tmp);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user