aboutsummaryrefslogtreecommitdiff
path: root/gcc/c-pch.c
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/c-pch.c')
-rw-r--r--gcc/c-pch.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/gcc/c-pch.c b/gcc/c-pch.c
index 5c71ad107b3..58be5521468 100644
--- a/gcc/c-pch.c
+++ b/gcc/c-pch.c
@@ -45,6 +45,8 @@ static const struct c_pch_matching
const char *flag_name;
} pch_matching[] = {
{ &flag_exceptions, "-fexceptions" },
+ /* APPLE LOCAL Altivec 3837840 */
+ { &flag_faltivec, "-faltivec" },
{ &flag_unit_at_a_time, "-funit-at-a-time" }
};
@@ -465,6 +467,10 @@ c_common_no_more_pch (void)
}
}
+/* APPLE LOCAL begin distcc pch indirection --mrs */
+const char *indirect_file PARAMS ((const char *, int));
+/* APPLE LOCAL end distcc pch indirection --mrs */
+
/* Handle #pragma GCC pch_preprocess, to load in the PCH file. */
#ifndef O_BINARY
@@ -493,6 +499,10 @@ c_common_pch_pragma (cpp_reader *pfile)
name = TREE_STRING_POINTER (name_t);
+ /* APPLE LOCAL begin distcc pch indirection --mrs */
+ name = indirect_file (name, 0);
+ /* APPLE LOCAL end distcc pch indirection --mrs */
+
fd = open (name, O_RDONLY | O_BINARY, 0666);
if (fd == -1)
fatal_error ("%s: couldn%'t open PCH file: %m\n", name);