aboutsummaryrefslogtreecommitdiff
path: root/lang/gcc12-devel/files
diff options
context:
space:
mode:
Diffstat (limited to 'lang/gcc12-devel/files')
-rw-r--r--lang/gcc12-devel/files/patch-gcc-analyzer-bootstrap16
-rw-r--r--lang/gcc12-devel/files/patch-libgfortran-bootstrap11
2 files changed, 27 insertions, 0 deletions
diff --git a/lang/gcc12-devel/files/patch-gcc-analyzer-bootstrap b/lang/gcc12-devel/files/patch-gcc-analyzer-bootstrap
new file mode 100644
index 000000000000..07d71aeaf8e4
--- /dev/null
+++ b/lang/gcc12-devel/files/patch-gcc-analyzer-bootstrap
@@ -0,0 +1,16 @@
+commit 745781d24cd7562202687cfbe05597ee673d4537
+Author: Maxim Blinov <maxim.blinov@embecosm.com>
+Date: Fri Sep 17 00:32:58 2021 +0200
+
+ analyzer: Fix bootstrap with clang
+
+--- gcc/analyzer/engine.cc
++++ gcc/analyzer/engine.cc
+@@ -19,6 +19,7 @@ along with GCC; see the file COPYING3. If not see
+ <http://www.gnu.org/licenses/>. */
+
+ #include "config.h"
++#define INCLUDE_UNIQUE_PTR
+ #include "system.h"
+ #include "coretypes.h"
+ #include "tree.h"
diff --git a/lang/gcc12-devel/files/patch-libgfortran-bootstrap b/lang/gcc12-devel/files/patch-libgfortran-bootstrap
new file mode 100644
index 000000000000..d3221a1b1368
--- /dev/null
+++ b/lang/gcc12-devel/files/patch-libgfortran-bootstrap
@@ -0,0 +1,11 @@
+--- libgfortran/ISO_Fortran_binding.h.orig 2021-09-12 22:32:09.000000000 +0000
++++ libgfortran/ISO_Fortran_binding.h 2021-09-18 04:42:43.658569000 +0000
+@@ -227,7 +227,7 @@
+ #define CFI_type_long_double_Complex CFI_type_double_Complex
+
+ /* This is the 80-bit encoding on x86; Fortran assigns it kind 10. */
+-#elif (LDBL_MANT_DIG == 64 \
++#elif ((LDBL_MANT_DIG == 64 || LDBL_MANT_DIG == 53) \
+ && LDBL_MIN_EXP == -16381 \
+ && LDBL_MAX_EXP == 16384)
+ #define CFI_type_long_double (CFI_type_Real + (10 << CFI_type_kind_shift))