From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by sourceware.org (Postfix) with ESMTPS id 56B4C3858402 for ; Mon, 10 Jan 2022 08:38:42 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 56B4C3858402 Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-620-VcQg6MjIPAG9wg3idJZC3Q-1; Mon, 10 Jan 2022 03:38:36 -0500 X-MC-Unique: VcQg6MjIPAG9wg3idJZC3Q-1 Received: from smtp.corp.redhat.com (int-mx05.intmail.prod.int.phx2.redhat.com [10.5.11.15]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 610291937FC1; Mon, 10 Jan 2022 08:38:35 +0000 (UTC) Received: from oldenburg.str.redhat.com (unknown [10.39.192.102]) by smtp.corp.redhat.com (Postfix) with ESMTPS id CB05B56A8A; Mon, 10 Jan 2022 08:38:33 +0000 (UTC) From: Florian Weimer To: Jeff Law via Gcc Cc: Paul Koning , Iain Sandoe , Jeff Law Subject: Re: Help with an ABI peculiarity References: <6238c748-c7f3-159b-0464-2175eb6d1b0a@gmail.com> Date: Mon, 10 Jan 2022 09:38:32 +0100 In-Reply-To: <6238c748-c7f3-159b-0464-2175eb6d1b0a@gmail.com> (Jeff Law via Gcc's message of "Sat, 8 Jan 2022 09:35:52 -0700") Message-ID: <877db80yuv.fsf@oldenburg.str.redhat.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.2 (gnu/linux) MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.79 on 10.5.11.15 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-6.5 required=5.0 tests=BAYES_00, DKIMWL_WL_HIGH, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, RCVD_IN_DNSWL_LOW, RCVD_IN_MSPIKE_H3, RCVD_IN_MSPIKE_WL, SPF_HELO_NONE, SPF_NONE, TXREP autolearn=ham autolearn_force=no version=3.4.4 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on server2.sourceware.org X-BeenThere: gcc@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 10 Jan 2022 08:38:43 -0000 * Jeff Law via Gcc: > Most targets these days use registers for parameter passing and > obviously we can run out of registers on all of them.=C2=A0 The key > property is the size/alignment of the argument differs depending on if > it's pass in a register (get promoted) or passed in memory (not > promoted).=C2=A0 I'm not immediately aware of another ABI with that > feature.=C2=A0 Though I haven't really gone looking. I think what AArch64 Darwin does is not compatible with a GCC extension that allows calling functions defined with a prototype without it (for pre-ISO-C compatibility). Given that, anyone defining an ABI in parallel with a GCC implementation probably has paused, reconsidered what they were doing, and adjusted the ABI for K&R compatibility. Thanks, Florian