This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |
Other format: | [Raw text] |
Hi, I noticed that libatomic implementation for builtin function parameter smaller than word. It would shift the parameter value to word and then store word. However, the shift amount for big endian would be wrong. This patch fix libatomic builtin function behavior for big endian toolchain. Is it ok for trunk ? Shiva 2014-10-17 Shiva Chen <shiva0217@gmail.com> Fix libatomic behavior for big endian toolchain * libatomic/cas_n.c: Fix shift amount for big endian toolchain * libatomic/config/arm/exch_n.c: Fix shift amount for big endian toolchain * libatomic/exch_n.c: Fix shift amount for big endian toolchain * libatomic/fop_n.c: Fix shift amount for big endian toolchain
Attachment:
libatomic-big-endian-patch.diff
Description: Text document
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |