https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110368

--- Comment #5 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
(In reply to Andrew Pinski from comment #4)
> The code can fixed using memcpy
> Replace:
> c   += *data_16++
> 
> With:
> unsigned tmp;
> memcpy(&tmp, data_16, sizeof(tmp));
> data_16++;
> c += tmp;

Small typo, the type of tmp should have been `unsigned short`.

Reply via email to