public inbox for glibc-bugs-regex@sourceware.org
help / color / mirror / Atom feed
* [Bug regex/1217] New: regcomp.c elicits uninitialized-variable warnings with GCC 4
@ 2005-08-20  0:05 eggert at gnu dot org
  2005-08-20  0:06 ` [Bug regex/1217] " eggert at gnu dot org
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: eggert at gnu dot org @ 2005-08-20  0:05 UTC (permalink / raw)
  To: glibc-bugs-regex

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.


^ permalink raw reply	[flat|nested] 4+ messages in thread

* [Bug regex/1217] regcomp.c elicits uninitialized-variable warnings with GCC 4
  2005-08-20  0:05 [Bug regex/1217] New: regcomp.c elicits uninitialized-variable warnings with GCC 4 eggert at gnu dot org
@ 2005-08-20  0:06 ` eggert at gnu dot org
  2005-08-20  7:28 ` eggert at gnu dot org
  2005-09-06 18:04 ` drepper at redhat dot com
  2 siblings, 0 replies; 4+ messages in thread
From: eggert at gnu dot org @ 2005-08-20  0:06 UTC (permalink / raw)
  To: glibc-bugs-regex


------- Additional Comments From eggert at gnu dot org  2005-08-20 00:06 -------
Created an attachment (id=595)
 --> (http://sources.redhat.com/bugzilla/attachment.cgi?id=595&action=view)
regcomp.c patch to avoid use of variables GCC 4 thinks are uninitialized


-- 


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.


^ permalink raw reply	[flat|nested] 4+ messages in thread

* [Bug regex/1217] regcomp.c elicits uninitialized-variable warnings with GCC 4
  2005-08-20  0:05 [Bug regex/1217] New: regcomp.c elicits uninitialized-variable warnings with GCC 4 eggert at gnu dot org
  2005-08-20  0:06 ` [Bug regex/1217] " eggert at gnu dot org
@ 2005-08-20  7:28 ` eggert at gnu dot org
  2005-09-06 18:04 ` drepper at redhat dot com
  2 siblings, 0 replies; 4+ messages in thread
From: eggert at gnu dot org @ 2005-08-20  7:28 UTC (permalink / raw)
  To: glibc-bugs-regex



-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
OtherBugsDependingO|                            |1220
              nThis|                            |


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.


^ permalink raw reply	[flat|nested] 4+ messages in thread

* [Bug regex/1217] regcomp.c elicits uninitialized-variable warnings with GCC 4
  2005-08-20  0:05 [Bug regex/1217] New: regcomp.c elicits uninitialized-variable warnings with GCC 4 eggert at gnu dot org
  2005-08-20  0:06 ` [Bug regex/1217] " eggert at gnu dot org
  2005-08-20  7:28 ` eggert at gnu dot org
@ 2005-09-06 18:04 ` drepper at redhat dot com
  2 siblings, 0 replies; 4+ messages in thread
From: drepper at redhat dot com @ 2005-09-06 18:04 UTC (permalink / raw)
  To: glibc-bugs-regex


------- Additional Comments From drepper at redhat dot com  2005-09-06 18:04 -------
Applied to trunk.

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |FIXED


http://sourceware.org/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.


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2005-09-06 18:04 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-08-20  0:05 [Bug regex/1217] New: regcomp.c elicits uninitialized-variable warnings with GCC 4 eggert at gnu dot org
2005-08-20  0:06 ` [Bug regex/1217] " eggert at gnu dot org
2005-08-20  7:28 ` eggert at gnu dot org
2005-09-06 18:04 ` drepper at redhat dot com

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).