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]

Re: ASM_COMMENT_START and gas divide operator



  In message <355A9E38.8C82D78B@nm3.ktu.lt>you write:
  > I would suggest hacking gas to treat '/' as the comment _only_ when it
  > is the first character in the line. This does not break gcc/egcs and
  > does not interfere with the division operator or the opcode prefix
  > separator syntax.
Actually I would recommend against that -- I've had the pleasure of
writing a gas port (HPPA) where certain characters had different
meanings depending on their exact placement in a line.  To this day
it still doesn't work 100% correctly -- the grammar is inherently
ambigious.  In my case the character is a '!', and is used in
comparison operations, as a gas built-in operator *and* as a line
continuation character.

jeff