svn commit: r361218 - head/contrib/binutils/gas
Ed Maste
emaste at FreeBSD.org
Mon May 18 16:07:15 UTC 2020
Author: emaste
Date: Mon May 18 16:07:14 2020
New Revision: 361218
URL: https://svnweb.freebsd.org/changeset/base/361218
Log:
GNU as: move deprecation message after option parsing
Some cmake test parses the output of the first line of as --version, and
emits an error if it does not contain some expected strings:
Checking whether the ASM compiler is GNU using "--version" did not match
"(GNU assembler)|(GCC)|(Free Software Foundation)"
Emit the deprecation message later, after parsing argv and thus --version.
PR: 246540
Reported by: dch
Sponsored by: The FreeBSD Foundation
Modified:
head/contrib/binutils/gas/as.c
Modified: head/contrib/binutils/gas/as.c
==============================================================================
--- head/contrib/binutils/gas/as.c Mon May 18 15:59:17 2020 (r361217)
+++ head/contrib/binutils/gas/as.c Mon May 18 16:07:14 2020 (r361218)
@@ -1089,7 +1089,6 @@ main (int argc, char ** argv)
expandargv (&argc, &argv);
START_PROGRESS (myname, 0);
- fprintf (stderr, _("warning: as 2.17.50 is deprecated in FreeBSD and will be removed\n"));
#ifndef OBJ_DEFAULT_OUTPUT_FILE_NAME
#define OBJ_DEFAULT_OUTPUT_FILE_NAME "a.out"
@@ -1109,6 +1108,7 @@ main (int argc, char ** argv)
/* Call parse_args before any of the init/begin functions
so that switches like --hash-size can be honored. */
parse_args (&argc, &argv);
+ fprintf (stderr, _("warning: GNU as %s is deprecated and will be removed\n"), BFD_VERSION_STRING);
symbol_begin ();
frag_init ();
subsegs_begin ();
More information about the svn-src-all
mailing list