Fix gcov for GCC 4.6.
authorTuomas Tynkkynen <ttynkkynen@nvidia.com>
Wed, 20 Jun 2012 11:47:25 +0000 (14:47 +0300)
committerVarun Wadekar <vwadekar@nvidia.com>
Thu, 12 Jul 2012 04:42:13 +0000 (09:42 +0530)
commit1a29117e83c7a33bc20e93a8feb3ac4b876d2ff4
treef84077cebbf39dd9e37d01a4819f5db321814b10
parentba2dc669f724acc239b078a370364f1b275de8fd
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