Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/external/gpl3/gcc/dist initial import of GCC 10.4.0 sources.



details:   https://anonhg.NetBSD.org/src/rev/34f51e17546c
branches:  trunk
changeset: 368621:34f51e17546c
user:      mrg <mrg%NetBSD.org@localhost>
date:      Fri Jul 22 19:52:28 2022 +0000

description:
initial import of GCC 10.4.0 sources.

mostly a large list of PRs fixed (210 total), plus one x86-64
specific change related to MMX and 64 bit integer return.

https://gcc.gnu.org/gcc-10/changes.html links to the full list
of PRs fixed.

diffstat:

 external/gpl3/gcc/dist/ChangeLog                                      |  30 ++++
 external/gpl3/gcc/dist/Makefile.def                                   |   1 +
 external/gpl3/gcc/dist/Makefile.in                                    |  13 +
 external/gpl3/gcc/dist/Makefile.tpl                                   |  12 +
 external/gpl3/gcc/dist/config/ChangeLog                               |  28 ++++
 external/gpl3/gcc/dist/config/mh-darwin                               |  69 ++++++---
 external/gpl3/gcc/dist/config/mh-mingw                                |   2 +
 external/gpl3/gcc/dist/fixincludes/ChangeLog                          |   4 +
 external/gpl3/gcc/dist/libbacktrace/ChangeLog                         |   4 +
 external/gpl3/gcc/dist/maintainer-scripts/ChangeLog                   |  12 +
 external/gpl3/gcc/dist/maintainer-scripts/generate_libstdcxx_web_docs |   2 +-
 11 files changed, 150 insertions(+), 27 deletions(-)

diffs (truncated from 403 to 300 lines):

diff -r 08a972a47021 -r 34f51e17546c external/gpl3/gcc/dist/ChangeLog
--- a/external/gpl3/gcc/dist/ChangeLog  Fri Jul 22 17:06:46 2022 +0000
+++ b/external/gpl3/gcc/dist/ChangeLog  Fri Jul 22 19:52:28 2022 +0000
@@ -1,3 +1,33 @@
+2022-06-28  Release Manager
+
+       * GCC 10.4.0 released.
+
+2022-05-29  Iain Sandoe  <iain%sandoe.co.uk@localhost>
+
+       * Makefile.def: Add dsymutil defs.
+       * Makefile.in: Regenerated.
+       * Makefile.tpl: Add dsymutil to flags.
+       * configure: Regenerated.
+       * configure.ac: Add dsymutil to target and build recipes.
+
+2022-05-29  Iain Sandoe  <iain%sandoe.co.uk@localhost>
+
+       Backported from master:
+       2021-08-18  Iain Sandoe  <iain%sandoe.co.uk@localhost>
+
+       * Makefile.in: Regenerate.
+       * Makefile.tpl: Make the state of the configured host
+       shared flag available to makefile fragements.
+
+2022-05-29  Iain Sandoe  <iain%sandoe.co.uk@localhost>
+
+       Backported from master:
+       2021-07-09  Iain Sandoe  <iain%sandoe.co.uk@localhost>
+
+       * configure: Regenerate.
+       * configure.ac: Adjust cases for which it is necessary to
+       include the Darwin host config fragment.
+
 2021-04-08  Release Manager
 
        * GCC 10.3.0 released.
diff -r 08a972a47021 -r 34f51e17546c external/gpl3/gcc/dist/Makefile.def
--- a/external/gpl3/gcc/dist/Makefile.def       Fri Jul 22 17:06:46 2022 +0000
+++ b/external/gpl3/gcc/dist/Makefile.def       Fri Jul 22 19:52:28 2022 +0000
@@ -283,6 +283,7 @@
 flags_to_pass = { flag= CPPFLAGS_FOR_TARGET ; };
 flags_to_pass = { flag= CXXFLAGS_FOR_TARGET ; };
 flags_to_pass = { flag= DLLTOOL_FOR_TARGET ; };
+flags_to_pass = { flag= DSYMUTIL_FOR_TARGET ; };
 flags_to_pass = { flag= FLAGS_FOR_TARGET ; };
 flags_to_pass = { flag= GFORTRAN_FOR_TARGET ; };
 flags_to_pass = { flag= GOC_FOR_TARGET ; };
