Hi,

Not sure if this is a bug, but the assembler works oddly on solaris x86 as
opposed to x86 on (windows,OSX,Linux,*BSD).  Essentially, it can't take constant
expressions that include division.  I am running on an opteron running solaris,
and it can't assemble:
>cinna>cat tst.s
> movq $20/10, %rax
>cinna>/usr/local/binutils-2.16.1/x86_64-SunOS-gcc-3.4.2-sun/bin/as --64 -v 
>>tst.s
>GNU assembler version 2.16.1 (i386-pc-solaris2.10) using BFD version 2.16.1
>tst.s: Assembler messages:
>tst.s:1: Error: suffix or operands invalid for `movq'

But it works fine on any other OS.  If this is expected behavior for sparc,
what's the reason, and is there any workaround?  If it is not expected behavior,
any ideas?  I support a large libary with many lines like this in it, and so far
this keeps me from porting to solaris/x86, even thouth my assembler works on the
 other x86 platforms.

Thanks,
Clint

-- 
           Summary: division doesn't work on solaris/x86
           Product: binutils
           Version: 2.17
            Status: NEW
          Severity: normal
          Priority: P2
         Component: gas
        AssignedTo: unassigned at sources dot redhat dot com
        ReportedBy: whaley at cs dot utsa dot edu
                CC: bug-binutils at gnu dot org


http://sourceware.org/bugzilla/show_bug.cgi?id=4572

------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.


_______________________________________________
bug-binutils mailing list
bug-binutils@gnu.org
http://lists.gnu.org/mailman/listinfo/bug-binutils

Reply via email to