diff options
author | Nick Clifton <nickc@redhat.com> | 2001-03-23 18:15:49 +0000 |
---|---|---|
committer | Nick Clifton <nickc@redhat.com> | 2001-03-23 18:15:49 +0000 |
commit | 37006e4391f0851c445377b99c9e23152336dfca (patch) | |
tree | a09115176e259ae35452b371ec7c5ff51fae6e56 /gas | |
parent | d4fc7db8920528e162a1af5bc28966c3fb393318 (diff) | |
download | fsf-binutils-gdb-37006e4391f0851c445377b99c9e23152336dfca.zip fsf-binutils-gdb-37006e4391f0851c445377b99c9e23152336dfca.tar.gz fsf-binutils-gdb-37006e4391f0851c445377b99c9e23152336dfca.tar.bz2 |
fix_new_exp: Print an error if passed a register.
Diffstat (limited to 'gas')
-rw-r--r-- | gas/ChangeLog | 4 | ||||
-rw-r--r-- | gas/write.c | 4 |
2 files changed, 8 insertions, 0 deletions
diff --git a/gas/ChangeLog b/gas/ChangeLog index 647b268..5be241d 100644 --- a/gas/ChangeLog +++ b/gas/ChangeLog @@ -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. diff --git a/gas/write.c b/gas/write.c index b647a11..b94c05e 100644 --- a/gas/write.c +++ b/gas/write.c @@ -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. */ |