I've found the relevant code in tc-i386.c in the CVS Binutils:
#if (defined (TE_I386AIX) \
|| ((defined (OBJ_ELF) || defined (OBJ_MAYBE_ELF)) \
&& !defined (TE_GNU) \
&& !defined (TE_LINUX) \
&& !defined (TE_NETWARE) \
&& !defined (TE_FreeBSD) \
&& !defined (TE_NetBSD)))
/* This array holds the chars that always start a comment. If the
pre-processor is disabled, these aren't very useful. The option
--divide will remove '/' from this list. */
const char *i386_comment_chars = "#/";
#define SVR4_COMMENT_CHARS 1
#define PREFIX_SEPARATOR '\\'
#else
const char *i386_comment_chars = "#";
#define PREFIX_SEPARATOR '/'
#endif
I wonder why Linux, FreeBSD, NetBSD, etc. are here but not Solaris? I wonder if
the maintainers just forgot about it? Or is there a good reason for leaving it
out (such as compatibility with the Sun as)?
Should the GNU as maintainers be prodded into adding Solaris here, to enhance
portability of FOSS software to Solaris?
Regards,
Alex
--
This message posted from opensolaris.org