>it is annoying that GAS in build 117 still can't cope with those parentheses. >[...] That appears to be a bug, but I can't find it in defect.opensolaris.org.
It turns out not to be a bug. I found the explanation for what's going on [url=http://www.mail-archive.com/bug-binut...@gnu.org/msg00025.html]here[/url]: >For compatibility with other assemblers, '/' starts a comment on the >i386-elf target. So you can't use division. That link provides a one-line test program, which I've saved in parentheses.s: cmpl $(100/4), %eax Using the --divide option yields the desired behavior: a...@diotima:~$ gas parentheses.s parentheses.s: Assembler messages: parentheses.s:1: Error: unbalanced parenthesis in operand 1. a...@diotima:~$ gas --divide parentheses.s a...@diotima:~$ It would be nice if someone who knows more about how to write make files than I do would create the appropriate patch. It couldn't hurt to pass it upstream, since --divide is ignored by the Linux as, under Fedora at any rate. -- This message posted from opensolaris.org _______________________________________________ opensolaris-discuss mailing list opensolaris-discuss@opensolaris.org