[Bug gas/4572] New: division doesn't work on solaris/x86

2007-05-31 Thread whaley at cs dot utsa dot edu
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


[Bug gas/4572] division doesn't work on solaris/x86

2007-05-31 Thread whaley at cs dot utsa dot edu

--- Additional Comments From whaley at cs dot utsa dot edu  2007-05-31 
18:01 ---
OK, I have established that the problem is that '/' is a comment character under
solaris/x86.  The Sun assembly ref manual states that \/ should work to perform
division in expressions, but this does not work for gnu as.  Any idea how to get
gas to do division in an integer expression?

Thanks,
Clint

-- 


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


[Bug gas/4572] division doesn't work on solaris/x86

2007-05-31 Thread amodra at bigpond dot net dot au

--- Additional Comments From amodra at bigpond dot net dot au  2007-06-01 
01:52 ---
You will need to modify app.c.

-- 


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


[Bug gas/4572] division doesn't work on solaris/x86

2007-05-31 Thread whaley at cs dot utsa dot edu

--- Additional Comments From whaley at cs dot utsa dot edu  2007-06-01 
02:44 ---
I can modify the assembly source only by removing functionality.  In the
original code, it is a cpp macro defined to an integer constant that is being
passed in and being divided by known constant.  Without being able to do this, I
have to switch a compile-time division to a run-time one, which means a mov
becomes a long multicycle operation.  

You are saying there is no way to do division in integer expressions with gas on
solaris, even though it works on all other OSes?  Isn't that less than ideal?

Thanks,
Clint

-- 


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


[Bug ld/4563] --gc-sections doesn't work as expected.

2007-05-31 Thread amodra at bigpond dot net dot au

--- Additional Comments From amodra at bigpond dot net dot au  2007-06-01 
06:17 ---
.text._ZN1X1fEv exports a global symbol, _ZN1X1fEv.  When building a shared
library we assume that all global visible symbols are referenced.

-- 
   What|Removed |Added

 Status|NEW |RESOLVED
 Resolution||INVALID


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

--- 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