diff -r 08a972a47021 -r 34f51e17546c external/gpl3/gcc/dist/Makefile.in
--- a/external/gpl3/gcc/dist/Makefile.in        Fri Jul 22 17:06:46 2022 +0000
+++ b/external/gpl3/gcc/dist/Makefile.in        Fri Jul 22 19:52:28 2022 +0000
@@ -109,6 +109,9 @@
 # executables in PATH.
 GCC_SHLIB_SUBDIR = @GCC_SHLIB_SUBDIR@
 
+# If the build should make suitable code for shared host resources.
+host_shared = @host_shared@
+
 # Build programs are put under this directory.
 BUILD_SUBDIR = @build_subdir@
 # This is set by the configure script to the arguments to use when configuring
@@ -159,6 +162,7 @@
        GDC="$(GDC_FOR_BUILD)"; export GDC; \
        GDCFLAGS="$(GDCFLAGS_FOR_BUILD)"; export GDCFLAGS; \
        DLLTOOL="$(DLLTOOL_FOR_BUILD)"; export DLLTOOL; \
+       DSYMUTIL="$(DSYMUTIL_FOR_BUILD)"; export DSYMUTIL; \
        LD="$(LD_FOR_BUILD)"; export LD; \
        LDFLAGS="$(LDFLAGS_FOR_BUILD)"; export LDFLAGS; \
        NM="$(NM_FOR_BUILD)"; export NM; \
@@ -200,6 +204,7 @@
        CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \
        CXX_FOR_BUILD="$(CXX_FOR_BUILD)"; export CXX_FOR_BUILD; \
        DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \
+       DSYMUTIL="$(DSYMUTIL)"; export DSYMUTIL; \
        LD="$(LD)"; export LD; \
        LDFLAGS="$(STAGE1_LDFLAGS) $(LDFLAGS)"; export LDFLAGS; \
        NM="$(NM)"; export NM; \
@@ -212,6 +217,7 @@
        READELF="$(READELF)"; export READELF; \
        AR_FOR_TARGET="$(AR_FOR_TARGET)"; export AR_FOR_TARGET; \
        AS_FOR_TARGET="$(AS_FOR_TARGET)"; export AS_FOR_TARGET; \
+       DSYMUTIL_FOR_TARGET="$(DSYMUTIL_FOR_TARGET)"; export DSYMUTIL_FOR_TARGET; \
        GCC_FOR_TARGET="$(GCC_FOR_TARGET)"; export GCC_FOR_TARGET; \
        LD_FOR_TARGET="$(LD_FOR_TARGET)"; export LD_FOR_TARGET; \
        NM_FOR_TARGET="$(NM_FOR_TARGET)"; export NM_FOR_TARGET; \
@@ -294,6 +300,7 @@
        GOC="$(GOC_FOR_TARGET) $(XGCC_FLAGS_FOR_TARGET) $$TFLAGS"; export GOC; \
        GDC="$(GDC_FOR_TARGET) $(XGCC_FLAGS_FOR_TARGET) $$TFLAGS"; export GDC; \
        DLLTOOL="$(DLLTOOL_FOR_TARGET)"; export DLLTOOL; \
+       DSYMUTIL="$(DSYMUTIL_FOR_TARGET)"; export DSYMUTIL; \
        LD="$(COMPILER_LD_FOR_TARGET)"; export LD; \
        LDFLAGS="$(LDFLAGS_FOR_TARGET)"; export LDFLAGS; \
        LIPO="$(LIPO_FOR_TARGET)"; export LIPO; \
@@ -356,6 +363,7 @@
 CXXFLAGS_FOR_BUILD = @CXXFLAGS_FOR_BUILD@
 CXX_FOR_BUILD = @CXX_FOR_BUILD@
 DLLTOOL_FOR_BUILD = @DLLTOOL_FOR_BUILD@
+DSYMUTIL_FOR_BUILD = @DSYMUTIL_FOR_BUILD@
 GFORTRAN_FOR_BUILD = @GFORTRAN_FOR_BUILD@
 GOC_FOR_BUILD = @GOC_FOR_BUILD@
 GDC_FOR_BUILD = @GDC_FOR_BUILD@
@@ -406,6 +414,7 @@
 CC = @CC@
 CXX = @CXX@
 DLLTOOL = @DLLTOOL@
