From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.3 required=5.0 tests=BAYES_00,INVALID_MSGID autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,747be3e35071507b X-Google-Attributes: gid103376,public From: dewar@cs.nyu.edu (Robert Dewar) Subject: Re: Calling C function with structure parameter from ADA Date: 1995/04/07 Message-ID: #1/1 X-Deja-AN: 100070427 references: <3lbu1o$n3p@theopolis.orl.mmc.com> <3m48lp$jdh@usafa2.usafa.af.mil> organization: Courant Institute of Mathematical Sciences newsgroups: comp.lang.ada Date: 1995-04-07T00:00:00+00:00 List-Id: Christopher, GCC goes out of its way to guarantee data compatibility and calling sequence compatibility with the native C compilers in a given configuration. If you ever find a case where there is an incompatibility, then GCC considers it a bug, and you should report it to the GCC mailing list as a bug. We know of no such bugs currently in any of the several hundred configurations supported by GCC. So When I say that GNAT's calling approach is compatible with C, I really mean that, I don't just mean it is compatible with GCC. Of course there is no guarantee that there is not a bug, but bugs can appear anywhere, and it definitely would be considered to be a bug if GNAT passed a record by value where C would pass it by address. If you find such a case, report it as a bug!