Index: compiler-rt/lib/asan/asan_globals.cc =================================================================== --- compiler-rt/lib/asan/asan_globals.cc +++ compiler-rt/lib/asan/asan_globals.cc @@ -115,7 +115,11 @@ if (flags()->report_globals >= 2) ReportGlobal(g, "Search"); if (IsAddressNearGlobal(addr, g)) { +#if defined(__GNUC__) && defined(__sparc__) + internal_memcpy(&globals[res], &g, sizeof(g)); +#else globals[res] = g; +#endif if (reg_sites) reg_sites[res] = FindRegistrationSite(&g); res++;