Notice: We have migrated to GitLab launching 2024-05-01 see here: https://gitlab.rtems.org/

Ticket #1740: powerpc_spe.patch

File powerpc_spe.patch, 1.1 KB (added by dufault, on 06/18/11 at 13:28:51)

Patch against GCC 4.6.0

Line 
1*** gcc/config/rs6000/rtems.h.orig      2011-06-17 16:11:06.531471823 -0400
2--- gcc/config/rs6000/rtems.h   2011-06-17 17:25:44.860694152 -0400
3***************
4*** 57,69 ****
5    { "cpp_os_rtems",           CPP_OS_RTEMS_SPEC }
6 
7  #undef SUBSUBTARGET_OVERRIDE_OPTIONS
8! #define SUBSUBTARGET_OVERRIDE_OPTIONS                 \
9!   do {                                                        \
10!     if (TARGET_E500)                                  \
11!       {                                                       \
12!         if (!rs6000_explicit_options.float_gprs)      \
13!           rs6000_float_gprs = 1;                      \
14!       }                                                       \
15    } while(0)
16 
17  #undef WCHAR_TYPE
18--- 57,73 ----
19    { "cpp_os_rtems",           CPP_OS_RTEMS_SPEC }
20 
21  #undef SUBSUBTARGET_OVERRIDE_OPTIONS
22! #define SUBSUBTARGET_OVERRIDE_OPTIONS                                 \
23!   do {                                                                        \
24!     if (TARGET_E500)                                                  \
25!       {                                                                       \
26!         if (TARGET_HARD_FLOAT && !rs6000_explicit_options.float_gprs) \
27!           rs6000_float_gprs = 1;                                      \
28!         if (rs6000_float_gprs != 0 && !rs6000_explicit_options.spe)   \
29!           rs6000_spe = 1;                                             \
30!         if (rs6000_spe && !rs6000_explicit_options.spe_abi)           \
31!           rs6000_spe_abi = 1;                                         \
32!       }                                                                       \
33    } while(0)
34 
35  #undef WCHAR_TYPE