This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: i386/netbsd-elf.h patch for ASM_COMMENT_START


On Mon, 31 Dec 2001, Krister Walfridsson wrote:

> NetBSD does (like nearly all i386 targets) need to redefine ASM_COMMENT_START
> for -fverbose-asm and -dA to be useful (hmm. it seems rather stupid to
> have a default that nearly all targets need to redefine. Maybe this should
> be done in gas.h instead?)

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.

> + #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?

I think this might be related to properly emitting #APP and
#NO_APP from gcc to gas.

brgds, H-P


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