diff options
author | 2009-01-10 21:26:16 +0000 | |
---|---|---|
committer | 2009-01-10 21:26:16 +0000 | |
commit | abfa2f699df111978ad29b0cfdc702719c979c0e (patch) | |
tree | 8c846559c5b6bd33c785aa637dc79add47b4bfe6 /4.3.2 | |
parent | add fix for armv4t eabi #245315 (diff) | |
download | gcc-patches-abfa2f699df111978ad29b0cfdc702719c979c0e.tar.gz gcc-patches-abfa2f699df111978ad29b0cfdc702719c979c0e.tar.bz2 gcc-patches-abfa2f699df111978ad29b0cfdc702719c979c0e.zip |
add fix from upstream for pr37661
Diffstat (limited to '4.3.2')
-rw-r--r-- | 4.3.2/gentoo/68_all_gcc43-pr37661.patch | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/4.3.2/gentoo/68_all_gcc43-pr37661.patch b/4.3.2/gentoo/68_all_gcc43-pr37661.patch new file mode 100644 index 0000000..d0bc6ad --- /dev/null +++ b/4.3.2/gentoo/68_all_gcc43-pr37661.patch @@ -0,0 +1,33 @@ +http://gcc.gnu.org/PR37661 +http://gcc.gnu.org/ml/gcc-patches/2008-08/msg00910.html +Fix SPARC64 int-to-TFmode conversions + +2008-08-13 Joseph Myers <joseph@codesourcery.com> + + * config/sparc/sparc.c (emit_soft_tfmode_cvt): Explicitly sign or + zero extend SImode values being converted to TFmode before passing + to libcalls. + +Index: gcc/config/sparc/sparc.c +=================================================================== +--- gcc/config/sparc/sparc.c (revision 139036) ++++ gcc/config/sparc/sparc.c (working copy) +@@ -2371,6 +2371,8 @@ + { + case SImode: + func = "_Qp_itoq"; ++ if (TARGET_ARCH64) ++ operands[1] = gen_rtx_SIGN_EXTEND (DImode, operands[1]); + break; + case DImode: + func = "_Qp_xtoq"; +@@ -2385,6 +2387,8 @@ + { + case SImode: + func = "_Qp_uitoq"; ++ if (TARGET_ARCH64) ++ operands[1] = gen_rtx_ZERO_EXTEND (DImode, operands[1]); + break; + case DImode: + func = "_Qp_uxtoq"; + |