Replace pointer casts with calls to (read|write)(16|32|64)le.
commit553242c18a2387fb896df66eb9b5a502f0e87ff0
authorEdmund Grimley Evans <Edmund.Grimley.Evans@gmail.com>
Thu, 19 Nov 2015 18:21:14 +0000 (19 18:21 +0000)
committerEdmund Grimley Evans <Edmund.Grimley.Evans@gmail.com>
Thu, 19 Nov 2015 18:21:14 +0000 (19 18:21 +0000)
tree51501263aac1ea67fffb969466c31004cec9060e
parent5d496b169580d0cd4a1fbb454fc1ac55a78a0ee5
Replace pointer casts with calls to (read|write)(16|32|64)le.

This stops UBSan from giving runtime misaligned address errors
and might eventually allow building on a non-little-endian host.
arm64-gen.c
i386-gen.c
tcc.h
tccelf.c
x86_64-gen.c