forked from Imagelibrary/binutils-gdb
PR 32603 followup, remove %F from einfo
No uses of %F remain. * ldmisc.c (vfinfo): Remove %F handling.
This commit is contained in:
10
ld/ldmisc.c
10
ld/ldmisc.c
@@ -42,7 +42,6 @@
|
|||||||
%C clever filename:linenumber with function
|
%C clever filename:linenumber with function
|
||||||
%D like %C, but no function name
|
%D like %C, but no function name
|
||||||
%E current bfd error or errno
|
%E current bfd error or errno
|
||||||
%F error is fatal
|
|
||||||
%G like %D, but only function name
|
%G like %D, but only function name
|
||||||
%H like %C but in addition emit section+offset
|
%H like %C but in addition emit section+offset
|
||||||
%P print program name
|
%P print program name
|
||||||
@@ -70,7 +69,6 @@
|
|||||||
void
|
void
|
||||||
vfinfo (FILE *fp, const char *fmt, va_list ap, bool is_warning)
|
vfinfo (FILE *fp, const char *fmt, va_list ap, bool is_warning)
|
||||||
{
|
{
|
||||||
bool isfatal = false;
|
|
||||||
const char *scan;
|
const char *scan;
|
||||||
int arg_type;
|
int arg_type;
|
||||||
unsigned int arg_count = 0;
|
unsigned int arg_count = 0;
|
||||||
@@ -280,11 +278,6 @@ vfinfo (FILE *fp, const char *fmt, va_list ap, bool is_warning)
|
|||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case 'F':
|
|
||||||
/* Error is fatal. */
|
|
||||||
isfatal = true;
|
|
||||||
break;
|
|
||||||
|
|
||||||
case 'P':
|
case 'P':
|
||||||
/* Print program name. */
|
/* Print program name. */
|
||||||
fprintf (fp, "%s", 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)
|
if (is_warning && config.fatal_warnings)
|
||||||
config.make_executable = false;
|
config.make_executable = false;
|
||||||
|
|
||||||
if (isfatal)
|
|
||||||
xexit (1);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Format info message and print on stdout. */
|
/* Format info message and print on stdout. */
|
||||||
|
|||||||
Reference in New Issue
Block a user