This is the mail archive of the
binutils@sourceware.cygnus.com
mailing list for the binutils project.
MFH request: GAS comment chars for the FreeBSD case
- To: binutils at sourceware dot cygnus dot com
- Subject: MFH request: GAS comment chars for the FreeBSD case
- From: "David O'Brien" <obrien at NUXI dot com>
- Date: Sun, 14 May 2000 13:33:39 -0700
- Organization: The NUXI BSD group
- References: <200004250156.SAA29400@rtl.cygnus.com> <20000425150512.B2552@dragon.nuxi.com>
- Reply-To: obrien at NUXI dot com
2000-04-14 David O'Brien <obrien@FreeBSD.org>
* config/tc-i386.c (comment_chars): Don't use '/' as comment start if
TE_FreeBSD.
(line_comment_chars): set to '/' if TE_FreeBSD.
Index: tc-i386.c
===================================================================
RCS file: /cvs/src/src/gas/config/tc-i386.c,v
retrieving revision 1.41.2.1
diff -u -r1.41.2.1 tc-i386.c
--- tc-i386.c 2000/04/04 11:28:47 1.41.2.1
+++ tc-i386.c 2000/05/14 20:32:50
@@ -143,7 +143,7 @@
/* This array holds the chars that always start a comment. If the
pre-processor is disabled, these aren't very useful */
-#if defined (TE_I386AIX) || ((defined (OBJ_ELF) || defined (OBJ_MAYBE_ELF)) && ! defined (TE_LINUX))
+#if defined (TE_I386AIX) || ((defined (OBJ_ELF) || defined (OBJ_MAYBE_ELF)) && !defined (TE_LINUX) && !defined(TE_FreeBSD))
/* Putting '/' here makes it impossible to use the divide operator.
However, we need it for compatibility with SVR4 systems. */
const char comment_chars[] = "#/";
@@ -161,7 +161,7 @@
#NO_APP at the beginning of its output. */
/* Also note that comments started like this one will always work if
'/' isn't otherwise defined. */
-#if defined (TE_I386AIX) || ((defined (OBJ_ELF) || defined (OBJ_MAYBE_ELF)) && ! defined (TE_LINUX))
+#if defined (TE_I386AIX) || ((defined (OBJ_ELF) || defined (OBJ_MAYBE_ELF)) && !defined (TE_LINUX) && !defined(TE_FreeBSD))
const char line_comment_chars[] = "";
#else
const char line_comment_chars[] = "/";