aboutsummaryrefslogtreecommitdiff
path: root/gas/config
diff options
context:
space:
mode:
authorIan Lance Taylor <ian@airs.com>1992-10-14 20:20:03 +0000
committerIan Lance Taylor <ian@airs.com>1992-10-14 20:20:03 +0000
commit4b77b129c68cb6a11020d36f9a5f3a06ada88f1e (patch)
treea45b6f2dd6ac49fd4b37133c0139cacd58b585b6 /gas/config
parent4928b97be93d051ff3b22f66464af36ac1173a20 (diff)
downloadgdb-4b77b129c68cb6a11020d36f9a5f3a06ada88f1e.zip
gdb-4b77b129c68cb6a11020d36f9a5f3a06ada88f1e.tar.gz
gdb-4b77b129c68cb6a11020d36f9a5f3a06ada88f1e.tar.bz2
Added #include <ctype.h> to several files. It's often more efficient,
and on some systems it's required.
Diffstat (limited to 'gas/config')
-rw-r--r--gas/config/tc-i386.c34
1 files changed, 34 insertions, 0 deletions
diff --git a/gas/config/tc-i386.c b/gas/config/tc-i386.c
index 3e0964a..b3201dc 100644
--- a/gas/config/tc-i386.c
+++ b/gas/config/tc-i386.c
@@ -24,6 +24,8 @@
Please help us make it better.
*/
+#include <ctype.h>
+
#include "as.h"
#include "obstack.h"
@@ -213,6 +215,7 @@ static int smallest_imm_type(long num);
static reg_entry *parse_register(char *reg_string);
static unsigned long mode_from_disp_size(unsigned long t);
static unsigned long opcode_suffix_to_type(unsigned long s);
+static void s_bss(void);
#else /* not __STDC__ */
@@ -226,6 +229,7 @@ static int smallest_imm_type();
static reg_entry *parse_register();
static unsigned long mode_from_disp_size();
static unsigned long opcode_suffix_to_type();
+static void s_bss();
#endif /* not __STDC__ */
@@ -239,6 +243,7 @@ void dummy ()
}
const pseudo_typeS md_pseudo_table[] = {
+ { "bss", s_bss, 0 },
{ "align", s_align_bytes, 0 },
{ "ffloat", float_cons, 'f' },
{ "dfloat", float_cons, 'd' },
@@ -2091,6 +2096,34 @@ long num;
: (Imm32)))));
} /* smallest_imm_type() */
+static void s_bss()
+{
+ register int temp;
+
+ temp = get_absolute_expression ();
+ subseg_new (SEG_BSS, (subsegT)temp);
+ demand_empty_rest_of_line();
+}
+
+
+#ifdef I386COFF
+
+short tc_coff_fix2rtype(fixP)
+fixS *fixP;
+{
+ return (fixP->fx_pcrel ?
+ (fixP->fx_size == 1 ? R_PCRBYTE :
+ fixP->fx_size == 2 ? R_PCRWORD :
+ R_PCRLONG):
+ (fixP->fx_size == 1 ? R_RELBYTE :
+ fixP->fx_size == 2 ? R_RELWORD :
+ R_RELLONG));
+
+
+}
+
+#endif
+
/*
* Local Variables:
* comment-column: 0
@@ -2098,3 +2131,4 @@ long num;
*/
/* end of tc-i386.c */
+