From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 27492 invoked by alias); 20 Aug 2005 00:05:47 -0000 Mailing-List: contact glibc-bugs-regex-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Post: List-Help: , Sender: glibc-bugs-regex-owner@sources.redhat.com Received: (qmail 27447 invoked by uid 48); 20 Aug 2005 00:05:43 -0000 Date: Sat, 20 Aug 2005 00:05:00 -0000 From: "eggert at gnu dot org" To: glibc-bugs-regex@sources.redhat.com Message-ID: <20050820000542.1217.eggert@gnu.org> Reply-To: sourceware-bugzilla@sources.redhat.com Subject: [Bug regex/1217] New: regcomp.c elicits uninitialized-variable warnings with GCC 4 X-Bugzilla-Reason: CC X-SW-Source: 2005-08/txt/msg00018.txt.bz2 List-Id: regcomp.c contains code that elicits uninitialized-variable warnings with GCC 4. The problem is that GCC isn't smart enough to see that when duplicate_node returns REG_ESPACE, the uninitialized storage is not used. I'll attach a straightforward patch that changes the signature of duplicate_node to avoid the warnings. My impression is that the patch also causes GCC to generate better code, but I haven't measured this. -- Summary: regcomp.c elicits uninitialized-variable warnings with GCC 4 Product: glibc Version: 2.3.5 Status: NEW Severity: minor Priority: P2 Component: regex AssignedTo: gotom at debian dot or dot jp ReportedBy: eggert at gnu dot org CC: glibc-bugs-regex at sources dot redhat dot com,glibc- bugs at sources dot redhat dot com http://sources.redhat.com/bugzilla/show_bug.cgi?id=1217 ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.