]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Replace the PMC class struct copy with an explicit memcpy()
authorjhibbits <jhibbits@FreeBSD.org>
Sat, 13 Jan 2018 04:53:04 +0000 (04:53 +0000)
committerjhibbits <jhibbits@FreeBSD.org>
Sat, 13 Jan 2018 04:53:04 +0000 (04:53 +0000)
commit00a6946205e92ff361bea00f7b1bdd20e8a5d23d
tree72affa98a81363c38226ae57d98e07ecc859cbf9
parentcd92c080b1f24c6d252b19a04958358d4edf02db
Replace the PMC class struct copy with an explicit memcpy()

This should be effectively a nop for all archs, but for some reason the codegen
difference on the PowerPC 970 is such that the struct assignment doesn't work
(unless a printf() using one of the elements in the copied struct follows it),
while the memcpy() succeeds.  On all archs the memcpy() should be expanded to an
inline copy, since the copy is bounded to ~16 bytes.

MFC after: 3 weeks
lib/libpmc/libpmc.c