diff --git a/lang/gcc12/files/patch-libgfortran_kinds-override.h b/lang/gcc12/files/patch-libgfortran_kinds-override.h new file mode 100644 index 000000000000..eb92e972a84d --- /dev/null +++ b/lang/gcc12/files/patch-libgfortran_kinds-override.h @@ -0,0 +1,11 @@ +--- libgfortran/kinds-override.h.orig ++++ libgfortran/kinds-override.h +@@ -30,7 +30,7 @@ + #endif + + /* Keep these conditions on one line so grep can filter it out. */ +-#if defined(__powerpc64__) && __BYTE_ORDER__ == __ORDER_LITTLE_ENDIAN__ && __SIZEOF_LONG_DOUBLE__ == 16 ++#if defined(__powerpc64__) && __BYTE_ORDER__ == __ORDER_LITTLE_ENDIAN__ && __SIZEOF_LONG_DOUBLE__ == 16 && !defined(__LONG_DOUBLE_IEEE128__) + typedef __float128 GFC_REAL_17; + typedef _Complex float __attribute__((mode(KC))) GFC_COMPLEX_17; + #define HAVE_GFC_REAL_17 diff --git a/lang/gcc13/files/patch-libgfortran_kinds-override.h b/lang/gcc13/files/patch-libgfortran_kinds-override.h new file mode 100644 index 000000000000..0d60fa7bfaf3 --- /dev/null +++ b/lang/gcc13/files/patch-libgfortran_kinds-override.h @@ -0,0 +1,11 @@ +--- libgfortran/kinds-override.h.orig ++++ libgfortran/kinds-override.h +@@ -30,7 +30,7 @@ + #endif + + /* Keep these conditions on one line so grep can filter it out. */ +-#if defined(__powerpc64__) && __BYTE_ORDER__ == __ORDER_LITTLE_ENDIAN__ && __SIZEOF_LONG_DOUBLE__ == 16 ++#if defined(__powerpc64__) && __BYTE_ORDER__ == __ORDER_LITTLE_ENDIAN__ && __SIZEOF_LONG_DOUBLE__ == 16 && !defined(__LONG_DOUBLE_IEEE128__) + typedef _Float128 GFC_REAL_17; + typedef _Complex _Float128 GFC_COMPLEX_17; + #define HAVE_GFC_REAL_17 diff --git a/lang/gcc14/files/patch-libgfortran_kinds-override.h b/lang/gcc14/files/patch-libgfortran_kinds-override.h new file mode 100644 index 000000000000..0d60fa7bfaf3 --- /dev/null +++ b/lang/gcc14/files/patch-libgfortran_kinds-override.h @@ -0,0 +1,11 @@ +--- libgfortran/kinds-override.h.orig ++++ libgfortran/kinds-override.h +@@ -30,7 +30,7 @@ + #endif + + /* Keep these conditions on one line so grep can filter it out. */ +-#if defined(__powerpc64__) && __BYTE_ORDER__ == __ORDER_LITTLE_ENDIAN__ && __SIZEOF_LONG_DOUBLE__ == 16 ++#if defined(__powerpc64__) && __BYTE_ORDER__ == __ORDER_LITTLE_ENDIAN__ && __SIZEOF_LONG_DOUBLE__ == 16 && !defined(__LONG_DOUBLE_IEEE128__) + typedef _Float128 GFC_REAL_17; + typedef _Complex _Float128 GFC_COMPLEX_17; + #define HAVE_GFC_REAL_17 diff --git a/lang/gcc15/files/patch-libgfortran_kinds-override.h b/lang/gcc15/files/patch-libgfortran_kinds-override.h new file mode 100644 index 000000000000..0d60fa7bfaf3 --- /dev/null +++ b/lang/gcc15/files/patch-libgfortran_kinds-override.h @@ -0,0 +1,11 @@ +--- libgfortran/kinds-override.h.orig ++++ libgfortran/kinds-override.h +@@ -30,7 +30,7 @@ + #endif + + /* Keep these conditions on one line so grep can filter it out. */ +-#if defined(__powerpc64__) && __BYTE_ORDER__ == __ORDER_LITTLE_ENDIAN__ && __SIZEOF_LONG_DOUBLE__ == 16 ++#if defined(__powerpc64__) && __BYTE_ORDER__ == __ORDER_LITTLE_ENDIAN__ && __SIZEOF_LONG_DOUBLE__ == 16 && !defined(__LONG_DOUBLE_IEEE128__) + typedef _Float128 GFC_REAL_17; + typedef _Complex _Float128 GFC_COMPLEX_17; + #define HAVE_GFC_REAL_17 diff --git a/lang/gcc16/files/patch-libgfortran_kinds-override.h b/lang/gcc16/files/patch-libgfortran_kinds-override.h new file mode 100644 index 000000000000..0d60fa7bfaf3 --- /dev/null +++ b/lang/gcc16/files/patch-libgfortran_kinds-override.h @@ -0,0 +1,11 @@ +--- libgfortran/kinds-override.h.orig ++++ libgfortran/kinds-override.h +@@ -30,7 +30,7 @@ + #endif + + /* Keep these conditions on one line so grep can filter it out. */ +-#if defined(__powerpc64__) && __BYTE_ORDER__ == __ORDER_LITTLE_ENDIAN__ && __SIZEOF_LONG_DOUBLE__ == 16 ++#if defined(__powerpc64__) && __BYTE_ORDER__ == __ORDER_LITTLE_ENDIAN__ && __SIZEOF_LONG_DOUBLE__ == 16 && !defined(__LONG_DOUBLE_IEEE128__) + typedef _Float128 GFC_REAL_17; + typedef _Complex _Float128 GFC_COMPLEX_17; + #define HAVE_GFC_REAL_17