public inbox for gcc-prs@sourceware.org
help / color / mirror / Atom feed
* Re: c/5035: Incorrectly produces '`<var>' might be used uninitialized in this function'
@ 2002-04-29 5:56 Taylor Hutt
0 siblings, 0 replies; 4+ messages in thread
From: Taylor Hutt @ 2002-04-29 5:56 UTC (permalink / raw)
To: nobody; +Cc: gcc-prs
The following reply was made to PR c/5035; it has been noted by GNATS.
From: Taylor Hutt <thutt@vmware.com>
To: rth@gcc.gnu.org, gcc-bugs@gcc.gnu.org, gcc-prs@gcc.gnu.org,
nobody@gcc.gnu.org, thutt@vmware.com, gcc-gnats@gcc.gnu.org
Cc:
Subject: Re: c/5035: Incorrectly produces '`<var>' might be used uninitialized in this function'
Date: 29 Apr 2002 05:49:45 -0700
rth@gcc.gnu.org writes:
> Synopsis: Incorrectly produces '`<var>' might be used uninitialized in this function'
>
> State-Changed-From-To: open->suspended
> State-Changed-By: rth
> State-Changed-When: Fri Apr 26 01:56:30 2002
> State-Changed-Why:
> The well-known
> if (p) set q;
> if (p) use q;
> problem.
>
> http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=5035
This is the most worthless response to a defect report I have ever seen.
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: c/5035: Incorrectly produces '`<var>' might be used uninitialized in this function'
@ 2002-04-29 10:46 Richard Henderson
0 siblings, 0 replies; 4+ messages in thread
From: Richard Henderson @ 2002-04-29 10:46 UTC (permalink / raw)
To: nobody; +Cc: gcc-prs
The following reply was made to PR c/5035; it has been noted by GNATS.
From: Richard Henderson <rth@redhat.com>
To: Taylor Hutt <thutt@vmware.com>
Cc: rth@gcc.gnu.org, gcc-bugs@gcc.gnu.org, gcc-prs@gcc.gnu.org,
nobody@gcc.gnu.org, gcc-gnats@gcc.gnu.org
Subject: Re: c/5035: Incorrectly produces '`<var>' might be used uninitialized in this function'
Date: Mon, 29 Apr 2002 10:37:47 -0700
On Mon, Apr 29, 2002 at 05:49:45AM -0700, Taylor Hutt wrote:
> This is the most worthless response to a defect report I have ever seen.
You're welcome.
It's just that this exact problem has been reported many times,
and it is distinctly non-trivial to fix. Thus I suspended it.
r~
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: c/5035: Incorrectly produces '`<var>' might be used uninitialized in this function'
@ 2002-04-26 1:56 rth
0 siblings, 0 replies; 4+ messages in thread
From: rth @ 2002-04-26 1:56 UTC (permalink / raw)
To: gcc-bugs, gcc-prs, nobody, thutt
Synopsis: Incorrectly produces '`<var>' might be used uninitialized in this function'
State-Changed-From-To: open->suspended
State-Changed-By: rth
State-Changed-When: Fri Apr 26 01:56:30 2002
State-Changed-Why:
The well-known
if (p) set q;
if (p) use q;
problem.
http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=5035
^ permalink raw reply [flat|nested] 4+ messages in thread
* c/5035: Incorrectly produces '`<var>' might be used uninitialized in this function'
@ 2001-12-06 9:16 thutt
0 siblings, 0 replies; 4+ messages in thread
From: thutt @ 2001-12-06 9:16 UTC (permalink / raw)
To: gcc-gnats
>Number: 5035
>Category: c
>Synopsis: Incorrectly produces '`<var>' might be used uninitialized in this function'
>Confidential: no
>Severity: non-critical
>Priority: medium
>Responsible: unassigned
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Thu Dec 06 09:16:01 PST 2001
>Closed-Date:
>Last-Modified:
>Originator: thutt@vmware.com
>Release: egcs-2.91.66
>Organization:
>Environment:
uname -a reports : Linux thutt-lx 2.2.17 #3 Mon Oct 1 20:43:58 PDT 2001 i686 unknown
>Description:
gcc -v -c -O2 -Wall defect.c
Incorrectly produces the following warning:
defect.c:7: warning: `b' might be used uninitialized in this function
'a' is local and not aliased.
'b' is local and not aliased.
Both uses of 'b' are under the same control conditions; the
compiler should not produce this warning.
>How-To-Repeat:
Follow instructions in source file.
>Fix:
>Release-Note:
>Audit-Trail:
>Unformatted:
----gnatsweb-attachment----
Content-Type: application/octet-stream; name="defect.c"
Content-Transfer-Encoding: base64
Content-Disposition: attachment; filename="defect.c"
LyoKICogZ2NjIC12IC1jIC1PMiAtV2FsbCBkZWZlY3QuYwogKgogKiBJbmNvcnJlY3RseSBwcm9k
dWNlcyB0aGUgZm9sbG93aW5nIHdhcm5pbmc6CiAqIAogKiAgZGVmZWN0LmM6Nzogd2FybmluZzog
YGInIG1pZ2h0IGJlIHVzZWQgdW5pbml0aWFsaXplZCBpbiB0aGlzIGZ1bmN0aW9uCiAqCiAqICAn
YScgaXMgbG9jYWwgYW5kIG5vdCBhbGlhc2VkLgogKiAgJ2InIGlzIGxvY2FsIGFuZCBub3QgYWxp
YXNlZC4KICoKICogIEJvdGggdXNlcyBvZiAnYicgYXJlIHVuZGVyIHRoZSBzYW1lIGNvbnRyb2wg
Y29uZGl0aW9uczsgdGhlCiAqICBjb21waWxlciBzaG91bGQgbm90IHByb2R1Y2UgdGhpcyB3YXJu
aW5nLgogKgogKiBnY2MgLS12ZXJzaW9uIHJlcG9ydHM6IGVnY3MtMi45MS42NgogKiB1bmFtZSAt
YSByZXBvcnRzICAgICA6IExpbnV4IHRodXR0LWx4IDIuMi4xNyAjMyBNb24gT2N0IDEgMjA6NDM6
NTggUERUIDIwMDEgaTY4NiB1bmtub3duCiAqIAogKi8KZXh0ZXJuIGludCBmKHZvaWQpOwoKCmlu
dCBtYWluKHZvaWQpCnsKICAgaW50IGEsIGIsIGM7CgogICBhID0gZigpOwogICAKICAgaWYgKGEp
CiAgIHsKICAgICAgIGIgPSAxMDsKICAgfQoKICAgaWYgKGYoKSkKICAgewogICAgICAgYyA9IDE1
MTsKICAgfQoKICAgaWYgKGEpCiAgICAgICByZXR1cm4gYjsKICAgcmV0dXJuIDA7Cn0KCg==
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2002-04-29 17:46 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-04-29 5:56 c/5035: Incorrectly produces '`<var>' might be used uninitialized in this function' Taylor Hutt
-- strict thread matches above, loose matches on Subject: below --
2002-04-29 10:46 Richard Henderson
2002-04-26 1:56 rth
2001-12-06 9:16 thutt
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).