summaryrefslogtreecommitdiffstats
path: root/contrib
diff options
context:
space:
mode:
authorjdp <jdp@FreeBSD.org>1998-03-01 23:22:00 +0000
committerjdp <jdp@FreeBSD.org>1998-03-01 23:22:00 +0000
commit96d45f0ff66279ad8b28898b8e1d3e168cecb66a (patch)
treee7bdea4b21a42db7e1304bd40020e890a3edfbd0 /contrib
parentcb1750410548222397c899f29402d10fe469f97f (diff)
downloadFreeBSD-src-96d45f0ff66279ad8b28898b8e1d3e168cecb66a.zip
FreeBSD-src-96d45f0ff66279ad8b28898b8e1d3e168cecb66a.tar.gz
Don't use "/" as a comment starter. In some FreeBSD sources, "/"
means divide (duh).
Diffstat (limited to 'contrib')
-rw-r--r--contrib/binutils/gas/config/tc-i386.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/contrib/binutils/gas/config/tc-i386.c b/contrib/binutils/gas/config/tc-i386.c
index 3981a2d..5189c9d3 100644
--- a/contrib/binutils/gas/config/tc-i386.c
+++ b/contrib/binutils/gas/config/tc-i386.c
@@ -116,7 +116,7 @@ typedef struct _i386_insn i386_insn;
/* 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)
+#if defined (TE_I386AIX) || (defined (OBJ_ELF) || defined (OBJ_MAYBE_ELF)) && !defined(TE_FreeBSD)
const char comment_chars[] = "#/";
#else
const char comment_chars[] = "#";
@@ -130,7 +130,7 @@ const char comment_chars[] = "#";
#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)
+#if defined (TE_I386AIX) || (defined (OBJ_ELF) || defined (OBJ_MAYBE_ELF)) && !defined(TE_FreeBSD)
const char line_comment_chars[] = "";
#else
const char line_comment_chars[] = "/";
OpenPOWER on IntegriCloud