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.

Reply via email to