From: Alan Modra <amodra@gmail.com>
To: binutils@sourceware.org
Subject: gas/write.c use better types
Date: Thu, 6 Apr 2023 09:54:37 +0930 [thread overview]
Message-ID: <ZC4RRVFBYw/0n5Le@squeak.grove.modra.org> (raw)
A tiny tidy.
* write.c (frags_chained): Make it a bool.
(n_fixups): Make it unsigned.
diff --git a/gas/write.c b/gas/write.c
index 8273b7a42f1..4ce6f997caa 100644
--- a/gas/write.c
+++ b/gas/write.c
@@ -124,9 +124,9 @@ void print_fixup (fixS *);
chained these all together into a segment, any relocs we add after
that must be attached to a segment. This will include relocs added
in md_estimate_size_for_relax, for example. */
-static int frags_chained = 0;
+static bool frags_chained = false;
-static int n_fixups;
+static unsigned int n_fixups;
#define RELOC_ENUM enum bfd_reloc_code_real
@@ -416,7 +416,7 @@ chain_frchains_together (bfd *abfd ATTRIBUTE_UNUSED,
/* Now that we've chained the frags together, we must add new fixups
to the segment, not to the frag chain. */
- frags_chained = 1;
+ frags_chained = true;
}
static void
--
Alan Modra
Australia Development Lab, IBM
reply other threads:[~2023-04-06 0:24 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=ZC4RRVFBYw/0n5Le@squeak.grove.modra.org \
--to=amodra@gmail.com \
--cc=binutils@sourceware.org \
/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).