This is the mail archive of the
binutils@sourceware.cygnus.com
mailing list for the binutils project.
Comment chars for the FreeBSD case
- To: binutils at sourceware dot cygnus dot com
- Subject: Comment chars for the FreeBSD case
- From: "David O'Brien" <obrien at NUXI dot com>
- Date: Tue, 25 Apr 2000 15:05:12 -0700
- Organization: The NUXI BSD group
- References: <200004250156.SAA29400@rtl.cygnus.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.46
diff -u -r1.46 tc-i386.c
--- tc-i386.c 2000/04/25 08:55:01 1.46
+++ tc-i386.c 2000/04/25 21:59:13
@@ -144,7 +144,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[] = "#/";
@@ -162,7 +162,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[] = "/";