aboutsummaryrefslogtreecommitdiff
path: root/gas
diff options
context:
space:
mode:
authorKen Raeburn <raeburn@cygnus>1995-01-19 21:04:08 +0000
committerKen Raeburn <raeburn@cygnus>1995-01-19 21:04:08 +0000
commit11618ce8f284e45b1eea6a60e4f1a662d971c5f6 (patch)
treef130d0322d1543cfe736fce68cf32155738adb83 /gas
parent50c551d06fd180309140efdd9d50954abcc2da99 (diff)
downloadgdb-11618ce8f284e45b1eea6a60e4f1a662d971c5f6.zip
gdb-11618ce8f284e45b1eea6a60e4f1a662d971c5f6.tar.gz
gdb-11618ce8f284e45b1eea6a60e4f1a662d971c5f6.tar.bz2
gcc lint
Diffstat (limited to 'gas')
-rw-r--r--gas/ChangeLog20
-rw-r--r--gas/gasp.c5
-rw-r--r--gas/hash.c29
3 files changed, 24 insertions, 30 deletions
diff --git a/gas/ChangeLog b/gas/ChangeLog
index 66327c6..d1e0ac5 100644
--- a/gas/ChangeLog
+++ b/gas/ChangeLog
@@ -1,5 +1,25 @@
Thu Jan 19 14:49:47 1995 Ken Raeburn <raeburn@cujo.cygnus.com>
+ * config/tc-alpha.c (alpha_ip): Initialize local variables to keep
+ gcc quiet.
+ (gpdisp_hi16_howto): Don't use "const" with reloc_howto_type.
+ (in_range_signed): Add parens around subtraction inside shift.
+ * gasp.c (do_data): Initialize local variable "opname".
+ (istrue): Provide a default case to set "res" and keep "gcc -Wall"
+ quiet.
+ * write.c (write_contents): Deleted unused variable.
+ (print_symbol_value_1): Declare.
+ * hash.c (hash_ask): Delete disabled non-strcmp version of the
+ code, and automatic variables used only in those sections.
+ * write.c (chain_frchains_together_1): Only define local variable
+ "prev_fix" if BFD_ASSEMBLER.
+ * flonum-konst.c (dummy1): Return void.
+ * config/tc-vax.c (md_assemble): Remove two comparisons of
+ unsigned numbers versus zero.
+
+ * config/tc-alpha.c, config/alpha-opcode.h: Revert 2 June changes.
+ Turns out we never got the assignment done after all.
+
Cleanup of VAX and VMS code, from Pat Rankin:
* config/obj-vms.c: Changed exported function names to lower case.
(Changed call sites in write.c.) Declare VMS system function
diff --git a/gas/gasp.c b/gas/gasp.c
index be7260c..3d120a4 100644
--- a/gas/gasp.c
+++ b/gas/gasp.c
@@ -1494,7 +1494,7 @@ do_data (idx, in, size)
int size;
{
int opsize = 4;
- char *opname;
+ char *opname = ".yikes!";
sb acc;
sb_new (&acc);
@@ -2351,6 +2351,9 @@ istrue (idx, in)
idx = exp_get_abs ("Conditional operator must have absolute operands.\n", idx, in, &valb);
switch (cond)
{
+ default:
+ res = 42;
+ break;
case EQ:
res = vala == valb;
break;
diff --git a/gas/hash.c b/gas/hash.c
index 2d2190c..e8894f8 100644
--- a/gas/hash.c
+++ b/gas/hash.c
@@ -678,9 +678,7 @@ hash_ask (handle, string, access)
const char *string;
int access; /* access type */
{
- const char *string1; /* JF avoid strcmp calls */
const char *s;
- int c;
struct hash_entry *slot;
int collision; /* count collisions */
@@ -692,22 +690,8 @@ hash_ask (handle, string, access)
hash_found = FALSE;
while (((s = slot->hash_string) != NULL) && s != DELETED)
{
-#if 1
if (string == s || !strcmp (string, s))
hash_found = TRUE;
-#else
- for (string1 = string;;)
- {
- if ((c = *s++) == 0)
- {
- if (!*string1)
- hash_found = TRUE;
- break;
- }
- if (*string1++ != c)
- break;
- }
-#endif
if (hash_found)
break;
collision++;
@@ -726,21 +710,8 @@ hash_ask (handle, string, access)
slot = handle->hash_where;/* now look again */
while (((s = slot->hash_string) != NULL) && s != DELETED)
{
-#if 0
- for (string1 = string; *s; string1++, s++)
- {
- if (*string1 != *s)
- break;
- }
- if (*s == *string1)
- {
- hash_found = TRUE;
- break;
- }
-#else
if (string == s || !strcmp (string, s))
hash_found = TRUE;
-#endif
collision++;
slot++;
}