aboutsummaryrefslogtreecommitdiff
path: root/gas
diff options
context:
space:
mode:
authorAlan Modra <amodra@gmail.com>2000-06-09 00:00:04 +0000
committerAlan Modra <amodra@gmail.com>2000-06-09 00:00:04 +0000
commit63a0b638d4552518d5657938ae13032f95b1c7c3 (patch)
treece40bbc1e6410df6c6f91fb84acd87beefeb7257 /gas
parent9bab93495ab3f23df75d48b1a447361731faac5e (diff)
downloadgdb-63a0b638d4552518d5657938ae13032f95b1c7c3.zip
gdb-63a0b638d4552518d5657938ae13032f95b1c7c3.tar.gz
gdb-63a0b638d4552518d5657938ae13032f95b1c7c3.tar.bz2
Don't treat `;' as a line separator by default.
Explicitly mention `;' in line_separator_chars in each backend.
Diffstat (limited to 'gas')
-rw-r--r--gas/ChangeLog27
-rw-r--r--gas/app.c1
-rw-r--r--gas/config/tc-arm.c4
-rw-r--r--gas/config/tc-h8300.c6
-rw-r--r--gas/config/tc-i386.c2
-rw-r--r--gas/config/tc-i860.c2
-rw-r--r--gas/config/tc-i960.c4
-rw-r--r--gas/config/tc-m68k.c2
-rw-r--r--gas/config/tc-mips.c2
-rw-r--r--gas/config/tc-ns32k.c2
-rw-r--r--gas/config/tc-sparc.c2
-rw-r--r--gas/config/tc-vax.c2
-rw-r--r--gas/config/tc-z8k.c9
-rw-r--r--gas/doc/internals.texi2
-rw-r--r--gas/read.c4
15 files changed, 42 insertions, 29 deletions
diff --git a/gas/ChangeLog b/gas/ChangeLog
index c86531e..9d02b84 100644
--- a/gas/ChangeLog
+++ b/gas/ChangeLog
@@ -1,3 +1,30 @@
+2000-06-09 Alan Modra <alan@linuxcare.com.au>
+
+ * app.c (do_scrub_begin): Don't default lex[';'] as a line
+ separator.
+ * doc/internals.texi (line_separator_chars): Semicolon is no
+ longer a default. Mention null and newline as defaults.
+
+ * read.c (is_end_of_line): Remove ifdef TC_HPPA.
+
+ * config/tc-i386.h (line_separator_chars): Explicitly mention `;'
+ * config/tc-i860.h (line_separator_chars): Likewise.
+ * config/tc-h8300.c (line_separator_chars): Likewise.
+ * config/tc-i960.c (line_separator_chars): Likewise.
+ * config/tc-m68k.c (line_separator_chars): Likewise.
+ * config/tc-mips.c (line_separator_chars): Likewise.
+ * config/tc-ns32k.c (line_separator_chars): Likewise.
+ * config/tc-sparc.c (line_separator_chars): Likewise.
+ * config/tc-vax.c (line_separator_chars): Likewise.
+
+ * config/tc-h8300.c (comment_chars): Use string initialiser.
+ * config/tc-i960.c (line_comment_chars): Likewise.
+ * config/tc-z8k.c (comment_chars, line_comment_chars,
+ line_separator_chars): Likewise.
+
+ * config/tc-arm.c (line_separator_chars): Always use `;', not just
+ for TE_LINUX.
+
2000-06-08 Nick Clifton <nickc@cygnus.com>
* config/tc-arm.c (cons_fix_new_arm): Assign correct reloc value
diff --git a/gas/app.c b/gas/app.c
index 1b2243a..09c795c 100644
--- a/gas/app.c
+++ b/gas/app.c
@@ -101,7 +101,6 @@ do_scrub_begin (m68k_mri)
lex['\t'] = LEX_IS_WHITESPACE;
lex['\r'] = LEX_IS_WHITESPACE;
lex['\n'] = LEX_IS_NEWLINE;
- lex[';'] = LEX_IS_LINE_SEPARATOR;
lex[':'] = LEX_IS_COLON;
#ifdef TC_M68K
diff --git a/gas/config/tc-arm.c b/gas/config/tc-arm.c
index fb9edcc..7f7c7ea 100644
--- a/gas/config/tc-arm.c
+++ b/gas/config/tc-arm.c
@@ -115,11 +115,7 @@ CONST char comment_chars[] = "@";
/* Also note that comments like this one will always work. */
CONST char line_comment_chars[] = "#";
-#ifdef TE_LINUX
CONST char line_separator_chars[] = ";";
-#else
-CONST char line_separator_chars[] = "";
-#endif
/* Chars that can be used to separate mant
from exp in floating point numbers. */
diff --git a/gas/config/tc-h8300.c b/gas/config/tc-h8300.c
index 2b63b00..97a2695 100644
--- a/gas/config/tc-h8300.c
+++ b/gas/config/tc-h8300.c
@@ -34,11 +34,9 @@
#include "opcode/h8300.h"
#include <ctype.h>
-const char comment_chars[] =
-{';', 0};
-const char line_separator_chars[] =
-{0};
+const char comment_chars[] = ";";
const char line_comment_chars[] = "#";
+const char line_separator_chars[] = "";
/* This table describes all the machine specific pseudo-ops the assembler
has to support. The fields are:
diff --git a/gas/config/tc-i386.c b/gas/config/tc-i386.c
index 8497f05..395b50f 100644
--- a/gas/config/tc-i386.c
+++ b/gas/config/tc-i386.c
@@ -169,7 +169,7 @@ const char line_comment_chars[] = "";
const char line_comment_chars[] = "/";
#endif
-const char line_separator_chars[] = "";
+const char line_separator_chars[] = ";";
/* Chars that can be used to separate mant from exp in floating point nums */
const char EXP_CHARS[] = "eE";
diff --git a/gas/config/tc-i860.c b/gas/config/tc-i860.c
index 3317282..e38e6b7 100644
--- a/gas/config/tc-i860.c
+++ b/gas/config/tc-i860.c
@@ -66,7 +66,7 @@ const char comment_chars[] = "!/"; /* JF removed '|' from comment_chars */
/* Also note that comments like this one will always work. */
const char line_comment_chars[] = "#/";
-const char line_separator_chars[] = "";
+const char line_separator_chars[] = ";";
/* Chars that can be used to separate mant from exp in floating point nums */
const char EXP_CHARS[] = "eE";
diff --git a/gas/config/tc-i960.c b/gas/config/tc-i960.c
index d8c15c0..8c5be7b 100644
--- a/gas/config/tc-i960.c
+++ b/gas/config/tc-i960.c
@@ -180,9 +180,9 @@ const char comment_chars[] = "#";
/* Also note that comments started like this one will always work. */
-const char line_comment_chars[1];
+const char line_comment_chars[] = "";
-const char line_separator_chars[1];
+const char line_separator_chars[] = ";";
/* Chars that can be used to separate mant from exp in floating point nums */
const char EXP_CHARS[] = "eE";
diff --git a/gas/config/tc-m68k.c b/gas/config/tc-m68k.c
index b8250ec..da78310 100644
--- a/gas/config/tc-m68k.c
+++ b/gas/config/tc-m68k.c
@@ -50,7 +50,7 @@ const char *m68k_comment_chars = "|";
/* Also note that comments like this one will always work. */
const char line_comment_chars[] = "#*";
-const char line_separator_chars[] = "";
+const char line_separator_chars[] = ";";
/* Chars that can be used to separate mant from exp in floating point nums */
CONST char EXP_CHARS[] = "eE";
diff --git a/gas/config/tc-mips.c b/gas/config/tc-mips.c
index f93e372..cdfe536 100644
--- a/gas/config/tc-mips.c
+++ b/gas/config/tc-mips.c
@@ -357,7 +357,7 @@ const char comment_chars[] = "#";
const char line_comment_chars[] = "#";
/* This array holds machine specific line separator characters. */
-const char line_separator_chars[] = "";
+const char line_separator_chars[] = ";";
/* Chars that can be used to separate mant from exp in floating point nums */
const char EXP_CHARS[] = "eE";
diff --git a/gas/config/tc-ns32k.c b/gas/config/tc-ns32k.c
index 59f1467..c81a387 100644
--- a/gas/config/tc-ns32k.c
+++ b/gas/config/tc-ns32k.c
@@ -62,7 +62,7 @@
const char comment_chars[] = "#";
const char line_comment_chars[] = LINE_COMMENT_CHARS;
-const char line_separator_chars[] = "";
+const char line_separator_chars[] = ";";
#if !defined(ABSOLUTE_PREFIX) && !defined(IMMEDIATE_PREFIX)
#define ABSOLUTE_PREFIX '@' /* One or the other MUST be defined */
#endif
diff --git a/gas/config/tc-sparc.c b/gas/config/tc-sparc.c
index bd086d2..2ac855e 100644
--- a/gas/config/tc-sparc.c
+++ b/gas/config/tc-sparc.c
@@ -175,7 +175,7 @@ const char comment_chars[] = "!"; /* JF removed '|' from comment_chars */
work if '/' isn't otherwise defined. */
const char line_comment_chars[] = "#";
-const char line_separator_chars[] = "";
+const char line_separator_chars[] = ";";
/* Chars that can be used to separate mant from exp in floating point nums */
const char EXP_CHARS[] = "eE";
diff --git a/gas/config/tc-vax.c b/gas/config/tc-vax.c
index f425ccc..314f9bc 100644
--- a/gas/config/tc-vax.c
+++ b/gas/config/tc-vax.c
@@ -32,7 +32,7 @@ const char comment_chars[] = "#";
/* Note that for the VAX the are the same as comment_chars above. */
const char line_comment_chars[] = "#";
-const char line_separator_chars[] = "";
+const char line_separator_chars[] = ";";
/* Chars that can be used to separate mant from exp in floating point nums */
const char EXP_CHARS[] = "eE";
diff --git a/gas/config/tc-z8k.c b/gas/config/tc-z8k.c
index f89b14b..323cbcf 100644
--- a/gas/config/tc-z8k.c
+++ b/gas/config/tc-z8k.c
@@ -31,12 +31,9 @@
#include "bfd.h"
#include <ctype.h>
-const char comment_chars[] =
-{'!', 0};
-const char line_separator_chars[] =
-{';', 0};
-const char line_comment_chars[] =
-{'#', 0};
+const char comment_chars[] = "!";
+const char line_comment_chars[] = "#";
+const char line_separator_chars[] = ";";
extern int machine;
extern int coff_flags;
diff --git a/gas/doc/internals.texi b/gas/doc/internals.texi
index f8374f9..2806fc6 100644
--- a/gas/doc/internals.texi
+++ b/gas/doc/internals.texi
@@ -912,7 +912,7 @@ comment when they appear at the start of a line.
@item line_separator_chars
@cindex line_separator_chars
This is a null terminated @code{const char} array of characters which separate
-lines (semicolon and newline are such characters by default, and need not be
+lines (null and newline are such characters by default, and need not be
listed in this array). Note that line_separator_chars do not separate lines
if found in a comment, such as after a character in line_comment_chars or
comment_chars.
diff --git a/gas/read.c b/gas/read.c
index 7d6f19a..90c43dd 100644
--- a/gas/read.c
+++ b/gas/read.c
@@ -155,11 +155,7 @@ char is_end_of_line[256] =
#endif
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, /* */
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, /* _!"#$%&'()*+,-./ */
-#ifdef TC_HPPA
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, /* 0123456789:;<=>? */
-#else
- 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, /* 0123456789:;<=>? */
-#endif
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, /* */
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, /* */
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, /* */