From b7cac25fd188a2a904bfa4d79c4b20a86019917d Mon Sep 17 00:00:00 2001 From: "David S. Miller" Date: Thu, 19 Mar 2009 10:41:46 +0000 Subject: [PATCH] * config/tc-sparc.c (md_parse_option): If the user gives us '--64' make sure max_architecture is at least V9. --- gas/ChangeLog | 5 +++++ gas/config/tc-sparc.c | 4 ++++ 2 files changed, 9 insertions(+) diff --git a/gas/ChangeLog b/gas/ChangeLog index 78e86878024..103d442144c 100644 --- a/gas/ChangeLog +++ b/gas/ChangeLog @@ -1,3 +1,8 @@ +2009-03-19 David S. Miller + + * 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 * 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 5f325f604a2..af3475171be 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; -- 2.30.2