Fix gcov for GCC 4.6.
authorTuomas Tynkkynen <ttynkkynen@nvidia.com>
Wed, 20 Jun 2012 11:47:25 +0000 (14:47 +0300)
committerSimone Willett <swillett@nvidia.com>
Tue, 26 Jun 2012 18:39:18 +0000 (11:39 -0700)
commit623a7bd93b49fe0be662382e11f10212d1ed8f3e
tree2681923acd3672935ff14e61c81666b2fc228c8e
parente50a77c478949652a1cb8386427c81e7abeb16e0
Fix gcov for GCC 4.6.

Gcov's internal data structures, on which the kernel depends on, have
changed in GCC 4.6. This patch adds support for GCC 4.6 and should still
work on GCC 4.4 too.

For reference, look at 'struct gcov_fn_info' in GCC's 'gcc/gcov-io.h',
near line 698:
https://android.googlesource.com/toolchain/gcc/+/master/gcc-4.4.3/
https://android.googlesource.com/toolchain/gcc/+/master/gcc-4.6/

Bug 1003822

Change-Id: I527736f944c80b8b345d1685669c0b99eb38fb66
Signed-off-by: Tuomas Tynkkynen <ttynkkynen@nvidia.com>
Reviewed-on: http://git-master/r/110073
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Juha Tukkinen <jtukkinen@nvidia.com>
Tested-by: Juha Tukkinen <jtukkinen@nvidia.com>
kernel/gcov/gcc_3_4.c
kernel/gcov/gcov.h