This is the mail archive of the gas2@sourceware.cygnus.com mailing list for the gas2 project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

A PREFIX_SEPARATOR bug in binutils 2.9


Hi,

In binutils, PREFIX_SEPARATOR is defined as '/' for x86. But there
is

#if defined (TE_I386AIX) || defined (OBJ_ELF) || defined (OBJ_MAYBE_ELF)
const char comment_chars[] = "#/";
#else
const char comment_chars[] = "#";
#endif

in config/tc-i386.c. It makes '/' to start a comment. It won't work.
We can define PREFIX_SEPARATOR as

#if defined (TE_I386AIX) || defined (OBJ_ELF) || defined (OBJ_MAYBE_ELF)
#define PREFIX_SEPARATOR '\\'
#else
#define PREFIX_SEPARATOR '/'
#endif

But I don't like it. Any suggestion how to fix it?

Thanks.



-- 
H.J. Lu (hjl@gnu.org)