]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
* config/tc-sparc.c (md_parse_option): If the user gives
authorDavid S. Miller <davem@redhat.com>
Thu, 19 Mar 2009 10:41:46 +0000 (10:41 +0000)
committerDavid S. Miller <davem@redhat.com>
Thu, 19 Mar 2009 10:41:46 +0000 (10:41 +0000)
us '--64' make sure max_architecture is at least V9.

gas/ChangeLog
gas/config/tc-sparc.c

index 78e868780249537c93ad9d0d0952a52b285b80fc..103d442144caa8351d6fc09c254157c8b67a7193 100644 (file)
@@ -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
index 5f325f604a2e0d8d9fa35d2275f80cfed651873f..af3475171be88a5dc4c1f8db676f23c512bc71f0 100644 (file)
@@ -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;