aboutsummaryrefslogtreecommitdiff
path: root/gas/config/tc-sparc.c
diff options
context:
space:
mode:
authorDavid S. Miller <davem@redhat.com>2009-03-19 10:41:46 +0000
committerDavid S. Miller <davem@redhat.com>2009-03-19 10:41:46 +0000
commitb7cac25fd188a2a904bfa4d79c4b20a86019917d (patch)
tree651a14fe8212104804fd2a75c79c25057c648283 /gas/config/tc-sparc.c
parentd1fa68d3c85cb03989df231690704ff4c2e9da43 (diff)
downloadgdb-b7cac25fd188a2a904bfa4d79c4b20a86019917d.zip
gdb-b7cac25fd188a2a904bfa4d79c4b20a86019917d.tar.gz
gdb-b7cac25fd188a2a904bfa4d79c4b20a86019917d.tar.bz2
* config/tc-sparc.c (md_parse_option): If the user gives
us '--64' make sure max_architecture is at least V9.
Diffstat (limited to 'gas/config/tc-sparc.c')
-rw-r--r--gas/config/tc-sparc.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/gas/config/tc-sparc.c b/gas/config/tc-sparc.c
index 5f325f6..af34751 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;