aboutsummaryrefslogtreecommitdiff
path: root/gas
diff options
context:
space:
mode:
authorAlan Modra <amodra@gmail.com>2000-07-10 15:15:01 +0000
committerAlan Modra <amodra@gmail.com>2000-07-10 15:15:01 +0000
commit46b85d42877315522123a8ee1a929b7d7e89bc86 (patch)
treedd282b2c93e930f7fafbd9957dbb1599c9cd7e4a /gas
parentcce41527ca1386c9658507424cee111869170997 (diff)
downloadgdb-46b85d42877315522123a8ee1a929b7d7e89bc86.zip
gdb-46b85d42877315522123a8ee1a929b7d7e89bc86.tar.gz
gdb-46b85d42877315522123a8ee1a929b7d7e89bc86.tar.bz2
More warning fixes, and a tweak in tc-hppa.c to check constant
branch offsets a little more thoroughly.
Diffstat (limited to 'gas')
-rw-r--r--gas/ChangeLog15
-rw-r--r--gas/config/tc-hppa.c4
-rw-r--r--gas/hash.c6
-rw-r--r--gas/read.h2
4 files changed, 21 insertions, 6 deletions
diff --git a/gas/ChangeLog b/gas/ChangeLog
index 7db6673..aeec7a0 100644
--- a/gas/ChangeLog
+++ b/gas/ChangeLog
@@ -1,3 +1,16 @@
+2000-07-10 Alan Modra <alan@linuxcare.com.au>
+
+ * config/tc-hppa.c (md_apply_fix): Check fmt 12 and 22 pc-rel
+ displacements correctly.
+
+ * read.h (s_abort): Add ATTRIBUTE_NORETURN.
+
+2000-07-10 Ryan Bradetich <rbradetich@uswest.net>
+
+ * hash.c (hash_insert): Add cast to obstruct_alloc to fix
+ warning.
+ (hash_jam): Ditto.
+
2000-07-09 Alan Modra <alan@linuxcare.com.au>
From David Huggins-Daines <dhd@linuxcare.com>
@@ -437,7 +450,7 @@ Tue Jun 13 20:58:28 2000 Catherine Moore <clm@redhat.com>
Wed Jun 7 22:44:14 2000 Denis Chertykov <denisc@overta.ru>
- * config/tc-avr.c (avr_operand): fix the fomratting of the comment.
+ * config/tc-avr.c (avr_operand): fix the formatting of the comment.
Wed Jun 7 21:26:15 2000 Denis Chertykov <denisc@overta.ru>
diff --git a/gas/config/tc-hppa.c b/gas/config/tc-hppa.c
index 6506ec4..313b229 100644
--- a/gas/config/tc-hppa.c
+++ b/gas/config/tc-hppa.c
@@ -4475,7 +4475,9 @@ md_apply_fix (fixP, valp)
&& fixP->fx_pcrel
&& !arg_reloc_stub_needed (symbol_arg_reloc_info (fixP->fx_addsy),
hppa_fixP->fx_arg_reloc)
- && (*valp + 262144) < 524288
+ && ((*valp + 8192) < 16384
+ || (fmt == 17 && (*valp + 262144) < 524288)
+ || (fmt == 22 && (*valp + 8388608) < 16777216))
&& S_GET_SEGMENT (fixP->fx_addsy) == hppa_fixP->segment
&& !(fixP->fx_subsy
&& S_GET_SEGMENT (fixP->fx_subsy) != hppa_fixP->segment))
diff --git a/gas/hash.c b/gas/hash.c
index 0f129fb..14ff25e 100644
--- a/gas/hash.c
+++ b/gas/hash.c
@@ -1,5 +1,5 @@
/* hash.c -- gas hash table code
- Copyright (C) 1987, 90, 91, 92, 93, 94, 95, 96, 98, 1999
+ Copyright (C) 1987, 90, 91, 92, 93, 94, 95, 96, 98, 99, 2000
Free Software Foundation, Inc.
This file is part of GAS, the GNU Assembler.
@@ -222,7 +222,7 @@ hash_insert (table, key, value)
++table->insertions;
#endif
- p = obstack_alloc (&table->memory, sizeof *p);
+ p = (struct hash_entry *) obstack_alloc (&table->memory, sizeof(*p));
p->string = key;
p->hash = hash;
p->data = value;
@@ -262,7 +262,7 @@ hash_jam (table, key, value)
++table->insertions;
#endif
- p = obstack_alloc (&table->memory, sizeof *p);
+ p = (struct hash_entry *) obstack_alloc (&table->memory, sizeof(*p));
p->string = key;
p->hash = hash;
p->data = value;
diff --git a/gas/read.h b/gas/read.h
index e21d605..da3c7d3 100644
--- a/gas/read.h
+++ b/gas/read.h
@@ -122,7 +122,7 @@ extern void end_repeat PARAMS((int));
extern void generate_lineno_debug PARAMS ((void));
-extern void s_abort PARAMS ((int));
+extern void s_abort PARAMS ((int)) ATTRIBUTE_NORETURN;
extern void s_align_bytes PARAMS ((int arg));
extern void s_align_ptwo PARAMS ((int));
extern void s_app_file PARAMS ((int));