From d5461de1f437524fefdbcc52aa1c69f21b8828e0 Mon Sep 17 00:00:00 2001 From: CentOS Sources Date: Tue, 28 Apr 2020 05:33:10 -0400 Subject: [PATCH] import gcc-8.3.1-5.el8 --- .gcc.metadata | 2 +- .gitignore | 2 +- SOURCES/gcc8-libstdc++-docs.patch | 4 +- SOURCES/gcc8-pr85400.patch | 94 ---------- SOURCES/gcc8-pr86098.patch | 39 ----- SOURCES/gcc8-pr90139.patch | 40 ----- SOURCES/gcc8-pr90756.patch | 55 ------ SOURCES/gcc8-rh1711346.patch | 279 ------------------------------ SOURCES/gcc8-rh1730380.patch | 45 ----- SPECS/gcc.spec | 22 +-- 10 files changed, 8 insertions(+), 574 deletions(-) delete mode 100644 SOURCES/gcc8-pr85400.patch delete mode 100644 SOURCES/gcc8-pr86098.patch delete mode 100644 SOURCES/gcc8-pr90139.patch delete mode 100644 SOURCES/gcc8-pr90756.patch delete mode 100644 SOURCES/gcc8-rh1711346.patch delete mode 100644 SOURCES/gcc8-rh1730380.patch diff --git a/.gcc.metadata b/.gcc.metadata index 03b4cd9..1b620d3 100644 --- a/.gcc.metadata +++ b/.gcc.metadata @@ -1,3 +1,3 @@ -8ee669ee60997110e6251c72dac66bf69bbe13c7 SOURCES/gcc-8.3.1-20190507.tar.xz +e83739fffae5c3bbb1784cadb72ead8384de74e0 SOURCES/gcc-8.3.1-20191121.tar.xz 3bdb3cc01fa7690a0e20ea5cfffcbe690f7665eb SOURCES/nvptx-newlib-aadc8eb0ec43b7cd0dd2dfb484bae63c8b05ef24.tar.xz ce8eb83be0ac37fb5d5388df455a980fe37b4f13 SOURCES/nvptx-tools-c28050f60193b3b95a18866a96f03334e874e78f.tar.xz diff --git a/.gitignore b/.gitignore index fb2c952..fd61c9b 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,3 @@ -SOURCES/gcc-8.3.1-20190507.tar.xz +SOURCES/gcc-8.3.1-20191121.tar.xz SOURCES/nvptx-newlib-aadc8eb0ec43b7cd0dd2dfb484bae63c8b05ef24.tar.xz SOURCES/nvptx-tools-c28050f60193b3b95a18866a96f03334e874e78f.tar.xz diff --git a/SOURCES/gcc8-libstdc++-docs.patch b/SOURCES/gcc8-libstdc++-docs.patch index 594ce19..5f6a2ae 100644 --- a/SOURCES/gcc8-libstdc++-docs.patch +++ b/SOURCES/gcc8-libstdc++-docs.patch @@ -4,7 +4,7 @@ FSF

-+ Release 8.1.1 ++ Release 8.3.1 +

Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation @@ -17,7 +17,7 @@

