Marek Behún e61ffcd622 toolchain.eclass: build multilibs for ARM's A, R and M architecture profiles
For ARM targets, with USE=multilib and with CTARGET that does not imply
any of --with-arch, --with-cpu, --with-mode or --with-float options to
gcc's configuration (when arm_arch=arm), pass option
--with-multilib-list=aprofile,rmprofile to gcc's configuration to make
it build multilibs for A, R and M architecture profiles.

This makes it possible to have one compiler capable of generating
correct code (linking correct libgcc/CRT) for various ARM targets: from
armv6 to armv7, for both soft float and half float, for various FPU
types.

Example of arm-none-eabi-gcc -print-libgcc-file-name output for various
options:
  default:
    /usr/lib/gcc/arm-none-eabi/12.1.1/libgcc.a
  -mcpu=cortex-m0
    /usr/lib/gcc/arm-none-eabi/12.1.1/thumb/v6-m/nofp/libgcc.a
  -march=armv7-m
    /usr/lib/gcc/arm-none-eabi/12.1.1/thumb/v7-m/nofp/libgcc.a
  -march=armv7-a
    /usr/lib/gcc/arm-none-eabi/12.1.1/thumb/v7-a/nofp/libgcc.a
  -march=armv7-a -mhard-float -mfpu=neon
    /usr/lib/gcc/arm-none-eabi/12.1.1/thumb/v7-a+simd/hard/libgcc.a
  -march=armv7-a -mhard-float -mfpu=vfp
    /usr/lib/gcc/arm-none-eabi/12.1.1/thumb/v7-a+fp/hard/libgcc.a

Signed-off-by: Marek Behún <kabel@kernel.org>
Signed-off-by: Sam James <sam@gentoo.org>
2022-08-23 06:23:56 +01:00
2022-08-22 20:16:05 -04:00
2022-08-23 06:23:53 +01:00
2022-08-23 05:48:29 +01:00
2022-08-19 16:34:50 +02:00
2022-08-23 04:50:56 +01:00
2022-08-19 13:33:36 +00:00
2022-08-22 10:03:44 +02:00
2022-08-22 13:37:36 -07:00
2022-08-22 22:04:02 +02:00
2022-08-22 20:54:05 +02:00
2022-08-23 06:23:55 +01:00
2022-08-22 20:21:47 -04:00
2022-08-21 17:04:52 -04:00
2022-08-21 23:30:56 +02:00
2022-08-22 21:57:40 +02:00
2022-08-17 22:52:56 -04:00
S
Description
No description provided
9.8 GiB
Languages
Shell 98%
Roff 1.4%
Emacs Lisp 0.2%
C 0.1%