From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on dcvr.yhbt.net X-Spam-Level: X-Spam-Status: No, score=-3.8 required=3.0 tests=AWL,BAYES_00,DKIM_INVALID, DKIM_SIGNED,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, NICE_REPLY_A,RCVD_IN_DNSWL_HI,RCVD_IN_MSPIKE_H4,RCVD_IN_MSPIKE_WL, SPF_HELO_PASS,SPF_PASS shortcircuit=no autolearn=ham autolearn_force=no version=3.4.2 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dcvr.yhbt.net (Postfix) with ESMTPS id 15A9F1F66E for ; Mon, 15 Feb 2021 11:08:47 +0000 (UTC) Received: from localhost ([::1]:37632 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lBbkD-00083I-SQ for normalperson@yhbt.net; Mon, 15 Feb 2021 06:08:45 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:58060) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lBbk8-00080s-MG for bug-gnulib@gnu.org; Mon, 15 Feb 2021 06:08:40 -0500 Received: from mo4-p00-ob.smtp.rzone.de ([85.215.255.22]:32099) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lBbk4-0000Lz-VZ for bug-gnulib@gnu.org; Mon, 15 Feb 2021 06:08:40 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; t=1613387313; s=strato-dkim-0002; d=clisp.org; h=References:In-Reply-To:Message-ID:Date:Subject:Cc:To:From:Cc:Date: From:Subject:Sender; bh=f9gqeklfZkBppWN1CWI6Dt1pW9iP2O/bfnrewlAdXy4=; b=g8PJtw2qcXKanJaB2dfIxKegjOXuQz/JKp9Mmyd70ev2N7c9NR4K5hh7x10FLEgrrz smUqznTJWXfIPJ+xbgVpPwvLqOBo+++tdj/U/STOXLua0Gg5RzvaWOi4m5ZGxHs6AyyM SBFcEjN/nQuBk32OAvAPazmJzLfAqkX8G5WcGzg6dffW9nNtmDCvgkjYd4Aw9bpJx8pu Bo4oo0elqkAOP++rQ6jBypMNAvFJqeGjeh0A7OZgWPE2p6jlbxYnv/2Wqgq/7kTd5g6P 19vHN5eB2GbQ4/s4keyykE6GIdlGY8CwlYY1EInvng7Zkw4lY4Z87r0qQ64FwymfW/uq oZuw== X-RZG-AUTH: ":Ln4Re0+Ic/6oZXR1YgKryK8brlshOcZlIWs+iCP5vnk6shH+AHjwLuWOH6f0yJ9W" X-RZG-CLASS-ID: mo00 Received: from bruno.haible.de by smtp.strato.de (RZmta 47.18.0 DYNA|AUTH) with ESMTPSA id J0a438x1FB8W1jL (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (curve X9_62_prime256v1 with 256 ECDH bits, eq. 3072 bits RSA)) (Client did not present a certificate); Mon, 15 Feb 2021 12:08:32 +0100 (CET) From: Bruno Haible To: noloader@gmail.com Subject: Re: Fix distinction of 32-bit/64-bit mode with xlc 13.1.3 on AIX Date: Mon, 15 Feb 2021 12:08:30 +0100 Message-ID: <2117787.sjtJBD9tJU@omega> User-Agent: KMail/5.1.3 (Linux/4.4.0-201-generic; KDE/5.18.0; x86_64; ; ) In-Reply-To: References: <6456685.5lUXKWfzpP@omega> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" Received-SPF: none client-ip=85.215.255.22; envelope-from=bruno@clisp.org; helo=mo4-p00-ob.smtp.rzone.de X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, NICE_REPLY_A=-0.001, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, SPF_HELO_PASS=-0.001, SPF_NONE=0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: bug-gnulib@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Gnulib discussion list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: bug-gnulib@gnu.org Errors-To: bug-gnulib-bounces+normalperson=yhbt.net@gnu.org Sender: "bug-gnulib" Hi Jeffrey, > > So, in order to distinguish a 32-bit mode from a 64-bit mode, only the > > following macros can be used: > > - defined in 32-bit mode only: _ILP32 __ILP32__ > > - defined in 64-bit mode only: _LP64 __LP64__ __64BIT__ > > Are you sure that is correct? It almost sounds like the default is > 32-bit, and you need an option to enable 64-bit. Yes, for both compilers, 32-bit output is the default, and you need option '-q64' in order to produce 64-bit output. I verified this using the command 'file a.out'. > compiler mode is set by the value of the > OBJECT_MODE environment variable. If the > OBJECT_MODE environment variable is also not > set, the compiler assumes32-bit compilation mode. I don't have the environment variable OBJECT_MODE set. > According to the XL C/C++ manual for AIX (p. 507) [1]: > > _ARCH_PPC - Indicates that the application is > targeted to run on any Power processor. > > _ARCH_PPC64 - Indicates that the application > is targeted to run on Power processors with > 64-bit support. The new compiler's behaviour does not contradict this documentation. Bruno