aboutsummaryrefslogtreecommitdiff
path: root/gas/messages.c
diff options
context:
space:
mode:
authorJan Beulich <jbeulich@suse.com>2021-04-19 13:28:35 +0200
committerJan Beulich <jbeulich@suse.com>2021-04-19 13:28:35 +0200
commit9a8041fd94b7b5c12cb802f87648cce954d18d2a (patch)
tree0c3070b7a9525345185ba17ef4ff6efba4be9978 /gas/messages.c
parent4dee4f3ea143a8910de487a810e972152154292d (diff)
downloadgdb-9a8041fd94b7b5c12cb802f87648cce954d18d2a.zip
gdb-9a8041fd94b7b5c12cb802f87648cce954d18d2a.tar.gz
gdb-9a8041fd94b7b5c12cb802f87648cce954d18d2a.tar.bz2
gas: drop sprint_value()
Its (documented) behavior is unhelpful in particular in 64-bit build environments: While printing large 32-bit numbers in decimal already isn't very meaningful to most people, this even more so goes for yet larger 64-bit numbers. bfd_sprintf_vma() still tries to limit the number of digits printed (without depending on a build system property), but uniformly produces hex output.
Diffstat (limited to 'gas/messages.c')
-rw-r--r--gas/messages.c16
1 files changed, 0 insertions, 16 deletions
diff --git a/gas/messages.c b/gas/messages.c
index 0728146..62f9312 100644
--- a/gas/messages.c
+++ b/gas/messages.c
@@ -356,22 +356,6 @@ signal_init (void)
/* Support routines. */
-void
-sprint_value (char *buf, valueT val)
-{
- if (sizeof (val) <= sizeof (long))
- {
- sprintf (buf, "%ld", (long) val);
- return;
- }
- if (sizeof (val) <= sizeof (bfd_vma))
- {
- sprintf_vma (buf, val);
- return;
- }
- abort ();
-}
-
#define HEX_MAX_THRESHOLD 1024
#define HEX_MIN_THRESHOLD -(HEX_MAX_THRESHOLD)