Commit 1ce7625c by Christophe Lyon Committed by Christophe Lyon

[ARM/FDPIC v6 19/24] [ARM][testsuite] FDPIC: Adjust pr43698.c to avoid clash with uclibc.

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
parent d4104911
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.
* g++.dg/ipa/devirt-c-7.C: Likewise.
* g++.dg/ipa/ivinline-1.C: Likewise.
......
......@@ -6,7 +6,7 @@
char do_reverse_endian = 0;
# define bswap_32(x) \
# define my_bswap_32(x) \
((((x) & 0xff000000) >> 24) | \
(((x) & 0x00ff0000) >> 8) | \
(((x) & 0x0000ff00) << 8) | \
......@@ -16,7 +16,7 @@ char do_reverse_endian = 0;
(__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; \
}))
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment