From 561ee68a37add471ba206c25a29197498802cbed Mon Sep 17 00:00:00 2001 From: Mike Sullivan Date: Wed, 14 Mar 2018 17:17:23 +0000 Subject: testing/ocaml-lwt: avoid ocaml-lambda-term ppc64 build failure ...by inlining result_lseek functions. --- testing/ocaml-lwt/result_lseek_noinline.patch | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 testing/ocaml-lwt/result_lseek_noinline.patch (limited to 'testing/ocaml-lwt/result_lseek_noinline.patch') diff --git a/testing/ocaml-lwt/result_lseek_noinline.patch b/testing/ocaml-lwt/result_lseek_noinline.patch new file mode 100644 index 0000000000..2e2fd1552d --- /dev/null +++ b/testing/ocaml-lwt/result_lseek_noinline.patch @@ -0,0 +1,20 @@ +--- a/src/unix/unix_c/unix_lseek_job.c ++++ b/src/unix/unix_c/unix_lseek_job.c +@@ -92,7 +92,7 @@ + } + + /* The function building the caml result. */ +-static value result_lseek(struct job_lseek* job) ++__attribute__((noinline)) static value result_lseek(struct job_lseek* job) + { + value result; + /* Check for errors. */ +@@ -113,7 +113,7 @@ + } + + /* The function building the caml result. */ +-static value result_lseek_64(struct job_lseek* job) ++__attribute__((noinline)) static value result_lseek_64(struct job_lseek* job) + { + value result; + /* Check for errors. */ -- cgit v1.2.3