aboutsummaryrefslogtreecommitdiff
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
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.
-rw-r--r--gas/ChangeLog5
-rw-r--r--gas/config/tc-sparc.c4
2 files changed, 9 insertions, 0 deletions
diff --git a/gas/ChangeLog b/gas/ChangeLog
index 78e8687..103d442 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 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;