/[gentoo-x86]/sys-devel/gcc-apple/files/gcc-apple-4.0.1_p5465-default-altivec.patch
Gentoo

Contents of /sys-devel/gcc-apple/files/gcc-apple-4.0.1_p5465-default-altivec.patch

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.1 - (show annotations) (download)
Sun Jun 28 11:07:43 2009 UTC (8 years, 3 months ago) by grobian
Branch: MAIN
CVS Tags: HEAD
apple is not a valid herd
(Portage version: 2.2.00.13629-prefix/cvs/Darwin powerpc)

1 * reverse patch to gain 10.4 behaviour for AltiVec.
2
3 --- gcc/config/rs6000/rs6000-c.c
4 +++ gcc/config/rs6000/rs6000-c.c
5 @@ -245,22 +245,22 @@
6 builtin_define ("__bool=__attribute__((altivec(bool__))) unsigned");
7
8 /* APPLE LOCAL begin AltiVec */
9 + builtin_define ("vector=vector");
10 + builtin_define ("pixel=pixel");
11 + builtin_define ("_Bool=_Bool");
12 + builtin_define ("bool=bool");
13 + init_vector_keywords (pfile);
14 +
15 + /* Indicate that the compiler supports Apple AltiVec syntax,
16 + including context-sensitive keywords. */
17 if (rs6000_altivec_pim)
18 {
19 - builtin_define ("vector=vector");
20 - builtin_define ("pixel=pixel");
21 - builtin_define ("_Bool=_Bool");
22 - builtin_define ("bool=bool");
23 - init_vector_keywords (pfile);
24 -
25 - /* Indicate that the compiler supports Apple AltiVec syntax,
26 - including context-sensitive keywords. */
27 builtin_define ("__APPLE_ALTIVEC__");
28 builtin_define ("vec_step(T)=(sizeof (__typeof__(T)) / sizeof (__typeof__(T) __attribute__((altivec(element__)))))");
29 -
30 - /* Enable context-sensitive macros. */
31 - cpp_get_callbacks (pfile)->macro_to_expand = rs6000_macro_to_expand;
32 }
33 +
34 + /* Enable context-sensitive macros. */
35 + cpp_get_callbacks (pfile)->macro_to_expand = rs6000_macro_to_expand;
36 /* APPLE LOCAL end AltiVec */
37 }
38 if (TARGET_SPE)

  ViewVC Help
Powered by ViewVC 1.1.20