aboutsummaryrefslogtreecommitdiff
path: root/contrib/binutils
diff options
context:
space:
mode:
authorEd Maste <emaste@FreeBSD.org>2020-05-18 16:07:14 +0000
committerEd Maste <emaste@FreeBSD.org>2020-05-18 16:07:14 +0000
commiteb95dbfa4fa0c7c2a3419812d5c18a2740364256 (patch)
tree25c918fed0b058d4886c314e9f4e3e0d0b8405a6 /contrib/binutils
parentbc71118183ddd2493c6c8ce4511da3a2e8368804 (diff)
downloadsrc-eb95dbfa4fa0c7c2a3419812d5c18a2740364256.tar.gz
src-eb95dbfa4fa0c7c2a3419812d5c18a2740364256.zip
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
Notes
Notes: svn path=/head/; revision=361218
Diffstat (limited to 'contrib/binutils')
-rw-r--r--contrib/binutils/gas/as.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/contrib/binutils/gas/as.c b/contrib/binutils/gas/as.c
index feaa7fb95136..abd8a4eb68cb 100644
--- a/contrib/binutils/gas/as.c
+++ b/contrib/binutils/gas/as.c
@@ -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 ();