Date: Mon, 18 May 2020 16:07:14 +0000 (UTC) From: Ed Maste <emaste@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r361218 - head/contrib/binutils/gas Message-ID: <202005181607.04IG7EcM010713@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
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 ();
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202005181607.04IG7EcM010713>