[binutils-gdb] PR 32603 followup, remove %F from einfo
Alan Modra
amodra@sourceware.org
Tue Apr 22 23:17:53 GMT 2025
https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=6d74c1f313df5e82bb9ef0940a477cba5d76db00
commit 6d74c1f313df5e82bb9ef0940a477cba5d76db00
Author: Alan Modra <amodra@gmail.com>
Date: Tue Apr 22 12:36:47 2025 +0930
PR 32603 followup, remove %F from einfo
No uses of %F remain.
* ldmisc.c (vfinfo): Remove %F handling.
Diff:
---
ld/ldmisc.c | 10 ----------
1 file changed, 10 deletions(-)
diff --git a/ld/ldmisc.c b/ld/ldmisc.c
index 9ee0781b4de..3f305fa457e 100644
--- a/ld/ldmisc.c
+++ b/ld/ldmisc.c
@@ -42,7 +42,6 @@
%C clever filename:linenumber with function
%D like %C, but no function name
%E current bfd error or errno
- %F error is fatal
%G like %D, but only function name
%H like %C but in addition emit section+offset
%P print program name
@@ -70,7 +69,6 @@
void
vfinfo (FILE *fp, const char *fmt, va_list ap, bool is_warning)
{
- bool isfatal = false;
const char *scan;
int arg_type;
unsigned int arg_count = 0;
@@ -280,11 +278,6 @@ vfinfo (FILE *fp, const char *fmt, va_list ap, bool is_warning)
}
break;
- case 'F':
- /* Error is fatal. */
- isfatal = true;
- break;
-
case 'P':
/* Print program name. */
fprintf (fp, "%s", program_name);
@@ -586,9 +579,6 @@ vfinfo (FILE *fp, const char *fmt, va_list ap, bool is_warning)
if (is_warning && config.fatal_warnings)
config.make_executable = false;
-
- if (isfatal)
- xexit (1);
}
/* Format info message and print on stdout. */
More information about the Binutils-cvs
mailing list