mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-27 06:17:47 +08:00
Fix sparc bitness overrides in GAS. Noticed by Eric Botcazou.
gas/ * config/tc-sparc.c (md_parse_option): Only certain arch specifications should override the object to be 32-bit or 64-bit.
This commit is contained in:
@ -1,3 +1,9 @@
|
|||||||
|
2012-11-20 David S. Miller <davem@davemloft.net>
|
||||||
|
|
||||||
|
* config/tc-sparc.c (md_parse_option): Only certain arch
|
||||||
|
specifications should override the object to be 32-bit
|
||||||
|
or 64-bit.
|
||||||
|
|
||||||
2012-11-14 David Holsgrove <david.holsgrove@xilinx.com>
|
2012-11-14 David Holsgrove <david.holsgrove@xilinx.com>
|
||||||
|
|
||||||
* config/tc-microblaze.c (md_assemble): Add support for INST_TYPE_IMM5
|
* config/tc-microblaze.c (md_assemble): Add support for INST_TYPE_IMM5
|
||||||
|
@ -480,10 +480,18 @@ md_parse_option (int c, char *arg)
|
|||||||
|
|
||||||
case OPTION_XARCH:
|
case OPTION_XARCH:
|
||||||
#ifdef OBJ_ELF
|
#ifdef OBJ_ELF
|
||||||
if (strncmp (arg, "v9", 2) != 0)
|
if (!strncmp (arg, "v9", 2))
|
||||||
md_parse_option (OPTION_32, NULL);
|
|
||||||
else
|
|
||||||
md_parse_option (OPTION_64, NULL);
|
md_parse_option (OPTION_64, NULL);
|
||||||
|
else
|
||||||
|
{
|
||||||
|
if (!strncmp (arg, "v8", 2)
|
||||||
|
|| !strncmp (arg, "v7", 2)
|
||||||
|
|| !strncmp (arg, "v6", 2)
|
||||||
|
|| !strcmp (arg, "sparclet")
|
||||||
|
|| !strcmp (arg, "sparclite")
|
||||||
|
|| !strcmp (arg, "sparc86x"))
|
||||||
|
md_parse_option (OPTION_32, NULL);
|
||||||
|
}
|
||||||
#endif
|
#endif
|
||||||
/* Fall through. */
|
/* Fall through. */
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user