From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jeffrey A Law To: Alan Modra Cc: gcc2@cygnus.com, egcs@cygnus.com, gas2@cygnus.com Subject: Re: ASM_COMMENT_START and gas divide operator Date: Wed, 06 May 1998 18:34:00 -0000 Message-id: <24400.894504792@hurl.cygnus.com> References: X-SW-Source: 1998/msg00176.html In message There is a problem with using "/" to start comments, such as those > emitted by gcc's -fverbose-asm. If gas needs to support "/" meaning > the start of a comment anywhere on a line, then the gas division > operator is killed, sometimes silently. For instance: > asm("pushl $FOO/2") > is treated as if the programmer wrote > asm("pushl $FOO") > > Of course, this is only a problem with hand-coded assembly, but it > would be nice to fix gas and gcc. At least on linux, where the only > assembler used with gcc is gas, we should be able to make the > following change without causing too many problems. > > * config/linux.h (ASM_COMMENT_START): Define as "#" > * config/linux-aout.h (ASM_COMMENT_START): Likewise Thanks. I've installed this into egcs. It's possible we'll get some ASM_COMMENT_START redefinitions because of this. If so, we'll have to squash 'em. jeff