+DSYMUTIL = @DSYMUTIL@
 LD = @LD@
 LIPO = @LIPO@
 NM = @NM@
@@ -596,6 +605,7 @@
 GOC_FOR_TARGET=$(STAGE_CC_WRAPPER) @GOC_FOR_TARGET@
 GDC_FOR_TARGET=$(STAGE_CC_WRAPPER) @GDC_FOR_TARGET@
 DLLTOOL_FOR_TARGET=@DLLTOOL_FOR_TARGET@
+DSYMUTIL_FOR_TARGET=@DSYMUTIL_FOR_TARGET@
 LD_FOR_TARGET=@LD_FOR_TARGET@
 
 LIPO_FOR_TARGET=@LIPO_FOR_TARGET@
@@ -814,6 +824,7 @@
        "CPPFLAGS_FOR_TARGET=$(CPPFLAGS_FOR_TARGET)" \
        "CXXFLAGS_FOR_TARGET=$(CXXFLAGS_FOR_TARGET)" \
        "DLLTOOL_FOR_TARGET=$(DLLTOOL_FOR_TARGET)" \
+       "DSYMUTIL_FOR_TARGET=$(DSYMUTIL_FOR_TARGET)" \
        "FLAGS_FOR_TARGET=$(FLAGS_FOR_TARGET)" \
        "GFORTRAN_FOR_TARGET=$(GFORTRAN_FOR_TARGET)" \
        "GOC_FOR_TARGET=$(GOC_FOR_TARGET)" \
@@ -889,6 +900,7 @@
        'CC=$(CC)' \
        'CXX=$(CXX)' \
        'DLLTOOL=$(DLLTOOL)' \
+       'DSYMUTIL=$(DSYMUTIL)' \
        'GFORTRAN=$(GFORTRAN)' \
        'GOC=$(GOC)' \
        'GDC=$(GDC)' \
@@ -947,6 +959,7 @@
         $$(XGCC_FLAGS_FOR_TARGET) $$(TFLAGS)' \
        'CXXFLAGS=$$(CXXFLAGS_FOR_TARGET)' \
        'DLLTOOL=$$(DLLTOOL_FOR_TARGET)' \
+       'DSYMUTIL=$$(DSYMUTIL_FOR_TARGET)' \
        'GFORTRAN=$$(GFORTRAN_FOR_TARGET) $$(XGCC_FLAGS_FOR_TARGET) $$(TFLAGS)' \
        'GOC=$$(GOC_FOR_TARGET) $$(XGCC_FLAGS_FOR_TARGET) $$(TFLAGS)' \
        'GOCFLAGS=$$(GOCFLAGS_FOR_TARGET)' \
diff -r 08a972a47021 -r 34f51e17546c external/gpl3/gcc/dist/Makefile.tpl
--- a/external/gpl3/gcc/dist/Makefile.tpl       Fri Jul 22 17:06:46 2022 +0000
+++ b/external/gpl3/gcc/dist/Makefile.tpl       Fri Jul 22 19:52:28 2022 +0000
@@ -112,6 +112,9 @@
 # executables in PATH.
 GCC_SHLIB_SUBDIR = @GCC_SHLIB_SUBDIR@
 
+# If the build should make suitable code for shared host resources.
+host_shared = @host_shared@
+
 # Build programs are put under this directory.
 BUILD_SUBDIR = @build_subdir@
 # This is set by the configure script to the arguments to use when configuring
@@ -162,6 +165,7 @@
        GDC="$(GDC_FOR_BUILD)"; export GDC; \
        GDCFLAGS="$(GDCFLAGS_FOR_BUILD)"; export GDCFLAGS; \
        DLLTOOL="$(DLLTOOL_FOR_BUILD)"; export DLLTOOL; \
+       DSYMUTIL="$(DSYMUTIL_FOR_BUILD)"; export DSYMUTIL; \
        LD="$(LD_FOR_BUILD)"; export LD; \
        LDFLAGS="$(LDFLAGS_FOR_BUILD)"; export LDFLAGS; \
        NM="$(NM_FOR_BUILD)"; export NM; \
@@ -203,6 +207,7 @@
        CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \
        CXX_FOR_BUILD="$(CXX_FOR_BUILD)"; export CXX_FOR_BUILD; \
        DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \
+       DSYMUTIL="$(DSYMUTIL)"; export DSYMUTIL; \
        LD="$(LD)"; export LD; \
        LDFLAGS="$(STAGE1_LDFLAGS) $(LDFLAGS)"; export LDFLAGS; \
        NM="$(NM)"; export NM; \
@@ -215,6 +220,7 @@
        READELF="$(READELF)"; export READELF; \
        AR_FOR_TARGET="$(AR_FOR_TARGET)"; export AR_FOR_TARGET; \
        AS_FOR_TARGET="$(AS_FOR_TARGET)"; export AS_FOR_TARGET; \
+       DSYMUTIL_FOR_TARGET="$(DSYMUTIL_FOR_TARGET)"; export DSYMUTIL_FOR_TARGET; \
        GCC_FOR_TARGET="$(GCC_FOR_TARGET)"; export GCC_FOR_TARGET; \
        LD_FOR_TARGET="$(LD_FOR_TARGET)"; export LD_FOR_TARGET; \
        NM_FOR_TARGET="$(NM_FOR_TARGET)"; export NM_FOR_TARGET; \
@@ -297,6 +303,7 @@
        GOC="$(GOC_FOR_TARGET) $(XGCC_FLAGS_FOR_TARGET) $$TFLAGS"; export GOC; \
        GDC="$(GDC_FOR_TARGET) $(XGCC_FLAGS_FOR_TARGET) $$TFLAGS"; export GDC; \
        DLLTOOL="$(DLLTOOL_FOR_TARGET)"; export DLLTOOL; \
+       DSYMUTIL="$(DSYMUTIL_FOR_TARGET)"; export DSYMUTIL; \
        LD="$(COMPILER_LD_FOR_TARGET)"; export LD; \
        LDFLAGS="$(LDFLAGS_FOR_TARGET)"; export LDFLAGS; \
        LIPO="$(LIPO_FOR_TARGET)"; export LIPO; \
@@ -359,6 +366,7 @@
 CXXFLAGS_FOR_BUILD = @CXXFLAGS_FOR_BUILD@
 CXX_FOR_BUILD = @CXX_FOR_BUILD@
 DLLTOOL_FOR_BUILD = @DLLTOOL_FOR_BUILD@
+DSYMUTIL_FOR_BUILD = @DSYMUTIL_FOR_BUILD@
 GFORTRAN_FOR_BUILD = @GFORTRAN_FOR_BUILD@
 GOC_FOR_BUILD = @GOC_FOR_BUILD@
 GDC_FOR_BUILD = @GDC_FOR_BUILD@
@@ -409,6 +417,7 @@
 CC = @CC@
 CXX = @CXX@
 DLLTOOL = @DLLTOOL@
+DSYMUTIL = @DSYMUTIL@
 LD = @LD@
 LIPO = @LIPO@
 NM = @NM@
@@ -519,6 +528,7 @@
 GOC_FOR_TARGET=$(STAGE_CC_WRAPPER) @GOC_FOR_TARGET@
 GDC_FOR_TARGET=$(STAGE_CC_WRAPPER) @GDC_FOR_TARGET@
 DLLTOOL_FOR_TARGET=@DLLTOOL_FOR_TARGET@
+DSYMUTIL_FOR_TARGET=@DSYMUTIL_FOR_TARGET@
 LD_FOR_TARGET=@LD_FOR_TARGET@
 
 LIPO_FOR_TARGET=@LIPO_FOR_TARGET@
@@ -644,6 +654,7 @@
        'CC=$(CC)' \
        'CXX=$(CXX)' \
        'DLLTOOL=$(DLLTOOL)' \
+       'DSYMUTIL=$(DSYMUTIL)' \
        'GFORTRAN=$(GFORTRAN)' \
        'GOC=$(GOC)' \
        'GDC=$(GDC)' \
