diff --git a/srcpkgs/gcc/patches/omp.patch b/srcpkgs/gcc/patches/omp.patch new file mode 100644 index 00000000000..650cbcb39ff --- /dev/null +++ b/srcpkgs/gcc/patches/omp.patch @@ -0,0 +1,17 @@ +Backport: https://gcc.gnu.org/viewcvs/gcc?view=revision&revision=276211 + +This fixes potential failures with openmp and constants, such as + +error: ‘*.LC0’ not specified in enclosing ‘parallel’ + +--- gcc/gimplify.c ++++ gcc/gimplify.c +@@ -7132,6 +7132,8 @@ + kind = lang_hooks.decls.omp_predetermined_sharing (decl); + if (kind != OMP_CLAUSE_DEFAULT_UNSPECIFIED) + default_kind = kind; ++ else if (VAR_P (decl) && TREE_STATIC (decl) && DECL_IN_CONSTANT_POOL (decl)) ++ default_kind = OMP_CLAUSE_DEFAULT_SHARED; + + switch (default_kind) + { diff --git a/srcpkgs/gcc/template b/srcpkgs/gcc/template index 6774b8a5826..9ff1282c74e 100644 --- a/srcpkgs/gcc/template +++ b/srcpkgs/gcc/template @@ -8,7 +8,7 @@ _isl_version=0.21 pkgname=gcc version=${_minorver}.0 -revision=1 +revision=2 short_desc="GNU Compiler Collection" maintainer="Enno Boland " homepage="http://gcc.gnu.org"