This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug middle-end/50040] [4.5/4.6/4.7 Regression] missed warning: âx.yâ is used uninitialized in this function
- From: "jan.kratochvil at redhat dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Thu, 11 Aug 2011 11:22:41 +0000
- Subject: [Bug middle-end/50040] [4.5/4.6/4.7 Regression] missed warning: âx.yâ is used uninitialized in this function
- Auto-submitted: auto-generated
- References: <bug-50040-4@http.gcc.gnu.org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50040
--- Comment #4 from Jan Kratochvil <jan.kratochvil at redhat dot com> 2011-08-11 11:22:41 UTC ---
Thanks for a fix, FYI this is a reduced real world problem.
During backporting of
[patch] Implement core file's PID for s390* and ppc*
http://sourceware.org/ml/binutils/2011-04/msg00272.html
specifically misordered:
vvv elf_tdata (abfd)->core_pid = psinfo.pr_pid;
^^^ memcpy (&psinfo, note->descdata, sizeof (psinfo));
I got a warning from RHEL-6 gcc-4.4.5-6.el6.x86_64 which I did not get the
warning during the patch preparation on Fedora 14 gcc-4.5.1-4.fc14.x86_64.
This problem was found and would be found afterwards anyway by a testcase but
not every line of GCC compiled code has a testcase.