From 71d1e4d54d636f154ea2f23b7c7a38f183b2d6f2 Mon Sep 17 00:00:00 2001 From: Bernhard Fischer Date: Fri, 23 Nov 2007 14:31:21 +0100 Subject: [PATCH] pull fix for fortran/PR30486 from trunk --- toolchain/gcc/4.2.2/500-gfortran-PR30486.patch | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 toolchain/gcc/4.2.2/500-gfortran-PR30486.patch diff --git a/toolchain/gcc/4.2.2/500-gfortran-PR30486.patch b/toolchain/gcc/4.2.2/500-gfortran-PR30486.patch new file mode 100644 index 0000000..0ea9645 --- /dev/null +++ b/toolchain/gcc/4.2.2/500-gfortran-PR30486.patch @@ -0,0 +1,19 @@ +2007-05-15 Paul Brook + + * trans-types.c (gfc_type_for_size): Handle signed TImode. + +--- gcc-4.2.2.orig/gcc/fortran/trans-types.c 2007-08-31 10:27:50.000000000 +0200 ++++ gcc-4.2.2/gcc/fortran/trans-types.c 2007-11-23 14:28:42.000000000 +0100 +@@ -1799,6 +1799,12 @@ + if (type && bits == TYPE_PRECISION (type)) + return type; + } ++ /* Handle TImode as a special case because it is used by some backends ++ (eg. ARM) even though it is not available for normal use. */ ++#if HOST_BITS_PER_WIDE_INT >= 64 ++ if (bits == TYPE_PRECISION (intTI_type_node)) ++ return intTI_type_node; ++#endif + } + else + { -- 2.11.4.GIT