[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
This commit is contained in:
parent
d41049119d
commit
1ce7625c43
@ -1,3 +1,7 @@
|
||||
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.
|
||||
|
@ -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; \
|
||||
}))
|
||||
|
Loading…
Reference in New Issue
Block a user