Re: GCC 7 problems

Stephen Borrill <[email protected]> Thu, 28 Mar 2019 17:26:05 +0000 (GMT)
Newsgroups gmane.os.netbsd.ports.acorn32
Message-ID <Pine.NEB.4.64.1903281645440.3448@ugly>
On Thu, 28 Mar 2019, [email protected] wrote:
> Hi folks,
>
> in our copy of GCC, it looks like the ARMv3 stuff is not yet removed.
> I'm not sure maintaining just-before-ARMv4 is that hard, assuming ARMv4
> stays.
>
> Does this diff help?
>
> Index: config.gcc
> ===================================================================
> RCS file: /cvsroot/src/external/gpl3/gcc/dist/gcc/config.gcc,v
> retrieving revision 1.52
> diff -u -r1.52 config.gcc
> --- config.gcc	19 Mar 2019 23:55:28 -0000	1.52
> +++ config.gcc	28 Mar 2019 11:23:16 -0000
> @@ -1145,7 +1145,7 @@
> 	    ;;
> 	esac
> 	case ${target} in
> -	armv4*) with_cpu=${with_cpu:-strongarm};;
> +	armv4*) with_cpu=${with_cpu:-arm6};;
> 	armv6*) with_cpu=${with_cpu:-arm1176jzf-s};;
> 	armv7*) with_cpu=${with_cpu:-cortex-a8};;
> 	arm*) with_cpu=${with_cpu:-arm9e};;

I get this when compiling:
/usr/src/current/sys/arch/arm/arm/bcopyinout.S:717: Error: selected processor does not support `ldrh r3,[r0]' in ARM mode
/usr/src/current/sys/arch/arm/arm/bcopyinout.S:721: Error: selected processor does not support `strh r3,[r1]' in ARM mode

I also tried with -a arm, but that kernel panicked soon after doing podule 
enumeration.

-- 
Stephen