From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from esa1.mentor.iphmx.com (esa1.mentor.iphmx.com [68.232.129.153]) by sourceware.org (Postfix) with ESMTPS id A190839450E5 for ; Mon, 19 Jul 2021 11:11:20 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org A190839450E5 Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=codesourcery.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=mentor.com IronPort-SDR: zQXuier6rIXiV13kkl+J+9TqtZ6lf+C47iLFFEeFKobw5q72fw0mg8qLOXqg7O6C1LNBs/oTm3 6HQSP9jTs4RPoyiwofwp4cyPDmCfVBtn99LHgtXihElYiHr/MlFUFEa7kSQ292EyiHF4P1udjP LLVvE8X4fD0Xh8N45lYpd+4Tn83ZnG3FrVeZk27/vgRx/zOR3s6oCOzr1f1kpFZJ5Ir2ASM6wC q1gJk+yWv/UUUNCft4nMxawbqeibdo+X5RVdZR5FMapsnSPcHkYIzRvG4ACdDYskxfR+6GIZKt BJLd5VfQNklR8cCUUvcnOlIm X-IronPort-AV: E=Sophos;i="5.84,252,1620720000"; d="scan'208";a="66109771" Received: from orw-gwy-02-in.mentorg.com ([192.94.38.167]) by esa1.mentor.iphmx.com with ESMTP; 19 Jul 2021 03:11:19 -0800 IronPort-SDR: KyHQHpr3RmaQfsytFFxaairqbNC+NQ8QeVcgf9LKqNgt5Bz8NUlIqie4K8yobZQbu4MNXJVnzj N2NFfeXodsGU9Sp4NjV4yiyRQZDim7TzerOZ9rJ2awPyHZot3cRGhTTFZRoMxZimAV2e8BA4Xo nATQpdMO27TEFoDeIgulNJhLMTERo2UEdGmzUWs4Tysz/wU+Y1fIuRzoN4hLNV9R4s/tURpfIX UXPEYWKgotEfyouWI6sA9KDgtWmk8DHszSN4AXn4LdRrbUHU1rD90AAaIPTA02zaHYMYaO5Mq8 0FM= Subject: =?UTF-8?Q?Re=3a_=5bgcn=5d_Work-around_libgomp_=27error=3a_array_sub?= =?UTF-8?Q?script_0_is_outside_array_bounds_of_=e2=80=98=5f=5flds_struct_gom?= =?UTF-8?B?cF90aHJlYWQgKiBfX2xkc1swXeKAmSBbLVdlcnJvcj1hcnJheS1ib3VuZHNdJyAo?= =?UTF-8?Q?was=3a_=5bPATCH_libatomic/arm=5d_avoid_warning_on_constant_addres?= =?UTF-8?Q?ses_=28PR_101379=29=29?= To: Thomas Schwinge , CC: Hafiz Abid Qadeer References: <816ce216-bf6a-75ca-4241-4861ec43ab27@gmail.com> <87pmvii29w.fsf@euler.schwinge.homeip.net> <2e085663-b619-5240-6a40-961420341ebd@codesourcery.com> <87bl6ybsic.fsf@euler.schwinge.homeip.net> From: Andrew Stubbs Message-ID: Date: Mon, 19 Jul 2021 12:10:59 +0100 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:78.0) Gecko/20100101 Thunderbird/78.12.0 MIME-Version: 1.0 In-Reply-To: <87bl6ybsic.fsf@euler.schwinge.homeip.net> Content-Type: text/plain; charset="utf-8"; format=flowed Content-Language: en-GB Content-Transfer-Encoding: 7bit X-Originating-IP: [137.202.0.90] X-ClientProxiedBy: svr-ies-mbx-02.mgc.mentorg.com (139.181.222.2) To svr-ies-mbx-01.mgc.mentorg.com (139.181.222.1) X-Spam-Status: No, score=-5.8 required=5.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS, KAM_DMARC_STATUS, NICE_REPLY_A, SPF_HELO_PASS, SPF_PASS, TXREP autolearn=no 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-patches@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-patches mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 19 Jul 2021 11:11:22 -0000 On 19/07/2021 09:46, Thomas Schwinge wrote: >> GCN already uses address 4 for this value because address 0 caused >> problems with null-pointer checks. > > Ugh. How much wasted bytes per what is that? (I haven't looked yet; > hopefully not per GPU thread?) Because: It's 4 bytes per gang. And that pointer is the only 8 bytes in the whole of LDS (OpenMP mostly uses stack and heap), so it's not so bad, but still. I did investigate the target macro that lets you control null pointer behaviour, but it didn't just work, and it wasn't important enough for me to spend more time on it so I let it go. Andrew