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 57E833858003 for ; Tue, 13 Feb 2024 15:34:33 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 57E833858003 Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=redhat.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=redhat.com ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 57E833858003 Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=170.10.133.124 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1707838474; cv=none; b=vR6L85CBNHWQ59Amnc6H4Sfh9Lt6sngZk3oLsxCu9B5OxGxu8LxylNGmqRdF9YcYZRfqR9sFHenwQmHNU/Q6XaALekHwr3C3LaTwthkriK68xVo9X/5dSg2N27HbMWukxd7pk8g/VrO3D1mGVhekMUlzb/yt8g0RHJbnV0rGF/k= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1707838474; c=relaxed/simple; bh=TP5bSWikin9sq0tKliuVWlKz3V9lP2OP1HttXWpCqpo=; h=DKIM-Signature:Date:From:To:Subject:Message-ID:MIME-Version; b=jyfuuNFUekr9RZDA1pbCGInqfJ9U2JjFbjOWwGfwchPx0IOenf+byu8QdJyUy/0kRlgAWtTZGXE8qhbbbl0GDSknod9WaRvJtn5MwnIn1vIh29Fvps9Fw/qJPvlkwxeME5b1kekl+VY5aOxcAG7npLonKkMlo1YTkEa5h1/20T8= ARC-Authentication-Results: i=1; server2.sourceware.org DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1707838473; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=jEFDen7TD72esAsVZBqrAo93jjNf+4btfc/6L9TKdTI=; b=jLCBe5drNubqtDITQuvjuhIR8yoN3Ka6LRQbbYTPWdH/5PTAtrpCJ6145EGYU2ifGNkVMK 4T/0OVuYfQNSmzTnV3IC73UMROipNOQkqLB5Hq4pNTbDu48oxOQOqgV+iYGwlC8OgX+Q3i 8IQt+7EE35Suc9JJ/mvcX9UnpGdRvN4= Received: from mail-wr1-f69.google.com (mail-wr1-f69.google.com [209.85.221.69]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-286-w2zelRo1NESQHkcnrwekPw-1; Tue, 13 Feb 2024 10:34:31 -0500 X-MC-Unique: w2zelRo1NESQHkcnrwekPw-1 Received: by mail-wr1-f69.google.com with SMTP id ffacd0b85a97d-33cd702d2ccso294399f8f.2 for ; Tue, 13 Feb 2024 07:34:31 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1707838470; x=1708443270; h=mime-version:references:message-id:in-reply-to:subject:cc:to:from :date:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=jEFDen7TD72esAsVZBqrAo93jjNf+4btfc/6L9TKdTI=; b=nZgmrxSLVLdEElGulSSpSL2fuEIvqClFkToqzj6ZnYvX2LH2gGJkoax4lpDDLSKRzw 7GFfvS9gqXglcpoDp06Qt1fywb5FUSbBQi2vz/BJDTnHYs3HwY7xjmHiZV6q3GilqBUJ IHGGIVFpVtVgjj7TBoDXSs/e9Eel/rlanyLMqkcLFhiVixOwEedUQC0/BM5RBwUUwa6I uTRhPDkCOVk+t6yAzBLT7z7ke/YnoKCeCPhaxwLj4mHN0oJZ7v9HbcW2ud8r2TGnE12e acuadRoKbJgsElS2Q5RxX98ocj4RPW0jfKC1Utxt6nw1I9H8HWMpH4yJFWI0ykHCdgNY cepQ== X-Gm-Message-State: AOJu0YwpHw+0nuRE/6H8uDejBfyH2Sq+I1Oczg72MokCSHi+lZNzeZ/T Z4DB6GU/pw72lVnZjXd1laQ9RDFtjcR0ZgyChh5K9L1/Wl1P0i4X0YiHVvd0CcjwUdapVoUEbKy JKsnJf51Iv7cUXDnppdeGBBMpkluIHQr22jNSy0RvqaH+ X-Received: by 2002:a5d:68d2:0:b0:33b:1c2f:d0d2 with SMTP id p18-20020a5d68d2000000b0033b1c2fd0d2mr5693901wrw.35.1707838470761; Tue, 13 Feb 2024 07:34:30 -0800 (PST) X-Google-Smtp-Source: AGHT+IEcwunL6LJwkD4fTiRaUFivETY0YB94ndC7cfZHQI1+VyV+MAgtD5aiMFv9jpbY7TiNB7rYbA== X-Received: by 2002:a5d:68d2:0:b0:33b:1c2f:d0d2 with SMTP id p18-20020a5d68d2000000b0033b1c2fd0d2mr5693891wrw.35.1707838470415; Tue, 13 Feb 2024 07:34:30 -0800 (PST) Received: from digraph.polyomino.org.uk (digraph.polyomino.org.uk. [2001:8b0:bf73:93f7::51bb:e332]) by smtp.gmail.com with ESMTPSA id by16-20020a056000099000b0033b75e5bc13sm8645080wrb.1.2024.02.13.07.34.30 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 13 Feb 2024 07:34:30 -0800 (PST) Received: from jsm28 (helo=localhost) by digraph.polyomino.org.uk with local-esmtp (Exim 4.95) (envelope-from ) id 1rZun4-001a5e-1A; Tue, 13 Feb 2024 15:33:46 +0000 Date: Tue, 13 Feb 2024 15:33:46 +0000 (UTC) From: Joseph Myers To: Ties Klappe cc: gcc@gcc.gnu.org Subject: Re: Nested restrict pointers: missed optimization & client with UB? In-Reply-To: Message-ID: References: <4b5ab0fa-7f70-4617-379-a80c94b1dc6@redhat.com> MIME-Version: 1.0 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Type: text/plain; charset=US-ASCII X-Spam-Status: No, score=-4.3 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H4,RCVD_IN_MSPIKE_WL,SPF_HELO_NONE,SPF_NONE,TXREP,T_SCC_BODY_TEXT_LINE 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 Tue, 13 Feb 2024, Ties Klappe via Gcc wrote: > Thank you both for your quick replies. > > @Joseph, thank you for linking me to the other issue. If I understand > correctly what the point is, would you then agree that the program main > when calling foo2 has *defined* behavior? I think that's the case, yes. -- Joseph S. Myers josmyers@redhat.com