This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug middle-end/10138] warn for uninitialized arrays passed as const* arguments
- From: "gdr at cs dot tamu dot edu" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 20 Aug 2007 18:50:50 -0000
- Subject: [Bug middle-end/10138] warn for uninitialized arrays passed as const* arguments
- References: <bug-10138-1038@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #21 from gdr at cs dot tamu dot edu 2007-08-20 18:50 -------
Subject: Re: warn for uninitialized arrays passed as const* arguments
"manu at gcc dot gnu dot org" <gcc-bugzilla@gcc.gnu.org> writes:
| When I say "constant are not propagated" I mean "the constant value of a
| variable" such as:
|
| int i=0;
| use(&i);
| foo(i);
|
| Here, GCC does not propagate the value of i to do foo(0). Remove the call to
| use and then it will.
Which is all it can do, assuming the body is not "available".
-- Gaby
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=10138