From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Original-To: caml-list@sympa.inria.fr Delivered-To: caml-list@sympa.inria.fr Received: from mail3-relais-sop.national.inria.fr (mail3-relais-sop.national.inria.fr [192.134.164.104]) by sympa.inria.fr (Postfix) with ESMTPS id 28C83820A1 for ; Wed, 21 Aug 2013 18:38:10 +0200 (CEST) Received-SPF: None (mail3-smtp-sop.national.inria.fr: no sender authenticity information available from domain of monnier.florent@gmail.com) identity=pra; client-ip=209.85.212.169; receiver=mail3-smtp-sop.national.inria.fr; envelope-from="monnier.florent@gmail.com"; x-sender="monnier.florent@gmail.com"; x-conformance=sidf_compatible Received-SPF: Pass (mail3-smtp-sop.national.inria.fr: domain of monnier.florent@gmail.com designates 209.85.212.169 as permitted sender) identity=mailfrom; client-ip=209.85.212.169; receiver=mail3-smtp-sop.national.inria.fr; envelope-from="monnier.florent@gmail.com"; x-sender="monnier.florent@gmail.com"; x-conformance=sidf_compatible; x-record-type="v=spf1" Received-SPF: None (mail3-smtp-sop.national.inria.fr: no sender authenticity information available from domain of postmaster@mail-wi0-f169.google.com) identity=helo; client-ip=209.85.212.169; receiver=mail3-smtp-sop.national.inria.fr; envelope-from="monnier.florent@gmail.com"; x-sender="postmaster@mail-wi0-f169.google.com"; x-conformance=sidf_compatible X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AkoCAKXsFFLRVdSpk2dsb2JhbABagzpRwHsIFg4BAQEBBwsLCRQEJIJSGQEbHgMSEF0BEQEFAYgyAQMPlCeDAIxQgwOENQoZJw1kgRYBBQyQZoN+A5djgS2ORRYphEU6 X-IPAS-Result: AkoCAKXsFFLRVdSpk2dsb2JhbABagzpRwHsIFg4BAQEBBwsLCRQEJIJSGQEbHgMSEF0BEQEFAYgyAQMPlCeDAIxQgwOENQoZJw1kgRYBBQyQZoN+A5djgS2ORRYphEU6 X-IronPort-AV: E=Sophos;i="4.89,929,1367964000"; d="scan'208";a="24430526" Received: from mail-wi0-f169.google.com ([209.85.212.169]) by mail3-smtp-sop.national.inria.fr with ESMTP/TLS/RC4-SHA; 21 Aug 2013 18:37:57 +0200 Received: by mail-wi0-f169.google.com with SMTP id l12so974002wiv.4 for ; Wed, 21 Aug 2013 09:37:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type; bh=F/cFet5A4hgaqa1+3rkE6hn13dC7TB873gt1dVwXAa4=; b=MC8iESxxWevKwclyXs1KdCEDm4GO8SnIWDeVTOcAjyfBdS+iUGNZMVTUlvsr4mzFRv vp+5o5foYMOUKDAUFYBy7XG1uPqLlM1x4ST0tQecfHEoe3FrRVz8t7n6pHXmTI+RxzU+ wDuJsNCFqtw8Nz0XNFXRGikPyapjqcRAamRP0a5LudRfHOeLln8hkebZucN2TmCNgD97 58DpcnLwWksQvRSQDMt3RhLGYGUbMXWBWamSAUxT+hVnWUBbD1KuhlOpCKVY7Y1c0MKn zVEaTWceEoQjazb7Pc0J7n08ahIUw24T2JXGFp2zBD5msgCD350DSl98/ioU+VHWClf/ wSdg== MIME-Version: 1.0 X-Received: by 10.180.182.67 with SMTP id ec3mr17094105wic.1.1377103076498; Wed, 21 Aug 2013 09:37:56 -0700 (PDT) Received: by 10.194.16.5 with HTTP; Wed, 21 Aug 2013 09:37:56 -0700 (PDT) Date: Wed, 21 Aug 2013 18:37:56 +0200 Message-ID: From: Florent Monnier To: caml-list@inria.fr Content-Type: text/plain; charset=ISO-8859-1 X-Validation-by: monnier.florent@gmail.com Subject: [Caml-list] external function with arity > 5 and "noalloc" Hi, I'm not sure if this behavior is a bug or not. Here a given function defined in a stub: cat > bind.ml < v2:int -> v3:int -> v4:int -> v5:int -> v6:int -> int = "bind_f" "bind_f_bc" "noalloc" EOF if compiles fine with all warnings on: ocamlopt -c -w +A -warn-error +A bind.ml if will also compile fine with: = "bind_f" "bind_f_bc" if I put only: = "bind_f" I get a compilation error, which is what I expected: ocamlopt -c -w +A -warn-error +A bind.ml File "bind.ml", line 2, characters 2-75: Error: An external function with more than 5 arguments requires a second stub function for native-code compilation But now if I write this way: = "bind_f" "noalloc" then I get no compile error anymore. I may be wrong again, but I guess this is not the expected behavior. In case this is indeed a bug, maybe I've been through mantis list without seeing it, but it seems not to be registered yet. -- Regards