Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 1 Aug 2014 20:21:41 +0000 (UTC)
From:      Ian Lepore <ian@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r269393 - head/contrib/binutils/gas/config
Message-ID:  <201408012021.s71KLfaN091202@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: ian
Date: Fri Aug  1 20:21:41 2014
New Revision: 269393
URL: http://svnweb.freebsd.org/changeset/base/269393

Log:
  Fix an bug in as(1) parsing of arm -march=arch+ext options.  Compare the
  arch name to just the characters before the '+' in 'arch+ext'.

Modified:
  head/contrib/binutils/gas/config/tc-arm.c

Modified: head/contrib/binutils/gas/config/tc-arm.c
==============================================================================
--- head/contrib/binutils/gas/config/tc-arm.c	Fri Aug  1 19:32:20 2014	(r269392)
+++ head/contrib/binutils/gas/config/tc-arm.c	Fri Aug  1 20:21:41 2014	(r269393)
@@ -20337,7 +20337,7 @@ arm_parse_arch (char * str)
     }
 
   for (opt = arm_archs; opt->name != NULL; opt++)
-    if (streq (opt->name, str))
+    if (strncmp (opt->name, str, optlen) == 0)
       {
 	march_cpu_opt = &opt->value;
 	march_fpu_opt = &opt->default_fpu;



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201408012021.s71KLfaN091202>