Received: by 2002:ac0:8845:0:0:0:0:0 with SMTP id g63csp487545img; Tue, 26 Feb 2019 03:40:12 -0800 (PST) X-Google-Smtp-Source: AHgI3Ibh9URULEYVgSTAkw37xvh+dTrgnqTlEUAKv5UvoEAnd9Sm+EKJwwd7ZHcLeV56ZJ+yPvuI X-Received: by 2002:a63:d453:: with SMTP id i19mr23954075pgj.237.1551181212412; Tue, 26 Feb 2019 03:40:12 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1551181212; cv=none; d=google.com; s=arc-20160816; b=LYjQ839OLjLlTTyDJpQG5FITngeHY1B1txTDIpIHDJlBULB+M8IeyzJ6N1CeI3zjl7 yWvpyQTEyQ8flFI6o/rV77novaspMmWWAf/4Lobb1GmXuPQNmaW9hxcQEhB52+MbcGrv RKXTgDSECiXSpKEwoXHE8wdzIaJT+8x7ZltqNN9hbqd1R1ifhHfi5coGrqlv9UkKaVwx 5ycFmrpUuLZb72LIFISMoPZoCBS1UwKgAsMhjqeqqBDSnROVcbnb6v2TcoGwD2wdeCOi Bky2r1Vd4KTOak0Gd7MiK5xkwGvkCXMhWzQcJVQBeTG4u8nVH7fLUAnuxW8B5yOI8+Ag d6Jw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=SgzHwqbqQa6892+kC8DluEMNyaRZPOf77dEZGKPYUD0=; b=s267tzRQzee8q7YR8aLuJBUp7cXiys9/wwtrfP9+avK+zaCQRyKa1KDrmF5MWlw/qX wHL3DP2iqTEHfnHOGJJBNY7IJ6V1HhbeRxiY2AZIMQr168D25e3vXZw9ZV/LSb94DdQz M2O9vVbTRajOY/EYcQXRC7bMKC2DDKevvsKqRK4PsEk1e48Mvjch4LRDGIy55lnG8DFc 66ReJgL0IkIXGCCAZ2+WMOoX8gLq0L56tdT7huN6nZA1NBhQHTkM/tm8mGJBGcQp1zmo CeVNTdKdy8T6vvpudeXa+F9qiRsc9240fR04AVMDyrgKCHPxhy7ZzTBSCMmbHNMtXGKf OAbg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@alien8.de header.s=dkim header.b=E7UQjXtu; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=alien8.de Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id t135si12464207pgb.467.2019.02.26.03.39.56; Tue, 26 Feb 2019 03:40:12 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@alien8.de header.s=dkim header.b=E7UQjXtu; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=alien8.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726516AbfBZLiX (ORCPT + 99 others); Tue, 26 Feb 2019 06:38:23 -0500 Received: from mail.skyhub.de ([5.9.137.197]:39452 "EHLO mail.skyhub.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726004AbfBZLiX (ORCPT ); Tue, 26 Feb 2019 06:38:23 -0500 Received: from zn.tnic (p200300EC2BCDB2001DA4ECEFA9208567.dip0.t-ipconnect.de [IPv6:2003:ec:2bcd:b200:1da4:ecef:a920:8567]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.skyhub.de (SuperMail on ZX Spectrum 128k) with ESMTPSA id 3990A1EC023E; Tue, 26 Feb 2019 12:38:21 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=alien8.de; s=dkim; t=1551181101; 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: content-transfer-encoding:in-reply-to:in-reply-to: references:references; bh=SgzHwqbqQa6892+kC8DluEMNyaRZPOf77dEZGKPYUD0=; b=E7UQjXtu/H2Du4oouFSLoTtdDDNI4126VZVJnGw1wrcv0jHom29Pe2VNHaohFZr4QmKGhh 7Mc2yjHCS4wD4EEtNfo0EieP31DQlcKlMffswWCv4EkeGI2p9JQutcTJxXvbs/5fZLdJSA i8OMWOBYTBoeQQROcAmu8FonRWkB1gQ= Date: Tue, 26 Feb 2019 12:38:13 +0100 From: Borislav Petkov To: Peter Zijlstra Cc: "Paul E. McKenney" , Andrea Parri , linux-kernel@vger.kernel.org, linux-arch@vger.kernel.org, Alan Stern , Will Deacon , Boqun Feng , Nicholas Piggin , David Howells , Jade Alglave , Luc Maranget , Akira Yokosawa , Daniel Lustig Subject: Re: [RFC PATCH] tools/memory-model: Remove (dep ; rfi) from ppo Message-ID: <20190226113813.GA14753@zn.tnic> References: <20190220131456.GA3215@andrea> <20190220132714.GI32494@hirez.programming.kicks-ass.net> <20190222112128.GA7213@andrea> <20190222130014.GY32494@hirez.programming.kicks-ass.net> <20190225175517.GK4072@linux.ibm.com> <20190226093009.GS32477@hirez.programming.kicks-ass.net> <20190226104551.GF32534@hirez.programming.kicks-ass.net> <20190226112133.GG32534@hirez.programming.kicks-ass.net> <20190226112521.GH32534@hirez.programming.kicks-ass.net> <20190226113008.GI32534@hirez.programming.kicks-ass.net> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20190226113008.GI32534@hirez.programming.kicks-ass.net> User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Feb 26, 2019 at 12:30:08PM +0100, Peter Zijlstra wrote: > When I used the argc variant, gcc-8 'works', but with s/argc/1/ it is > still broken. As requested on IRC: $ gcc --version gcc (SUSE Linux) 4.8.5 Copyright (C) 2015 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. $ cat ptr.c #include #include int y = 2, x = 1; int main (int argc, char **argv) { int *p = &x + 1; int *q = &y; printf("p=%p q=%p\n", p, q); if (!memcmp(&p, &q, sizeof(p))) { *p = 11; printf("x=%d y=%d *p=%d *q=%d\n", x, y, *p, *q); $ gcc -O2 -fno-strict-aliasing -o ptr ptr.c ; ./ptr p=0x601044 q=0x601044 x=1 y=2 *p=11 *q=2 -- Regards/Gruss, Boris. Good mailing practices for 400: avoid top-posting and trim the reply.