From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jeffrey A Law To: Martynas Kunigelis Cc: Alan Modra , gcc2@cygnus.com, egcs@cygnus.com, gas2@cygnus.com Subject: Re: ASM_COMMENT_START and gas divide operator Date: Thu, 14 May 1998 09:37:00 -0000 Message-id: <6525.895163640@hurl.cygnus.com> References: <355A9E38.8C82D78B@nm3.ktu.lt> X-SW-Source: 1998/msg00183.html 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