gnu: gcc@11: Update 'compiler-cpu-architectures' property.

* gnu/packages/gcc.scm (%gcc-11-aarch64-micro-architectures)
(%gcc-11-armhf-micro-architectures)
(%gcc-11-x86_64-micro-architectures): New variables.
(gcc-11)[properties]: Use them.
This commit is contained in:
Ludovic Courtès 2022-05-24 14:16:12 +02:00 committed by Ludovic Courtès
parent 93f601d97c
commit dc9503dd5e
No known key found for this signature in database
GPG key ID: 090B11993D9AEBB5

View file

@ -583,6 +583,20 @@ (define %gcc-10-x86_64-micro-architectures
"znver2" "znver3"))) "znver2" "znver3")))
(define %gcc-11-aarch64-micro-architectures
;; Suitable '-march' values for GCC 11.
%gcc-10-aarch64-micro-architectures) ;unchanged
(define %gcc-11-armhf-micro-architectures
%gcc-10-armhf-micro-architectures)
(define %gcc-11-x86_64-micro-architectures
;; Suitable '-march' values for GCC 11.
(append %gcc-10-x86_64-micro-architectures
'("sapphirerapids" "alterlake" "rocketlake" ;Intel
"btver1" "btver2"))) ;AMD
(define-public gcc-7 (define-public gcc-7
(package (package
(inherit gcc-6) (inherit gcc-6)
@ -678,8 +692,11 @@ (define-public gcc-11
(modules '((guix build utils))) (modules '((guix build utils)))
(snippet gcc-canadian-cross-objdump-snippet))) (snippet gcc-canadian-cross-objdump-snippet)))
;; TODO: Add newly supported micro-architectures. (properties
(properties (package-properties gcc-10)))) `((compiler-cpu-architectures
("aarch64" ,@%gcc-11-aarch64-micro-architectures)
("armhf" ,@%gcc-11-armhf-micro-architectures)
("x86_64" ,@%gcc-11-x86_64-micro-architectures))))))
;; Note: When changing the default gcc version, update ;; Note: When changing the default gcc version, update
;; the gcc-toolchain-* definitions. ;; the gcc-toolchain-* definitions.