Bug 6975 - MIPS assembler misreports $AT usage after 'set .noat'
Summary: MIPS assembler misreports $AT usage after 'set .noat'
Status: NEW
Alias: None
Product: binutils
Classification: Unclassified
Component: gas (show other bugs)
Version: 2.16
: P2 normal
Target Milestone: ---
Assignee: unassigned
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-10-24 01:43 UTC by Alexander Smundak
Modified: 2008-10-24 01:43 UTC (History)
1 user (show)

See Also:
Host:
Target: mips-*-*
Build:
Last reconfirmed:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Alexander Smundak 2008-10-24 01:43:21 UTC
Test case:
        .text
        .set    noat
        sw      $2, small_data

        .comm small_data, 4

When assembler is invoked with -G4, it should assume that `small_data' will be
$GP-addressable, so `sw' expands into a single instruction, and $AT is not used.
However, the assembler complains:
$ gcc.mips64 -G 4 noat.S
noat.S: Assembler messages:
noat.S:3: Error: Macro used $at after ".set noat"

The checking of the $AT usage in this case should be postponed until relaxation
is complete.