i386/netbsd-elf.h patch for ASM_COMMENT_START
Krister Walfridsson
cato@df.lth.se
Wed Jan 2 16:14:00 GMT 2002
On Wed, 2 Jan 2002, Hans-Peter Nilsson wrote:
> The default ";#" is reasonable. It seems most port-overrides
> are unnecessary. Usually, for gas derivates, either ";" is a
> comment character and the "#" is ignored with the rest, or ";"
> breaks a new line and in most of those cases, "#" acts as a
> (line-)comment character.
Nearly all of the i386 targets includes i386/unix.h which defines
ASM_COMMENT_START as "/" -- and it was this I meant with "the default"
(I didn't realize that there is an architecture-independent default.)
> > + #undef ASM_COMMENT_START
> > + #define ASM_COMMENT_START "#"
> > +
> > #undef DBX_REGISTER_NUMBER
>
> Do you actually need this? What happens if you don't?
> Does ';' do anything else in the netbsd-elf assembler? Isn't it
> a gas derivate?
"/" is used as comment character unless I redefine it...
linux*/freebsd*/openbsd.h/win32.h/x86-64.h/cygwin.h/beos-elf.h/bsd386.h
already redefined it as in my patch.
/Krister
More information about the Gcc-patches
mailing list