Alex Viskovatoff wrote: > It's clear from the comments in response to the initial bug report that the > reason this behavior is being maintained for Solaris targets is to abide by > the Solaris assembler reference manual. > > I think the GNU AS maintainers are operating under a misapprehension. > Maintaining compatibility between GNU AS for Solaris targets and Solaris AS > should not be much of a priority: it's going to be a rare situation in which > someone is going to try to compile something written for Solaris AS with GNU > AS. In almost all cases in which someone uses GNU AS under Solaris x86, it is > going to be to compile code written for Linux. > > Therefore, instead of having a "--divide" option which provides compatibility > for Solaris targets with Linux targets, such compatibility should be the > default behavior. If someone wants to compile code written using the Solaris > assembler comment syntax, a new option should be provided for that purpose in > GNU AS. (It could be called "--slash-comment".) The patches to GNU AS which > would be required would be simple.
I wouldn't say "for Linux," as it's apparent from the GNU 'as' code that /-for-divide is the common behavior on several platforms that predate Linux, but otherwise I agree. In the special case that one has to have compatibility with Sun's 'as', adding a flag doesn't sound like a burden. Needing the reverse to retain compatibility sounds like a mistake. If it's used in the OpenSolaris source base, then those makefiles and/or wrapper tools look like the right place for it. -- James Carlson 42.703N 71.076W <carlsonj at workingcode.com>