From: Alan Modra <alan@linuxcare.com.au>
To: binutils@sourceware.cygnus.com
Subject: yet more warning fixes
Date: Mon, 10 Jul 2000 08:15:00 -0000 [thread overview]
Message-ID: <Pine.LNX.4.21.0007110111580.12784-100000@front.linuxcare.com.au> (raw)
Warning fixes and a tweak in tc-hppa.c, the better to check branch
offsets. Committed.
Alan Modra
--
Linuxcare. Support for the Revolution.
gas/ChangeLog
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.
Index: gas/hash.c
===================================================================
RCS file: /cvs/src/src/gas/hash.c,v
retrieving revision 1.3
diff -u -p -r1.3 hash.c
--- hash.c 1999/07/11 20:19:56 1.3
+++ hash.c 2000/07/10 13:25:06
@@ -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;
Index: gas/read.h
===================================================================
RCS file: /cvs/src/src/gas/read.h,v
retrieving revision 1.5
diff -u -p -r1.5 read.h
--- read.h 2000/05/21 18:26:10 1.5
+++ read.h 2000/07/10 13:25:06
@@ -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));
Index: gas/config/tc-hppa.c
===================================================================
RCS file: /cvs/src/src/gas/config/tc-hppa.c,v
retrieving revision 1.58
diff -u -p -r1.58 tc-hppa.c
--- tc-hppa.c 2000/07/09 08:16:21 1.58
+++ tc-hppa.c 2000/07/10 13:25:21
@@ -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))
next reply other threads:[~2000-07-10 8:15 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2000-07-10 8:15 Alan Modra [this message]
2001-08-17 2:44 Yet " Alan Modra
2005-02-23 15:26 yet " Alan Modra
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=Pine.LNX.4.21.0007110111580.12784-100000@front.linuxcare.com.au \
--to=alan@linuxcare.com.au \
--cc=binutils@sourceware.cygnus.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).