mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-25 21:41:47 +08:00
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.
This commit is contained in:
@ -1,3 +1,8 @@
|
||||
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.
|
||||
|
||||
2016-09-14 Jose E. Marchesi <jose.marchesi@oracle.com>
|
||||
|
||||
* config/tc-sparc.c (md_assemble): Detect and warning on
|
||||
|
@ -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);
|
||||
|
Reference in New Issue
Block a user