projects
/
binutils-gdb.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d4fc7db
)
fix_new_exp: Print an error if passed a register.
author
Nick Clifton
<nickc@redhat.com>
Fri, 23 Mar 2001 18:15:49 +0000
(18:15 +0000)
committer
Nick Clifton
<nickc@redhat.com>
Fri, 23 Mar 2001 18:15:49 +0000
(18:15 +0000)
gas/ChangeLog
patch
|
blob
|
history
gas/write.c
patch
|
blob
|
history
diff --git
a/gas/ChangeLog
b/gas/ChangeLog
index 647b2680c240c154d416e6d797cea91439016ffa..5be241d04505b567a52013f09f0df27d8cf33e74 100644
(file)
--- 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 b647a11d9058305794f011428a31a0ed45ee1662..b94c05eed71b7fa33855225984eca7c8893e75be 100644
(file)
--- 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. */