This is the mail archive of the
glibc-bugs-regex@sourceware.org
mailing list for the glibc project.
[Bug regex/1217] New: regcomp.c elicits uninitialized-variable warnings with GCC 4
- From: "eggert at gnu dot org" <sourceware-bugzilla at sources dot redhat dot com>
- To: glibc-bugs-regex at sources dot redhat dot com
- Date: 20 Aug 2005 00:05:43 -0000
- Subject: [Bug regex/1217] New: regcomp.c elicits uninitialized-variable warnings with GCC 4
- Reply-to: sourceware-bugzilla at sources dot redhat dot com
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.