uclibc defines bswap_32, so use a different name in this test.
2019-09-10 Christophe Lyon <christophe.lyon@st.com>
gcc/testsuite/
* gcc.target/arm/pr43698.c (bswap_32): Rename as my_bswap_32.
From-SVN: r275581
+2019-09-10 Christophe Lyon <christophe.lyon@st.com>
+
+ * gcc.target/arm/pr43698.c (bswap_32): Rename as my_bswap_32.
+
2019-09-10 Christophe Lyon <christophe.lyon@st.com>
* g++.dg/cpp0x/noexcept03.C: Add pie_enabled.
char do_reverse_endian = 0;
-# define bswap_32(x) \
+# define my_bswap_32(x) \
((((x) & 0xff000000) >> 24) | \
(((x) & 0x00ff0000) >> 8) | \
(((x) & 0x0000ff00) << 8) | \
(__extension__ ({ \
uint64_t __res; \
if (!do_reverse_endian) { __res = (X); \
- } else if (sizeof(X) == 4) { __res = bswap_32((X)); \
+ } else if (sizeof(X) == 4) { __res = my_bswap_32((X)); \
} \
__res; \
}))