mirror of
https://github.com/bminor/binutils-gdb.git
synced 2025-12-29 02:20:51 +00:00
fix_new_exp: Print an error if passed a register.
This commit is contained in:
@@ -1,3 +1,7 @@
|
||||
2001-03-23 Richard Sandiford <rsandifo@redhat.com>
|
||||
|
||||
* write.c (fix_new_exp): Print an error if passed a register.
|
||||
|
||||
2001-03-23 Hans-Peter Nilsson <hp@axis.com>
|
||||
|
||||
* config/tc-cris.c: Tweak attribution. Fix typos. PIC support.
|
||||
|
||||
@@ -283,6 +283,10 @@ fix_new_exp (frag, where, size, exp, pcrel, r_type)
|
||||
case O_absent:
|
||||
break;
|
||||
|
||||
case O_register:
|
||||
as_bad (_("register value used as expression"));
|
||||
break;
|
||||
|
||||
case O_add:
|
||||
/* This comes up when _GLOBAL_OFFSET_TABLE_+(.-L0) is read, if
|
||||
the difference expression cannot immediately be reduced. */
|
||||
|
||||
Reference in New Issue
Block a user