aboutsummaryrefslogtreecommitdiff
path: root/gas/config/tc-a29k.c
diff options
context:
space:
mode:
authorIan Lance Taylor <ian@airs.com>1992-11-10 18:17:00 +0000
committerIan Lance Taylor <ian@airs.com>1992-11-10 18:17:00 +0000
commit587c4264e020987b332577135abfefdbb3dee699 (patch)
tree876a218a78633b5b4be594612571317a11dba476 /gas/config/tc-a29k.c
parent9ee6289b478ed3f18bf30821ccc8a8d43c54b467 (diff)
downloadgdb-587c4264e020987b332577135abfefdbb3dee699.zip
gdb-587c4264e020987b332577135abfefdbb3dee699.tar.gz
gdb-587c4264e020987b332577135abfefdbb3dee699.tar.bz2
These changes clean things up a bit, and improve Solaris cross
support when using /opt/SUNWspro/SC2.0/acc. Tue Nov 10 09:50:25 1992 Ian Lance Taylor (ian@cygnus.com) * obj-coffbfd.c (fill_section): set STYP_NOLOAD bit for .bss section. * atof-ieee.c, atof-ns32k.c, tc-*.c: made EXP_CHARS, FLT_CHARS, comment_chars, line_comment_chars and line_seperator_chars consistently const, and always initialized them. Included read.h.
Diffstat (limited to 'gas/config/tc-a29k.c')
-rw-r--r--gas/config/tc-a29k.c11
1 files changed, 6 insertions, 5 deletions
diff --git a/gas/config/tc-a29k.c b/gas/config/tc-a29k.c
index 5d7c046..a04cea1 100644
--- a/gas/config/tc-a29k.c
+++ b/gas/config/tc-a29k.c
@@ -22,6 +22,7 @@
much bloody rewriting required before. There still probably is. */
#include "as.h"
+#include "read.h"
#include "opcode/a29k.h"
@@ -102,7 +103,7 @@ int md_reloc_size = 12; /* Not bfdized*/
/* This array holds the chars that always start a comment. If the
pre-processor is disabled, these aren't very useful */
-char comment_chars[] = ";";
+const char comment_chars[] = ";";
/* This array holds the chars that only start a comment at the beginning of
a line. If the line seems to have the form '# 123 filename'
@@ -111,19 +112,19 @@ char comment_chars[] = ";";
first line of the input file. This is because the compiler outputs
#NO_APP at the beginning of its output. */
/* Also note that comments like this one will always work */
-char line_comment_chars[] = "#";
+const char line_comment_chars[] = "#";
/* We needed an unused char for line separation to work around the
lack of macros, using sed and such. */
-char line_separator_chars[] = "@";
+const char line_separator_chars[] = "@";
/* Chars that can be used to separate mant from exp in floating point nums */
-char EXP_CHARS[] = "eE";
+const char EXP_CHARS[] = "eE";
/* Chars that mean this number is a floating point constant */
/* As in 0f12.456 */
/* or 0d1.2345e12 */
-char FLT_CHARS[] = "rRsSfFdDxXpP";
+const char FLT_CHARS[] = "rRsSfFdDxXpP";
/* Also be aware that MAXIMUM_NUMBER_OF_CHARS_FOR_FLOAT may have to be
changed in read.c . Ideally it shouldn't have to know about it at all,