aboutsummaryrefslogtreecommitdiff
path: root/gas/read.c
diff options
context:
space:
mode:
authorDavid Edelsohn <dje.gcc@gmail.com>1994-01-12 01:04:10 +0000
committerDavid Edelsohn <dje.gcc@gmail.com>1994-01-12 01:04:10 +0000
commit44ce2f32210928e184b3a3a81d701533fc33ced6 (patch)
tree4304ec687f938cf65cb821f7516b86206caacc64 /gas/read.c
parentf34e27a18a95a588c23ede4b727eac9a9dc940f0 (diff)
downloadgdb-44ce2f32210928e184b3a3a81d701533fc33ced6.zip
gdb-44ce2f32210928e184b3a3a81d701533fc33ced6.tar.gz
gdb-44ce2f32210928e184b3a3a81d701533fc33ced6.tar.bz2
* expr.c (integer_constant): Fix computation of too_many_digits. Variable
digit_2 renamed to start. Fix check for whether number will fit in 32 bits. * read.c (emit_expr): Use valueT instead of long.
Diffstat (limited to 'gas/read.c')
-rw-r--r--gas/read.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/gas/read.c b/gas/read.c
index 6ccf40c..42bc75d 100644
--- a/gas/read.c
+++ b/gas/read.c
@@ -78,7 +78,7 @@ const char lex_type[256] =
0, 0, 0, 0, 3, 0, 0, 0, 0, 0, 0, 0, 0, 0, 3, 0, /* _!"#$%&'()*+,-./ */
1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, /* 0123456789:;<=>? */
LEX_AT, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, /* @ABCDEFGHIJKLMNO */
- 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 0, 0, 0, 3, /* PQRSTUVWXYZ[\]^_ */
+ 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 0, 0, 0, 0, 3, /* PQRSTUVWXYZ[\]^_ */
0, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, /* `abcdefghijklmno */
3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 0, 0, 0, 0, /* pqrstuvwxyz{|}~. */
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
@@ -1702,14 +1702,14 @@ emit_expr (exp, nbytes)
if (op == O_constant)
{
- register long get;
- register long use;
- register long mask;
- register long unmask;
+ register valueT get;
+ register valueT use;
+ register valueT mask;
+ register valueT unmask;
/* JF << of >= number of bits in the object is undefined. In
particular SPARC (Sun 4) has problems */
- if (nbytes >= sizeof (long))
+ if (nbytes >= sizeof (valueT))
mask = 0;
else
mask = ~0 << (BITS_PER_CHAR * nbytes); /* Don't store these bits. */
@@ -1728,7 +1728,7 @@ emit_expr (exp, nbytes)
as_warn ("Value 0x%lx truncated to 0x%lx.", get, use);
}
/* put bytes in right order. */
- md_number_to_chars (p, (valueT) use, (int) nbytes);
+ md_number_to_chars (p, use, (int) nbytes);
}
else if (op == O_big)
{