From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 95161 invoked by alias); 1 Jun 2017 16:03:05 -0000 Mailing-List: contact gcc-patches-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-patches-owner@gcc.gnu.org Received: (qmail 95078 invoked by uid 89); 1 Jun 2017 16:03:04 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-2.4 required=5.0 tests=AWL,BAYES_00,FREEMAIL_FROM,MIME_BASE64_BLANKS,RCVD_IN_DNSWL_NONE,SPF_HELO_PASS,SPF_PASS autolearn=ham version=3.3.2 spammy=HCC:D*de X-HELO: EUR02-HE1-obe.outbound.protection.outlook.com Received: from mail-oln040092068019.outbound.protection.outlook.com (HELO EUR02-HE1-obe.outbound.protection.outlook.com) (40.92.68.19) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Thu, 01 Jun 2017 16:03:02 +0000 Received: from VE1EUR02FT022.eop-EUR02.prod.protection.outlook.com (10.152.12.55) by VE1EUR02HT138.eop-EUR02.prod.protection.outlook.com (10.152.13.56) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.1101.12; Thu, 1 Jun 2017 16:03:03 +0000 Received: from AM4PR0701MB2162.eurprd07.prod.outlook.com (10.152.12.53) by VE1EUR02FT022.mail.protection.outlook.com (10.152.12.79) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1101.12 via Frontend Transport; Thu, 1 Jun 2017 16:03:03 +0000 Received: from AM4PR0701MB2162.eurprd07.prod.outlook.com ([fe80::2073:585b:84f6:9881]) by AM4PR0701MB2162.eurprd07.prod.outlook.com ([fe80::2073:585b:84f6:9881%17]) with mapi id 15.01.1143.009; Thu, 1 Jun 2017 16:03:02 +0000 From: Bernd Edlinger To: Jason Merrill CC: Martin Sebor , "gcc-patches@gcc.gnu.org" , Joseph Myers , Jeff Law , Richard Biener , Jakub Jelinek , Marek Polacek Subject: [PING**2] [PATCH] Implement a warning for bogus sizeof(pointer) / sizeof(pointer[0]) Date: Thu, 01 Jun 2017 16:03:00 -0000 Message-ID: References: <776bb206-7b8e-1878-5411-3f1cdaabac05@gmail.com> <20432ae0-2c58-42a0-cc71-dd128187af45@gmail.com> In-Reply-To: authentication-results: redhat.com; dkim=none (message not signed) header.d=none;redhat.com; dmarc=none action=none header.from=hotmail.de; x-incomingtopheadermarker: OriginalChecksum:E9E9AFE9A73AFEBEFDC83084256926DAFF71B2DB6FAC1B202779F45FA4161990;UpperCasedChecksum:AFDA16ACA0E80A099D08A58E88ABF7DF9636DA862989EC73BE45E307FEDD0D11;SizeAsReceived:9396;Count:46 x-ms-exchange-messagesentrepresentingtype: 1 x-tmn: [iOEsNtr4S4lAIL4dVgKDwMr5qZtrebhs] x-ms-publictraffictype: Email x-microsoft-exchange-diagnostics: 1;VE1EUR02HT138;24:v2Bx3KlftMJxp7EE/ITENd/p6OZlA+yatr76D/RN5+bukTT7PMAsT6oSvLLZMn6JbJlYuBfUyYdWZIWrqdGAZpxx75c85qbJEdWsQxINkxQ=;7:5qE/j41uovt/ahGjr5exyE1siWHajc6EIK+B1ISkxtxI/rX3DRlGq+zM5mAGKyfCwOzSM4ScF1HU4bCoSLErMfSNJMM6b1eM2mEp/Bih/qoiRGcqkgwS+kG7Eq7hsLtmCxNH7sF03auxBaVIFuYA0IzBDV2Sx80Mx/oHWtquGKXlKh7lF6AHw+X7fLpIycqmHucz36H/2d2Yij059dQHXzLL7BDNMzDIZyw8OGPy5z7KO1VMlf/mTdPfYOJwL9WXZFkrmpjmyBW8s9lhXfoho0wZsx0KaTgZwpwnvqZFSmeKsXe83mkOZVMZ3p0tGo3Y x-incomingheadercount: 46 x-eopattributedmessage: 0 x-forefront-antispam-report: EFV:NLI;SFV:NSPM;SFS:(7070007)(98901004);DIR:OUT;SFP:1901;SCL:1;SRVR:VE1EUR02HT138;H:AM4PR0701MB2162.eurprd07.prod.outlook.com;FPR:;SPF:None;LANG:en; x-ms-traffictypediagnostic: VE1EUR02HT138: x-ms-office365-filtering-correlation-id: 964caea7-ab15-4147-1ce8-08d4a907adcd x-microsoft-antispam: UriScan:;BCL:0;PCL:0;RULEID:(22001)(201702061074)(5061506573)(5061507331)(1603103135)(2017031320274)(2017031324274)(2017031323274)(2017031322274)(1603101448)(1601125374)(1701031045);SRVR:VE1EUR02HT138; x-exchange-antispam-report-cfa-test: BCL:0;PCL:0;RULEID:(100000700101)(100105000095)(100000701101)(100105300095)(100000702101)(100105100095)(444000031);SRVR:VE1EUR02HT138;BCL:0;PCL:0;RULEID:(100000800101)(100110000095)(100000801101)(100110300095)(100000802101)(100110100095)(100000803101)(100110400095)(100000804101)(100110200095)(100000805101)(100110500095);SRVR:VE1EUR02HT138; x-forefront-prvs: 0325F6C77B spamdiagnosticoutput: 1:99 spamdiagnosticmetadata: NSPM Content-Type: text/plain; charset="utf-8" Content-ID: <9DB472833CCBCA489E372CDA5B450DDC@eurprd07.prod.outlook.com> Content-Transfer-Encoding: base64 MIME-Version: 1.0 X-OriginatorOrg: outlook.com X-MS-Exchange-CrossTenant-originalarrivaltime: 01 Jun 2017 16:03:02.6379 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Internet X-MS-Exchange-CrossTenant-id: 84df9e7f-e9f6-40af-b435-aaaaaaaaaaaa X-MS-Exchange-Transport-CrossTenantHeadersStamped: VE1EUR02HT138 X-SW-Source: 2017-06/txt/msg00058.txt.bz2 UGluZy4uLg0KDQpPbiAwNS8xMi8xNyAxODo1NSwgQmVybmQgRWRsaW5nZXIg d3JvdGU6DQo+IFBpbmcgZm9yIHRoZSBDIGNoYW5nZXMuDQo+IA0KPiBUaGFu a3MNCj4gQmVybmQuDQo+IA0KPiBPbiAwNS8wMy8xNyAxNToxNCwgSmFzb24g TWVycmlsbCB3cm90ZToNCj4+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