]>
Commit | Line | Data |
---|---|---|
dbe7ab63 | 1 | diff -Naurp gcc/config/avr/avr.c gcc/config/avr/avr.c |
6ef8d480 PZ |
2 | --- gcc/config/avr/avr.c 2011-10-27 18:00:50.000000000 +0530 |
3 | +++ gcc/config/avr/avr.c 2011-10-27 18:05:35.000000000 +0530 | |
4 | @@ -246,6 +246,9 @@ static const struct default_options avr_ | |
dbe7ab63 | 5 | #undef TARGET_SCALAR_MODE_SUPPORTED_P |
6 | #define TARGET_SCALAR_MODE_SUPPORTED_P avr_scalar_mode_supported_p | |
7 | ||
8 | +#undef TARGET_FIXED_POINT_SUPPORTED_P | |
9 | +#define TARGET_FIXED_POINT_SUPPORTED_P avr_fixed_point_supported_p | |
10 | + | |
11 | #undef TARGET_INIT_BUILTINS | |
12 | #define TARGET_INIT_BUILTINS avr_init_builtins | |
13 | ||
6ef8d480 | 14 | @@ -263,6 +266,17 @@ static const struct default_options avr_ |
dbe7ab63 | 15 | return default_scalar_mode_supported_p (mode); |
16 | } | |
17 | ||
18 | + /* Implement TARGET_FIXED_POINT_SUPPORTED_P. */ | |
19 | + static bool | |
20 | + avr_fixed_point_supported_p () | |
21 | + { | |
22 | + if (AVR_TINY) | |
23 | + return false; | |
24 | + | |
25 | + return default_fixed_point_supported_p (); | |
26 | + } | |
27 | + | |
28 | + | |
29 | struct gcc_target targetm = TARGET_INITIALIZER; | |
30 | \f | |
6ef8d480 | 31 | static void |
dbe7ab63 | 32 | diff -Naurp gcc/config/fixed-bit.c gcc/config/fixed-bit.c |
6ef8d480 PZ |
33 | --- gcc/config/fixed-bit.c 2011-10-27 17:57:06.000000000 +0530 |
34 | +++ gcc/config/fixed-bit.c 2011-10-27 18:05:35.000000000 +0530 | |
dbe7ab63 | 35 | @@ -41,7 +41,7 @@ see the files COPYING3 and COPYING.RUNTI |
36 | Floating-point: SF, DF | |
37 | Ex: If we define FROM_QQ and TO_SI, the conversion from QQ to SI is | |
38 | generated. */ | |
39 | - | |
40 | +#if !defined (__AVR_TINY__) | |
41 | #include "tconfig.h" | |
42 | #include "tsystem.h" | |
43 | #include "coretypes.h" | |
44 | @@ -1213,4 +1213,4 @@ SATFRACT (FROM_FLOAT_C_TYPE a) | |
45 | return c; | |
46 | } | |
47 | #endif /* defined(SATFRACT) && FROM_TYPE == 3 && TO_TYPE == 4 */ | |
48 | - | |
49 | +#endif /* __AVR_TINY__ */ |