[Bug 259619] cc: should default to -march=armv6t2+fp

From: <bugzilla-noreply_at_freebsd.org>
Date: Tue, 02 Nov 2021 17:56:22 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=259619

            Bug ID: 259619
           Summary: cc: should default to -march=armv6t2+fp
           Product: Base System
           Version: 13.0-RELEASE
          Hardware: arm
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: arm
          Assignee: freebsd-arm@FreeBSD.org
          Reporter: fuz@fuz.su
                CC: bsdimp@FreeBSD.org
             Flags: mfc-stable13?, mfc-stable12?

Given that armv6 FreeBSD seems to require armv6+thumb2+vfp2 at a minimum, the
compiler should also be configured to generate code for this architecture.

But this does not seem to be the case.  Instead, cc(1) seems to default to
-march=armv6 (with hardfp I think) which is very restricting when compiling
thumb code.

Please change the way cc(1) is builz such that -march=armv6t2+fp is the default
for armv6.

-- 
You are receiving this mail because:
You are the assignee for the bug.