From 1bd51bf8c6adfb77c2bf572f9c38ca4439dc9a6b Mon Sep 17 00:00:00 2001 From: sharkcz Date: Thu, 30 Jan 2020 06:26:46 +0100 Subject: update for gcc10 (#1119) * update for gcc10 * update GCC docs for the upcoming version 10 --- Makefile.in | 3 ++- doc/getting/GCC.rst | 4 ++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/Makefile.in b/Makefile.in index ac53824f6..9a6b1731a 100644 --- a/Makefile.in +++ b/Makefile.in @@ -248,8 +248,9 @@ copy-sources.gcc: version.ads 7.*) gcc_ortho_lang=ortho-lang-7.c ;; \ 8.*) gcc_ortho_lang=ortho-lang-8.c ;; \ 9.*) gcc_ortho_lang=ortho-lang-9.c ;; \ + 10.*) gcc_ortho_lang=ortho-lang-9.c ;; \ *) echo "Mismatch gcc version from $(gcc_src_dir)"; \ - echo "Need gcc version 4.9.x, 5.x, 6.x, 7.x, 8.x or 9.x"; \ + echo "Need gcc version 4.9.x, 5.x, 6.x, 7.x, 8.x, 9.x or 10.x"; \ exit 1 ;; \ esac; \ $(CP) -p $(srcdir)/src/ortho/gcc/$$gcc_ortho_lang \ diff --git a/doc/getting/GCC.rst b/doc/getting/GCC.rst index b8c46f63f..7a8cd9b56 100644 --- a/doc/getting/GCC.rst +++ b/doc/getting/GCC.rst @@ -9,7 +9,7 @@ GCC backend * GCC (Gnu Compiler Collection) * GNAT (Ada compiler for GCC) -* GCC source files. Download and untar the sources of version 4.9.x, 5.x, 6.x or 7.x. +* GCC source files. Download and untar the sources of version 4.9.x, 5.x, 6.x, 7.x, 8.x, 9.x or 10.x. .. HINT :: There are some dependencies for building GCC (``gmp``, ``mpfr`` and ``mpc``). If you have not installed them on your system, you can either build them manually or use the ``download_prerequisites`` script provided in the GCC source tree (recommended): ``cd /path/to/gcc/source/dir && ./contrib/download_prerequisites``. @@ -62,7 +62,7 @@ GCC backend If your system gcc was built with ``--enable-default-pie``, add ``-no-pie`` option for linking. -.. HINT :: For ppc64 (and AIX ?) platform, the object file format contains an identifier for the source language. Because gcc doesn't know about VHDL, gcc crashes very early. This could be fixed with a very simple change in ``gcc/config/rs6000/rs6000.c``, ``function rs6000_output_function_epilogue`` (as of gcc 4.8): +.. HINT :: For ppc64/ppc64le platform, the object file format contains an identifier for the source language. Because gcc doesn't know about VHDL, gcc crashes very early. This could be fixed with a very simple change in ``gcc/config/rs6000/rs6000.c`` (``gcc/config/rs6000/rs6000-logue.c`` since gcc 10), function ``rs6000_output_function_epilogue``: .. CODE:: diff -- cgit v1.2.3