@@ -702,6 +713,7 @@
         $$(XGCC_FLAGS_FOR_TARGET) $$(TFLAGS)' \
        'CXXFLAGS=$$(CXXFLAGS_FOR_TARGET)' \
        'DLLTOOL=$$(DLLTOOL_FOR_TARGET)' \
+       'DSYMUTIL=$$(DSYMUTIL_FOR_TARGET)' \
        'GFORTRAN=$$(GFORTRAN_FOR_TARGET) $$(XGCC_FLAGS_FOR_TARGET) $$(TFLAGS)' \
        'GOC=$$(GOC_FOR_TARGET) $$(XGCC_FLAGS_FOR_TARGET) $$(TFLAGS)' \
        'GOCFLAGS=$$(GOCFLAGS_FOR_TARGET)' \
diff -r 08a972a47021 -r 34f51e17546c external/gpl3/gcc/dist/config/ChangeLog
--- a/external/gpl3/gcc/dist/config/ChangeLog   Fri Jul 22 17:06:46 2022 +0000
+++ b/external/gpl3/gcc/dist/config/ChangeLog   Fri Jul 22 19:52:28 2022 +0000
@@ -1,3 +1,31 @@
+2022-06-28  Release Manager
+
+       * GCC 10.4.0 released.
+
+2022-05-29  Iain Sandoe  <iain%sandoe.co.uk@localhost>
+
+       Backported from master:
+       2021-08-18  Iain Sandoe  <iain%sandoe.co.uk@localhost>
+
+       * mh-darwin: Require a non-shared host configuration to
+       enable  mdynamic-no-pic where that is supported.
+
+2022-05-29  Iain Sandoe  <iain%sandoe.co.uk@localhost>
+
+       Backported from master:
+       2021-07-09  Iain Sandoe  <iain%sandoe.co.uk@localhost>
+
+       * mh-darwin: Make this specific to handling the
+       mdynamic-no-pic case.
+
+2021-12-16  Martin Storsjö  <martin%martin.st@localhost>
+
+       Backported from master:
+       2021-04-13  Martin Storsjö  <martin%martin.st@localhost>
+
+       * mh-mingw: Set __USE_MINGW_ACCESS in missed C++ flags
+       variables
+
 2021-04-08  Release Manager
 
        * GCC 10.3.0 released.
diff -r 08a972a47021 -r 34f51e17546c external/gpl3/gcc/dist/config/mh-darwin
--- a/external/gpl3/gcc/dist/config/mh-darwin   Fri Jul 22 17:06:46 2022 +0000
+++ b/external/gpl3/gcc/dist/config/mh-darwin   Fri Jul 22 19:52:28 2022 +0000
@@ -1,29 +1,46 @@
 # The -mdynamic-no-pic ensures that the compiler executable is built without
-# position-independent-code -- the usual default on Darwin. This fix speeds
-# compiles by 3-5%.  Don't add it if the compiler doesn't also support
-# -mno-dynamic-no-pic to undo it.
-DARWIN_MDYNAMIC_NO_PIC := \
-`case ${host} in i?86-*-darwin* | powerpc-*-darwin*) \
-   $(CC) -S -xc /dev/null -o /dev/null -mno-dynamic-no-pic 2>/dev/null \
-   && echo -mdynamic-no-pic ;; esac`
-DARWIN_GCC_MDYNAMIC_NO_PIC := \
-`case ${host} in i?86-*-darwin* | powerpc-*-darwin*) \
-   $(CC) -S -xc /dev/null -o /dev/null -mno-dynamic-no-pic 2>/dev/null \
-   || echo -mdynamic-no-pic ;; esac`
+# position-independent-code -- the usual default on Darwin. This speeds compiles
+# by 8-20% (measurements made against GCC-11).
+# However, we cannot add it unless the bootstrap compiler supports
+# -mno-dynamic-no-pic to undo it, since libiberty, at least, needs this.
+
+# We use Werror, since some versions of clang report unknown command line flags
+# as a warning only.
+
+# We only need to determine this for the host tool used to build stage1 (or a
+# non-bootstrapped compiler), later stages will be built by GCC which supports
+# the required flags.
+
+# We cannot use mdynamic-no-pic when building shared host resources.
+
+ifeq (${host_shared},no)
+BOOTSTRAP_TOOL_CAN_USE_MDYNAMIC_NO_PIC := $(shell \
+  $(CC) -S -xc /dev/null -o /dev/null -Werror -mno-dynamic-no-pic 2>/dev/null \
+  && echo true)
+else
+BOOTSTRAP_TOOL_CAN_USE_MDYNAMIC_NO_PIC := false
+endif
 
-# ld on Darwin versions >= 10.7 defaults to PIE executables. Disable this for



Home | Main Index | Thread Index | Old Index