This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug middle-end/29574] Gcc gives invalid warning about unitialized variable
- From: "pinskia at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 23 Oct 2006 21:30:15 -0000
- Subject: [Bug middle-end/29574] Gcc gives invalid warning about unitialized variable
- References: <bug-29574-13450@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #5 from pinskia at gcc dot gnu dot org 2006-10-23 21:30 -------
(In reply to comment #4)
> And indeed, if I remove that unlikely(), it does work.
>
> There's another set of these where the called initializer is not inlined,
> ie:
>
> int x;
> initializer(&x);
If initializer is not inlined, you will not get a warning.
This is the same as PR 21513 as __builtin_expect is getting in the way.
*** This bug has been marked as a duplicate of 21513 ***
--
pinskia at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|WAITING |RESOLVED
Resolution| |DUPLICATE
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=29574