diagnose teams not closely nested inside of target.
Backported from mainline
+ 2019-12-14 Jakub Jelinek <jakub@redhat.com>
+
+ PR tree-optimization/92930
+ * ipa-pure-const.c (special_builtin_state): Don't handle
+ BUILT_IN_APPLY.
+
2019-12-12 Jakub Jelinek <jakub@redhat.com>
PR target/92904
case BUILT_IN_CXA_END_CLEANUP:
case BUILT_IN_EH_COPY_VALUES:
case BUILT_IN_FRAME_ADDRESS:
- case BUILT_IN_APPLY:
case BUILT_IN_APPLY_ARGS:
case BUILT_IN_ASAN_BEFORE_DYNAMIC_INIT:
case BUILT_IN_ASAN_AFTER_DYNAMIC_INIT:
2019-12-20 Jakub Jelinek <jakub@redhat.com>
Backported from mainline
+ 2019-12-14 Jakub Jelinek <jakub@redhat.com>
+
+ PR tree-optimization/92930
+ * gcc.dg/tree-ssa/pr92930.c: New test.
+
2019-12-12 Jakub Jelinek <jakub@redhat.com>
PR target/92904
--- /dev/null
+/* PR tree-optimization/92930 */
+/* { dg-do compile { target untyped_assembly } } */
+/* { dg-options "-O2 -fdump-tree-optimized" } */
+/* { dg-final { scan-tree-dump "__builtin_apply " "optimized" } } */
+/* { dg-final { scan-tree-dump "__builtin_apply_args" "optimized" } } */
+
+void foo (int a, int b, int c, int d, int e, int f, int g);
+
+static void bar (int a, ...)
+{
+ __builtin_apply (foo, __builtin_apply_args (), 20);
+}
+
+int
+main ()
+{
+ bar (1024, 1025, 1026, 1027, 1028, 1029, 1030);
+ return 0;
+}