Fix PR libstdc++/64883 Darwin headers use always_inline so don't test that
Because darwin system headers use always_inline rather than __always_inline__ the libstdc++ test will fail, even if our headers only use the reserved form of the attribute. Don't test it on Darwin, and assume that testing on other targets will catch any accidental misuses in libstdc++ headers. 2018-12-06 Jonathan Wakely <jwakely@redhat.com> Iain Sandoe <iain@sandoe.co.uk> PR libstdc++/64883 * testsuite/17_intro/headers/c++1998/all_attributes.cc: Don't test always_inline on Darwin. * testsuite/17_intro/headers/c++2011/all_attributes.cc: Likewise. * testsuite/17_intro/headers/c++2014/all_attributes.cc: Likewise. * testsuite/17_intro/headers/c++2017/all_attributes.cc: Likewise. * testsuite/17_intro/headers/c++2020/all_attributes.cc: Likewise. Co-Authored-By: Iain Sandoe <iain@sandoe.co.uk> From-SVN: r266863
This commit is contained in:
parent
e384094ac2
commit
881e947ebd
|
@ -1,3 +1,14 @@
|
|||
2018-12-06 Jonathan Wakely <jwakely@redhat.com>
|
||||
Iain Sandoe <iain@sandoe.co.uk>
|
||||
|
||||
PR libstdc++/64883
|
||||
* testsuite/17_intro/headers/c++1998/all_attributes.cc: Don't test
|
||||
always_inline on Darwin.
|
||||
* testsuite/17_intro/headers/c++2011/all_attributes.cc: Likewise.
|
||||
* testsuite/17_intro/headers/c++2014/all_attributes.cc: Likewise.
|
||||
* testsuite/17_intro/headers/c++2017/all_attributes.cc: Likewise.
|
||||
* testsuite/17_intro/headers/c++2020/all_attributes.cc: Likewise.
|
||||
|
||||
2018-12-03 Edward Smith-Rowland <3dw4rd@verizon.net>
|
||||
|
||||
PR libstdc++/88341 - Complex norm doesn't compile with C++11
|
||||
|
|
|
@ -21,9 +21,9 @@
|
|||
// Ensure the library only uses the __name__ form for attributes.
|
||||
// Don't test 'const' because it is reserved anyway.
|
||||
#define abi_tag 1
|
||||
#define always_inline 1
|
||||
#ifndef __APPLE__
|
||||
// darwin headers use these, see PR 64883
|
||||
# define always_inline 1
|
||||
# define deprecated 1
|
||||
# define noreturn 1
|
||||
# define visibility 1
|
||||
|
|
|
@ -21,11 +21,11 @@
|
|||
// Ensure the library only uses the __name__ form for attributes.
|
||||
// Don't test 'const' and 'noreturn' because they are reserved anyway.
|
||||
#define abi_tag 1
|
||||
#define always_inline 1
|
||||
#ifndef __APPLE__
|
||||
// darwin headers use these, see PR 64883
|
||||
# define visibility 1
|
||||
# define always_inline 1
|
||||
# define deprecated 1
|
||||
# define visibility 1
|
||||
#endif
|
||||
#define packed 1
|
||||
#define pure 1
|
||||
|
|
|
@ -21,9 +21,9 @@
|
|||
// Ensure the library only uses the __name__ form for attributes.
|
||||
// Don't test 'const' and 'noreturn' because they are reserved anyway.
|
||||
#define abi_tag 1
|
||||
#define always_inline 1
|
||||
#ifndef __APPLE__
|
||||
// darwin headers use these, see PR 64883
|
||||
# define always_inline 1
|
||||
# define deprecated 1
|
||||
# define visibility 1
|
||||
#endif
|
||||
|
|
|
@ -21,9 +21,9 @@
|
|||
// Ensure the library only uses the __name__ form for attributes.
|
||||
// Don't test 'const' and 'noreturn' because they are reserved anyway.
|
||||
#define abi_tag 1
|
||||
#define always_inline 1
|
||||
#ifndef __APPLE__
|
||||
// darwin headers use this, see PR 64883
|
||||
// darwin headers use these, see PR 64883
|
||||
# define always_inline 1
|
||||
# define visibility 1
|
||||
#endif
|
||||
#define packed 1
|
||||
|
|
|
@ -21,9 +21,9 @@
|
|||
// Ensure the library only uses the __name__ form for attributes.
|
||||
// Don't test 'const' and 'noreturn' because they are reserved anyway.
|
||||
#define abi_tag 1
|
||||
#define always_inline 1
|
||||
#ifndef __APPLE__
|
||||
// darwin headers use this, see PR 64883
|
||||
// darwin headers use these, see PR 64883
|
||||
# define always_inline 1
|
||||
# define visibility 1
|
||||
#endif
|
||||
#define packed 1
|
||||
|
|
Loading…
Reference in New Issue