diff options
-rw-r--r-- | gas/ChangeLog | 5 | ||||
-rw-r--r-- | gas/config/tc-sparc.c | 4 |
2 files changed, 9 insertions, 0 deletions
diff --git a/gas/ChangeLog b/gas/ChangeLog index 78e8687802..103d442144 100644 --- a/gas/ChangeLog +++ b/gas/ChangeLog @@ -1,3 +1,8 @@ +2009-03-19 David S. Miller <davem@davemloft.net> + + * config/tc-sparc.c (md_parse_option): If the user gives + us '--64' make sure max_architecture is at least V9. + 2009-03-18 Andrew Stubbs <ams@codesourcery.com> * config/tc-arm.c (md_apply_fix): Check BFD_RELOC_ARM_IMMEDIATE and diff --git a/gas/config/tc-sparc.c b/gas/config/tc-sparc.c index 5f325f604a..af3475171b 100644 --- a/gas/config/tc-sparc.c +++ b/gas/config/tc-sparc.c @@ -542,6 +542,10 @@ md_parse_option (int c, char *arg) as_fatal (_("No compiled in support for %d bit object file format"), sparc_arch_size); free (list); + + if (sparc_arch_size == 64 + && max_architecture < SPARC_OPCODE_ARCH_V9) + max_architecture = SPARC_OPCODE_ARCH_V9; } break; |