ports/devel/avr-gcc/files/patch-305-gcc-4.5.1-avrtiny10-non-fixedpoint
Joerg Wunsch 0c19ecdca8 Upgrade to GCC 4.5.1.
Completely reorganize the patches for this port.

Patches for new devices are now synchronized with the Atmel AVR tools.
The main difference is the naming scheme, as FreeBSD patches start
with "patch-", while the Atmel AVR Tools patches end up in ".patch".
2011-12-17 09:56:31 +00:00

49 lines
1.5 KiB
Text
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

diff -Naurp gcc/config/avr/avr.c gcc/config/avr/avr.c
--- gcc/config/avr/avr.c 2011-02-07 16:17:20.000000000 -0600
+++ gcc/config/avr/avr.c 2011-02-07 16:12:53.000000000 -0600
@@ -202,6 +202,9 @@ static const struct attribute_spec avr_a
#undef TARGET_SCALAR_MODE_SUPPORTED_P
#define TARGET_SCALAR_MODE_SUPPORTED_P avr_scalar_mode_supported_p
+#undef TARGET_FIXED_POINT_SUPPORTED_P
+#define TARGET_FIXED_POINT_SUPPORTED_P avr_fixed_point_supported_p
+
#undef TARGET_INIT_BUILTINS
#define TARGET_INIT_BUILTINS avr_init_builtins
@@ -219,6 +222,17 @@ static const struct attribute_spec avr_a
return default_scalar_mode_supported_p (mode);
}
+ /* Implement TARGET_FIXED_POINT_SUPPORTED_P. */
+ static bool
+ avr_fixed_point_supported_p ()
+ {
+ if (AVR_TINY)
+ return false;
+
+ return default_fixed_point_supported_p ();
+ }
+
+
struct gcc_target targetm = TARGET_INITIALIZER;
void
diff -Naurp gcc/config/fixed-bit.c gcc/config/fixed-bit.c
--- gcc/config/fixed-bit.c 2009-04-09 10:00:19.000000000 -0500
+++ gcc/config/fixed-bit.c 2011-02-07 16:12:53.000000000 -0600
@@ -41,7 +41,7 @@ see the files COPYING3 and COPYING.RUNTI
Floating-point: SF, DF
Ex: If we define FROM_QQ and TO_SI, the conversion from QQ to SI is
generated. */
-
+#if !defined (__AVR_TINY__)
#include "tconfig.h"
#include "tsystem.h"
#include "coretypes.h"
@@ -1213,4 +1213,4 @@ SATFRACT (FROM_FLOAT_C_TYPE a)
return c;
}
#endif /* defined(SATFRACT) && FROM_TYPE == 3 && TO_TYPE == 4 */
-
+#endif /* __AVR_TINY__ */