diff options
author | Ludovic Courtès <ludo@gnu.org> | 2022-06-08 14:46:24 +0200 |
---|---|---|
committer | Ludovic Courtès <ludo@gnu.org> | 2022-06-08 14:46:24 +0200 |
commit | 8c3e9da13a3c92a7db308db8c0d81cb474ad7799 (patch) | |
tree | 88d06952aa5cc3a9c4991d9c43eb7950ff174fe1 /gnu/packages/gcc.scm | |
parent | 5439c04ebdb7b6405f5ea2446b375f1d155a8d95 (diff) | |
parent | 0c5299200ffcd16370f047b7ccb187c60f30da34 (diff) |
Merge branch 'master' into core-updates
Diffstat (limited to 'gnu/packages/gcc.scm')
-rw-r--r-- | gnu/packages/gcc.scm | 48 |
1 files changed, 42 insertions, 6 deletions
diff --git a/gnu/packages/gcc.scm b/gnu/packages/gcc.scm index 07466143fc..cd144772b8 100644 --- a/gnu/packages/gcc.scm +++ b/gnu/packages/gcc.scm @@ -12,6 +12,7 @@ ;;; Copyright © 2020 Simon Tournier <zimon.toutoune@gmail.com> ;;; Copyright © 2021 Chris Marusich <cmmarusich@gmail.com> ;;; Copyright © 2021 Sarah Morgensen <iskarian@mgsn.dev> +;;; Copyright © 2022 Greg Hogan <code@greghogan.com> ;;; ;;; This file is part of GNU Guix. ;;; @@ -582,6 +583,20 @@ Go. It also includes runtime support libraries for these languages.") "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 (package (inherit gcc-6) @@ -626,14 +641,14 @@ It also includes runtime support libraries for these languages.") (define-public gcc-9 (package (inherit gcc-8) - (version "9.4.0") + (version "9.5.0") (source (origin (method url-fetch) (uri (string-append "mirror://gnu/gcc/gcc-" version "/gcc-" version ".tar.xz")) (sha256 (base32 - "13l3p6g2krilaawbapmn9zmmrh3zdwc36mfr3msxfy038hps6pf9")) + "13ygjmd938m0wmy946pxdhz9i1wq7z4w10l6pvidak0xxxj9yxi7")) (patches (search-patches "gcc-9-strmov-store-file-names.patch" "gcc-9-asan-fix-limits-include.patch" "gcc-5.0-libvtv-runpath.patch")) @@ -664,21 +679,42 @@ It also includes runtime support libraries for these languages.") (define-public gcc-11 (package (inherit gcc-8) - (version "11.2.0") + (version "11.3.0") (source (origin (method url-fetch) (uri (string-append "mirror://gnu/gcc/gcc-" version "/gcc-" version ".tar.xz")) (sha256 (base32 - "12zs6vd2rapp42x154m479hg3h3lsafn3xhg06hp5hsldd9xr3nh")) + "0fdclcwf728wbq52vphfcjywzhpsjp3kifzj3pib3xcihs0z4z5l")) (patches (search-patches "gcc-9-strmov-store-file-names.patch" "gcc-5.0-libvtv-runpath.patch")) (modules '((guix build utils))) (snippet gcc-canadian-cross-objdump-snippet))) - ;; TODO: Add newly supported micro-architectures. - (properties (package-properties gcc-10)))) + (properties + `((compiler-cpu-architectures + ("aarch64" ,@%gcc-11-aarch64-micro-architectures) + ("armhf" ,@%gcc-11-armhf-micro-architectures) + ("x86_64" ,@%gcc-11-x86_64-micro-architectures)))))) + +(define-public gcc-12 + (package + (inherit gcc-11) + ;; Note: 'compiler-cpu-architectures' is unchanged compared to GCC 11. + (version "12.1.0") + (source (origin + (method url-fetch) + (uri (string-append "mirror://gnu/gcc/gcc-" + version "/gcc-" version ".tar.xz")) + (sha256 + (base32 + "0ywws66myjxcwsmla721g35d2ymlckq6ii7j9av0477ki5467zb2")) + (patches (search-patches "gcc-12-strmov-store-file-names.patch" + "gcc-5.0-libvtv-runpath.patch")) + (modules '((guix build utils))) + (snippet gcc-canadian-cross-objdump-snippet))))) + ;; Note: When changing the default gcc version, update ;; the gcc-toolchain-* definitions. |