X-Recipient: archive-cygwin AT delorie DOT com DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 91F47385843B DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cygwin.com; s=default; t=1635332178; bh=rcXfq9NK3mNwjfT3W+CC0/dcpOkjI3L6BgwZF0P535k=; h=Date:To:In-Reply-To:References:Subject:List-Id:List-Unsubscribe: List-Archive:List-Post:List-Help:List-Subscribe:From:Reply-To: From; b=p0Or+GABic4MqypPwdrwSMF9PDN8aRoaqwJs01Ul7t4uzUABzXNatlAsd04rAcWyZ 5bSvkeE6quGAVW/BCEO5Zvn/3IHqE91O5Bp4138IQGshXw4OH5A1lG96waVvl0GDTl XI6I5eKTf5CZWuk7oDrm+FVDlf/creJ3cywQutgk= X-Original-To: cygwin AT cygwin DOT com Delivered-To: cygwin AT cygwin DOT com DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 8E11D3858401 X-SONIC-DKIM-SIGN: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1635332146; bh=XGKqB7dJ8BULLi3HGrs2DMv/XK5TjFjzyU09zOcfmta=; h=X-Sonic-MF:Date:From:To:Subject:From:Subject; b=aurEJmd3Nt+md4tAsy9rw+omk3PRdCQwOTkws7x30bUkRbJkAZMs6lvGoDLEaYmcsX+3uGuUFtWMVsl42NvDwzzx9cII22nreZE12e61zOqZr8pYBcQNLOMQoslTwYyGxpwkiANbJCU2snR4Ylyqh85cgDkM90fErwLtcR9n30NORRj+5f/h0y8U56FQT6QC074TeFprEh5zypcgBWU0bhUEdWG9qX8kLYVFXxQOGZZ34Oi3DZf/WZnZ3Nzv2wuhcGpQprn+XhBFoZjW3rrubIuTp8b4pBVRXaO/IdVgVrlVk0b+9aByhuKZ0VE8pRS+ajSzANSTqdjiTjKv9MM1jg== X-YMail-OSG: PmAoByEVM1k0qTh8rdkxfbf0mvJJl.k70SR8Z2f13y5DhG2Gb_PdwoACe1cKSDM ZmowuiaPrItbP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cFLsQm_Rwq3.kxfT102_kTI9a2i7gmHIsA.2DK9SN1tb._8q Lbnhf7Q-- X-Sonic-MF: Date: Wed, 27 Oct 2021 10:55:43 +0000 (UTC) To: "cygwin AT cygwin DOT com" , Thomas Wolff Message-ID: <530117425.2623944.1635332143429@mail.yahoo.com> In-Reply-To: <248361fa-f16d-cebb-eefe-be78e09f4c10@towo.net> References: <248361fa-f16d-cebb-eefe-be78e09f4c10 AT towo DOT net> Subject: Re: gcc 11 weird bug MIME-Version: 1.0 X-Mailer: WebService/1.1.19198 YMailNorrin X-Spam-Status: No, score=-3.9 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, FREEMAIL_FROM, RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2, SPF_HELO_NONE, SPF_PASS, TXREP autolearn=ham autolearn_force=no version=3.4.4 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on server2.sourceware.org X-BeenThere: cygwin AT cygwin DOT com X-Mailman-Version: 2.1.29 Precedence: list List-Id: General Cygwin discussions and problem reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , From: Hannes Domani via Cygwin Reply-To: Hannes Domani Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: cygwin-bounces+archive-cygwin=delorie DOT com AT cygwin DOT com Sender: "Cygwin" Am Mittwoch, 27. Oktober 2021, 11:19:19 MESZ hat Thomas Wolff Folgendes geschrieben: > I noticed that mintty did not compile anymore after upgrade to gcc 11, > but only on cygwin 32-bit. > I tried to minimize the test case as much as possible without having the > bug vanish, to the attached standalone file. > Compile this with > cc -O2 -Wall -Werror m0.c > and it gives a false positive warning about possible uninitialized data > usage. > While data flow analysis is not perfect, it is weird that this used to > happen on 32 bit but not on 64 bit. > Meanwhile, after updating some other packages (not sure which), but > still the same gcc version, the report on the test case also happens on > 64 bit, while the original, unstripped file, as part of mintty, still > works without error on 64 bit, which is even weirder. > I have not yet had the opportunity to test this on Linux, sorry, so I'm > reporting it here. > Thomas If you mean this warning: m0.c: In function 'do_bidi': m0.c:256:12: error: '*types[0]' may be used uninitialized [-Werror=maybe-uninitialized] This warning is correct, because as far as gcc is concerned, count could be 0, and in this case types[0] will be uninitialized (and doesn't even exist, since it's declared as 'uchar types[count];'). Hannes -- Problem reports: https://cygwin.com/problems.html FAQ: https://cygwin.com/faq/ Documentation: https://cygwin.com/docs.html Unsubscribe info: https://cygwin.com/ml/#unsubscribe-simple