- The API documentation, rendered into HTML, can be viewed online + The API documentation, rendered into HTML, can be viewed locally -+ for the 8.1.1 release, ++ for the 8.3.1 release, + online for each GCC release and diff --git a/SOURCES/gcc8-pr85400.patch b/SOURCES/gcc8-pr85400.patch deleted file mode 100644 index 0c0d887..0000000 --- a/SOURCES/gcc8-pr85400.patch +++ /dev/null @@ -1,94 +0,0 @@ -2018-05-10 Eric Botcazou - - PR c++/85400 - * c-attribs.c (handle_visibility_attribute): Do not set no_add_attrs. - - * decl2.c (adjust_var_decl_tls_model): New static function. - (comdat_linkage): Call it on a variable. - (maybe_make_one_only): Likewise. - ---- gcc/c-family/c-attribs.c -+++ gcc/c-family/c-attribs.c -@@ -2299,14 +2299,13 @@ handle_visibility_attribute (tree *node, tree name, tree args, - - static tree - handle_tls_model_attribute (tree *node, tree name, tree args, -- int ARG_UNUSED (flags), bool *no_add_attrs) -+ int ARG_UNUSED (flags), -+ bool *ARG_UNUSED (no_add_attrs)) - { - tree id; - tree decl = *node; - enum tls_model kind; - -- *no_add_attrs = true; -- - if (!VAR_P (decl) || !DECL_THREAD_LOCAL_P (decl)) - { - warning (OPT_Wattributes, "%qE attribute ignored", name); ---- gcc/cp/decl2.c -+++ gcc/cp/decl2.c -@@ -1838,6 +1838,17 @@ mark_vtable_entries (tree decl) - } - } - -+/* Adjust the TLS model on variable DECL if need be, typically after -+ the linkage of DECL has been modified. */ -+ -+static void -+adjust_var_decl_tls_model (tree decl) -+{ -+ if (CP_DECL_THREAD_LOCAL_P (decl) -+ && !lookup_attribute ("tls_model", DECL_ATTRIBUTES (decl))) -+ set_decl_tls_model (decl, decl_default_tls_model (decl)); -+} -+ - /* Set DECL up to have the closest approximation of "initialized common" - linkage available. */ - -@@ -1888,6 +1899,9 @@ comdat_linkage (tree decl) - - if (TREE_PUBLIC (decl)) - DECL_COMDAT (decl) = 1; -+ -+ if (VAR_P (decl)) -+ adjust_var_decl_tls_model (decl); - } - - /* For win32 we also want to put explicit instantiations in -@@ -1926,6 +1940,8 @@ maybe_make_one_only (tree decl) - /* Mark it needed so we don't forget to emit it. */ - node->forced_by_abi = true; - TREE_USED (decl) = 1; -+ -+ adjust_var_decl_tls_model (decl); - } - } - } ---- /dev/null -+++ gcc/testsuite/g++.dg/tls/pr85400.C -@@ -0,0 +1,24 @@ -+// PR c++/85400 -+// Testcase by Brian Vandenberg -+ -+// { dg-do link { target c++11 } } -+// { dg-require-effective-target fpic } -+// { dg-require-effective-target shared } -+// { dg-require-effective-target tls } -+// { dg-options "-shared -fPIC -O" } -+// { dg-add-options tls } -+ -+struct Test -+{ -+ int blah (int y) -+ { -+ thread_local int mything = 3; -+ mything = y > 0 ? y : mything; -+ return mything; -+ } -+}; -+ -+int stuff (Test& test, int y) -+{ -+ return test.blah(y); -+} diff --git a/SOURCES/gcc8-pr86098.patch b/SOURCES/gcc8-pr86098.patch deleted file mode 100644 index 5f5a651..0000000 --- a/SOURCES/gcc8-pr86098.patch +++ /dev/null @@ -1,39 +0,0 @@ -2018-06-12 Jason Merrill - - PR c++/86098 - ICE with template placeholder for TTP. - * typeck.c (structural_comptypes) [TEMPLATE_TYPE_PARM]: Check - CLASS_PLACEHOLDER_TEMPLATE. - ---- gcc/cp/typeck.c -+++ gcc/cp/typeck.c -@@ -1375,6 +1375,11 @@ structural_comptypes (tree t1, tree t2, int strict) - template parameters set, they can't be equal. */ - if (!comp_template_parms_position (t1, t2)) - return false; -+ /* If T1 and T2 don't represent the same class template deduction, -+ they aren't equal. */ -+ if (CLASS_PLACEHOLDER_TEMPLATE (t1) -+ != CLASS_PLACEHOLDER_TEMPLATE (t2)) -+ return false; - /* Constrained 'auto's are distinct from parms that don't have the same - constraints. */ - if (!equivalent_placeholder_constraints (t1, t2)) ---- /dev/null -+++ gcc/testsuite/g++.dg/cpp1z/class-deduction58.C -@@ -0,0 +1,16 @@ -+// PR c++/86098 -+// { dg-additional-options -std=c++17 } -+ -+template class future; -+template T&& declval(); -+ -+template