summaryrefslogtreecommitdiff
path: root/gcc/tree-stdarg.c
diff options
context:
space:
mode:
authorBernd Schmidt <bernds@codesourcery.com>2015-02-20 10:01:17 +0000
committerJakub Jelinek <jakub@gcc.gnu.org>2015-02-20 11:01:17 +0100
commitdb3267c60664bcfa8d7b0683a5567b24432b5a48 (patch)
tree710955b79268344e8171ec3149def3129c01c4ef /gcc/tree-stdarg.c
parent6b66981a2f73615e0d3bb422a44b70a2ff38740d (diff)
tree-streamer.c (preload_common_nodes): Don't preload TI_VA_LIST* for offloading.
* tree-streamer.c (preload_common_nodes): Don't preload TI_VA_LIST* for offloading. * tree-stdarg.c (pass_stdarg::gate): Disable for ACCEL_COMPILER in_lto_p. Co-Authored-By: Jakub Jelinek <jakub@redhat.com> From-SVN: r220846
Diffstat (limited to 'gcc/tree-stdarg.c')
-rw-r--r--gcc/tree-stdarg.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/gcc/tree-stdarg.c b/gcc/tree-stdarg.c
index 17d51a20fd3..0c70790f3eb 100644
--- a/gcc/tree-stdarg.c
+++ b/gcc/tree-stdarg.c
@@ -705,6 +705,13 @@ public:
virtual bool gate (function *fun)
{
return (flag_stdarg_opt
+#ifdef ACCEL_COMPILER
+ /* Disable for GCC5 in the offloading compilers, as
+ va_list and gpr/fpr counter fields are not merged.
+ In GCC6 when stdarg is lowered late this shouldn't be
+ an issue. */
+ && !in_lto_p
+#endif
/* This optimization is only for stdarg functions. */
&& fun->stdarg != 0);
}