This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug middle-end/50040] [4.5/4.6/4.7 Regression] missed warning: âx.yâ is used uninitialized in this function


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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]