From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from eggs.gnu.org (eggs.gnu.org [IPv6:2001:470:142:3::10]) by sourceware.org (Postfix) with ESMTPS id 35AF73870C03 for ; Mon, 4 Dec 2023 21:25:35 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 35AF73870C03 Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=codesourcery.com Authentication-Results: sourceware.org; spf=tempfail smtp.mailfrom=mentor.com ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 35AF73870C03 Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=2001:470:142:3::10 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1701725145; cv=none; b=BYoIZRcIjIt2c/TjoCGFinlN3H28j8tLBJ9t8IPbGgFg1ep1Z8+76d7wlv16vmmL/msL+5yDcLgC+4aAfrF4UOLfV3n36bkQky10V/11keE5l/u5tnXc3nMvsf5IAjkWly95rTWJZXBCbGpbSQ6PxiBScU09B5HiV4h2i+Xxqsw= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1701725145; c=relaxed/simple; bh=+0MLOQWIbpHAzmAC7j/A9QKhx9SqQDz+aiM2PdTKb0E=; h=Date:From:To:Subject:Message-ID:MIME-Version; b=Qd6LB6c0KbkhRehvRXQZn365V3hc7x0DuO9DbgSp56oVaYjyvliRFbIBh+m8iyHppyk2A/lUTgP9r+wlNf9Ex8L3vVH6zHB69UIVPQ1Qw5IULGSwgNZVLyR7/ea6nPFbgv4hORjTJhVlCfn3vHHaECFr9TvDEWtNIY8BEpVMh8Y= ARC-Authentication-Results: i=1; server2.sourceware.org Received: from esa1.mentor.iphmx.com ([68.232.129.153]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rAGRZ-0000hN-1J for gcc-patches@gcc.gnu.org; Mon, 04 Dec 2023 16:25:34 -0500 X-CSE-ConnectionGUID: PM6tB413QdCi35NydBW5uQ== X-CSE-MsgGUID: qBgIJUQORVevq6XodtcRyA== X-IronPort-AV: E=Sophos;i="6.04,250,1695715200"; d="scan'208";a="27637130" Received: from orw-gwy-02-in.mentorg.com ([192.94.38.167]) by esa1.mentor.iphmx.com with ESMTP; 04 Dec 2023 13:24:28 -0800 IronPort-SDR: pziuWZ4qjzqgUtN3eoHKBQYog/HlvakcXnyQw3EL+jAsg8T6qAm2aOdzIi1PwlYHl70qt5/lmw jbgnGiXBvUbIsSYk7tFvtER9qB7Fj0XRfJHzEyO78ylVQp3+IDnPJr5HsaLBuWd6fyfNObnJ+M EPKsWepPQHgHeo0e3UjZT7L80CPADiBLjJfujNHxatzX2/tRAmCESAoS5WTS89VJxzW4uivKIB Zkz3SVxghoFE9ue6hCIEgWpmJpir+E9vUm2g3DiDyyrx+PG1FCiXNxT3jcNNZOzKKDAgWMINTn URw= Date: Mon, 4 Dec 2023 21:24:24 +0000 From: Joseph Myers To: Richard Biener CC: Subject: Re: [PATCH] c/89270 - honor registered_builtin_types in type_for_size In-Reply-To: <20231204132429.AB3CA13588@imap2.dmz-prg2.suse.org> Message-ID: References: <20231204132429.AB3CA13588@imap2.dmz-prg2.suse.org> MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" X-Originating-IP: [137.202.0.90] X-ClientProxiedBy: svr-ies-mbx-10.mgc.mentorg.com (139.181.222.10) To svr-ies-mbx-10.mgc.mentorg.com (139.181.222.10) Received-SPF: pass client-ip=68.232.129.153; envelope-from=joseph_myers@mentor.com; helo=esa1.mentor.iphmx.com X-Spam_score_int: -39 X-Spam_score: -4.0 X-Spam_bar: ---- X-Spam_report: (-4.0 / 5.0 requ) BAYES_00=-1.9,HEADER_FROM_DIFFERENT_DOMAINS=0.25,RCVD_IN_DNSWL_MED=-2.3,SPF_HELO_PASS=-0.001,SPF_PASS=-0.001,T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Status: No, score=-3580.4 required=5.0 tests=BAYES_00,HEADER_FROM_DIFFERENT_DOMAINS,KAM_DMARC_STATUS,SPF_HELO_PASS,TXREP,T_SCC_BODY_TEXT_LINE,T_SPF_TEMPERROR autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org List-Id: On Mon, 4 Dec 2023, Richard Biener wrote: > The following fixes the intermediate conversions inserted by > convert_to_integer when facing address-spaces and converts > to their effective [u]intptr_t when they are registered_builtin_types > by considering those also from c_common_type_for_size and not > only from c_common_type_for_mode. > > Bootstrap and regtest on x86_64-unknown-linux-gnu, OK? OK, but I also think AVR should define its __int24 type using INT_N in avr-modes.def, which should also serve to avoid this problem. -- Joseph S. Myers joseph@codesourcery.com