diff options
author | Jose E. Marchesi <jose.marchesi@oracle.com> | 2016-09-14 07:15:24 -0700 |
---|---|---|
committer | Jose E. Marchesi <jose.marchesi@oracle.com> | 2016-09-14 07:15:24 -0700 |
commit | fc7514d6f2784390b7e6c65c0c9603ede0203f58 (patch) | |
tree | e95a4289fecf45d748566f555fc1e03ff0f29455 /gas/config | |
parent | 46a2d504dd875caf60f9be191a55c9ff676bcd5c (diff) | |
download | binutils-gdb-fc7514d6f2784390b7e6c65c0c9603ede0203f58.tar.gz |
gas: improve architecture mismatch diagnostics in sparc
Merely dumping the mnemonic name in "architecture mismatch" errors may
not provide enough information to determine what went wrong, as the same
mnemonic can be used for different variants of an instruction pertaining
to different architecture levels.
This little patch makes the assembler to include the instruction
arguments in the error message.
gas/ChangeLog:
2016-09-14 Jose E. Marchesi <jose.marchesi@oracle.com>
* config/tc-sparc.c (sparc_ip): Print the instruction arguments
in "architecture mismatch" error messages.
Diffstat (limited to 'gas/config')
-rw-r--r-- | gas/config/tc-sparc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gas/config/tc-sparc.c b/gas/config/tc-sparc.c index 2fb3c5ac9e8..70f5bfb4dd4 100644 --- a/gas/config/tc-sparc.c +++ b/gas/config/tc-sparc.c @@ -3224,7 +3224,7 @@ sparc_ip (char *str, const struct sparc_opcode **pinsn) ++arch; } - as_bad (_("Architecture mismatch on \"%s\"."), str); + as_bad (_("Architecture mismatch on \"%s %s\"."), str, argsStart); as_tsktsk (_(" (Requires %s; requested architecture is %s.)"), required_archs, sparc_opcode_archs[max_architecture].name); |