aboutsummaryrefslogtreecommitdiffstats
path: root/toolchain/gcc/patches/4.3.5/940-avr32_fix_f32_to_f64.patch
diff options
context:
space:
mode:
Diffstat (limited to 'toolchain/gcc/patches/4.3.5/940-avr32_fix_f32_to_f64.patch')
-rw-r--r--toolchain/gcc/patches/4.3.5/940-avr32_fix_f32_to_f64.patch10
1 files changed, 10 insertions, 0 deletions
diff --git a/toolchain/gcc/patches/4.3.5/940-avr32_fix_f32_to_f64.patch b/toolchain/gcc/patches/4.3.5/940-avr32_fix_f32_to_f64.patch
new file mode 100644
index 0000000000..6476aaa2a1
--- /dev/null
+++ b/toolchain/gcc/patches/4.3.5/940-avr32_fix_f32_to_f64.patch
@@ -0,0 +1,10 @@
+--- a/gcc/config/avr32/lib1funcs.S
++++ b/gcc/config/avr32/lib1funcs.S
+@@ -2800,6 +2800,7 @@ __extendsfdf_return_op1:
+ lsl r11,8 /* check mantissa */
+ movne r11, -1 /* Return NaN */
+ moveq r11, r10 /* Return inf */
++ mov r10, 0
+ rjmp __extendsfdf_return_op1
+ #endif
+