gcc: port missing patches from 4.6 to 4.8
[openwrt/staging/chunkeey.git] / toolchain / gcc / patches / 4.7-linaro / 870-ppc_no_crtsavres.patch
1 --- a/gcc/config/rs6000/sysv4.h
2 +++ b/gcc/config/rs6000/sysv4.h
3 @@ -245,13 +245,13 @@ do { \
4
5 /* Define cutoff for using external functions to save floating point.
6 When optimizing for size, use external functions when profitable. */
7 -#define FP_SAVE_INLINE(FIRST_REG) (optimize_size \
8 +#define FP_SAVE_INLINE(FIRST_REG) (1 || (optimize_size \
9 ? ((FIRST_REG) == 62 \
10 || (FIRST_REG) == 63) \
11 - : (FIRST_REG) < 64)
12 + : (FIRST_REG) < 64))
13 /* And similarly for general purpose registers. */
14 -#define GP_SAVE_INLINE(FIRST_REG) ((FIRST_REG) < 32 \
15 - && !optimize_size)
16 +#define GP_SAVE_INLINE(FIRST_REG) (1 || ((FIRST_REG) < 32 \
17 + && !optimize_size))
18
19 /* Put jump tables in read-only memory, rather than in .text. */
20 #define JUMP_TABLES_IN_TEXT_SECTION 0