From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-lf1-x135.google.com (mail-lf1-x135.google.com [IPv6:2a00:1450:4864:20::135]) by sourceware.org (Postfix) with ESMTPS id 625683852C74 for ; Wed, 7 Dec 2022 11:49:28 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 625683852C74 Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-lf1-x135.google.com with SMTP id 1so14670850lfz.4 for ; Wed, 07 Dec 2022 03:49:28 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=F/nG/LGI0DuSMWcsTt/+3WdbJv/W8zoPiSNMCoTumww=; b=a/ODXkU4T4+NfIrWsiQ+ndwCmiU7YUDvgE0DlIvPSgpPO++P4B9KRjI+fPP+zUeMxn l5DsgjYgOnwx6VB7S8jqmhUsS3IB7GnI+HUXGaq0Ob/yzojduJQi5GK1FehP0o2bEKJe cj42DSm0n3GiwKKM5UV9OoRaXvMp+5C4QRp/30jE9sNPj/eMGq4mS0tBGVVDZ1eNrBdi Q1vSDpGOZX2xoj+r3x5iPXoXKIM20ECAoCd+zyU22jTuNw41Od2uLcyvl1acR7BRRmks X81SkbY3EvRRAUp2NuMMJnohCa9UXvLY9wDM1wEFfsKvKX3lWUOfvrUyYGvi2M5DRiiN uyHw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=F/nG/LGI0DuSMWcsTt/+3WdbJv/W8zoPiSNMCoTumww=; b=AJDn00/PiTRtwZvmu4w9dnLZro67+pugYQBL7g+WHSvXS5pAUlZrUKVPGPt++v/jlv pTwlfjS3gWkkQU2XoStBW9eINJKHe9EJBjsKo9EaSmJ5QMewYH2VapPv9nXHnnEFNseB ExxwsJqjdblgLEV7YUxGNAVbyoGtlM6tIi1N7lTzQ6X0WEWsL2V9YzD2JQQfl5A7Cb8n HIhZfsZl5QcduEL+4rySJl7c4FxtEYpBauOeb6/3d/ZrWylIeRJwEwFwIUHsbJS00a48 ZcrEthaTUo5chQd5MPcCBNNKTVfWzvaeK5j5tpa+PDySkzBLQKKGVA9V8L2Jl15V4CTg 9kLQ== X-Gm-Message-State: ANoB5pmCIbVsGw5gu6om8cMHx8EzCGhn48HtL2yXBz2MxIdHRHbJ8lyH tjbRfB4iPlvkEENFqj9yAXgLGfKnkJw5XxVm3jo= X-Google-Smtp-Source: AA0mqf5BCsE8hAF5Yg0hOzRraVCeYpH4RvoP8Tw3ePnmRKjwfBN5g+1p+xxUB60yGxZzUpncW7t7Gkjokprvlv/It5I= X-Received: by 2002:a05:6512:2282:b0:4b4:f88b:844 with SMTP id f2-20020a056512228200b004b4f88b0844mr20748262lfu.539.1670413766731; Wed, 07 Dec 2022 03:49:26 -0800 (PST) MIME-Version: 1.0 References: <13ec35ee-19b2-536c-42d9-28efcd01df5b@embedded-brains.de> <582f9b96-47e9-6005-8d62-fd209f979848@embedded-brains.de> <8dfe2880-783c-d63e-2315-959455988294@embedded-brains.de> <9257acd3-b9e7-3f6d-b950-fff68ece58a3@embedded-brains.de> <0a138b9c-e933-6626-58ca-50ed59b81026@embedded-brains.de> In-Reply-To: <0a138b9c-e933-6626-58ca-50ed59b81026@embedded-brains.de> From: Richard Biener Date: Wed, 7 Dec 2022 12:49:14 +0100 Message-ID: Subject: Re: -fprofile-update=atomic vs. 32-bit architectures To: Sebastian Huber Cc: GCC Development Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-1.0 required=5.0 tests=BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS,TXREP autolearn=ham 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 Wed, Dec 7, 2022 at 10:24 AM Sebastian Huber wrote: > > > > On 07.12.22 10:09, Richard Biener wrote: > > On Wed, Dec 7, 2022 at 9:51 AM Sebastian Huber > > wrote: > >> On 06.12.22 17:08, Richard Biener wrote: > >>> Likely. I'd use the gimple_build () API from gimple-fold.h which > >>> builds the expression(s) to a gimple_seq creating necessary temporari= es > >>> on-the-fly and then insert that sequence on the edge. > >> Thanks, I will have a look at this. > >> > >> I am struggling to convert a uint32_type_node node to a gcov_type_node > >> (64-bit). I tried to use this: > >> > >> if (result !=3D NULL_TREE) > >> { > >> tree tmp1 =3D make_temp_ssa_name (gcov_type_node, NULL, na= me); > >> gassign *stmt7 =3D gimple_build_assign (result, VIEW_CONVER= T_EXPR, > >> build1 (VIEW_CONVERT_EXPR, gcov_type_node, > >> high)); > > You want > > > > gimple_build_assign (result, NOP_EXPR, high); > > > > here (a conversion, from unsigned it will zero-extend) > > Thanks, with this NOP_EXPR it did work. I have now a proof of concept > ready. Should I wait for the GCC 14 development cycle or can I post a > patch set now? You can surely post a patch now, if it addresses a bug it could be even considered. Richard. > -- > embedded brains GmbH > Herr Sebastian HUBER > Dornierstr. 4 > 82178 Puchheim > Germany > email: sebastian.huber@embedded-brains.de > phone: +49-89-18 94 741 - 16 > fax: +49-89-18 94 741 - 08 > > Registergericht: Amtsgericht M=C3=BCnchen > Registernummer: HRB 157899 > Vertretungsberechtigte Gesch=C3=A4ftsf=C3=BChrer: Peter Rasmussen, Thomas= D=C3=B6rfler > Unsere Datenschutzerkl=C3=A4rung finden Sie hier: > https://embedded-brains.de/datenschutzerklaerung/