OSDN Git Service
(root)
/
pf3gnuchains
/
sourceware.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3c860d2
)
* config/bfin-parse.y (asm_1): Slightly improve error messages
author
bernds
<bernds>
Tue, 18 Sep 2007 11:59:00 +0000
(11:59 +0000)
committer
bernds
<bernds>
Tue, 18 Sep 2007 11:59:00 +0000
(11:59 +0000)
for "reg += const;".
gas/ChangeLog
patch
|
blob
|
history
gas/config/bfin-parse.y
patch
|
blob
|
history
diff --git
a/gas/ChangeLog
b/gas/ChangeLog
index
e3fd86e
..
2dda0db
100644
(file)
--- a/
gas/ChangeLog
+++ b/
gas/ChangeLog
@@
-1,3
+1,8
@@
+2007-09-18 Bernd Schmidt <bernd.schmidt@analog.com>
+
+ * config/bfin-parse.y (asm_1): Slightly improve error messages
+ for "reg += const;".
+
2007-09-18 Alan Modra <amodra@bigpond.net.au>
PR gas/5026
diff --git
a/gas/config/bfin-parse.y
b/gas/config/bfin-parse.y
index
cbb223a
..
df1b6f8
100644
(file)
--- a/
gas/config/bfin-parse.y
+++ b/
gas/config/bfin-parse.y
@@
-1432,6
+1432,8
@@
asm_1:
notethat ("COMPI2opD: dregs += imm7\n");
$$ = COMPI2OPD (&$1, imm7 ($3), 1);
}
+ else if ((IS_DREG ($1) || IS_PREG ($1)) && IS_CONST ($3))
+ return yyerror ("Immediate value out of range");
else
return yyerror ("Register mismatch");
}