Bug 20992 - sparcv9 should be equivalent to sparc64
Summary: sparcv9 should be equivalent to sparc64
Status: RESOLVED FIXED
Alias: None
Product: binutils
Classification: Unclassified
Component: gas (show other bugs)
Version: 2.27
: P2 normal
Target Milestone: ---
Assignee: Not yet assigned to anyone
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-12-23 18:23 UTC by Norm Jacobs
Modified: 2017-01-04 11:51 UTC (History)
1 user (show)

See Also:
Host:
Target:
Build:
Last reconfirmed:


Attachments
proposed fix to gas/configure.tgt for sparcv9* (262 bytes, patch)
2016-12-23 18:23 UTC, Norm Jacobs
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Norm Jacobs 2016-12-23 18:23:40 UTC
Created attachment 9723 [details]
proposed fix to gas/configure.tgt for sparcv9*

After configuring binutils --build=sparcv9-sun-solaris2.11, I expected that gas(1) would not just be a 64-bit executable, but that it would generate 64-bit objects by default, similar to GCC.  Instead, it generates 32-bit objects by default.  
After some digging I found that gas/configure.tgt currently checks for a number of variants of sparc, but eventually hits 'sparc*' and sets arch to 'sparclite'.  It seems like sparcv9 and sparc64 should be equivalent and set arch=v9-64,
Comment 1 Sourceware Commits 2017-01-04 11:50:24 UTC
The master branch has been updated by Nick Clifton <nickc@sourceware.org>:

https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=10ab38d930db6159b93082dfe5e41761bdc0d70b

commit 10ab38d930db6159b93082dfe5e41761bdc0d70b
Author: Norm Jacobs <norm.jacobs@oracle.com>
Date:   Wed Jan 4 11:49:00 2017 +0000

    When configuring GAS treat as sparcv9 target the same way as a sparc64 target.
    
    	PR gas/20992
    	* configure.tgt: Treat sparcv9 as sparc64.
Comment 2 Nick Clifton 2017-01-04 11:51:45 UTC
Hi Norm,

  Thanks for the patch.  I have applied it to the sources.

Cheers
  Nick