[PATCH] D55162: [test] fix ScalarEvolution test to allow __func__ with prototype
Kamil Rytarowski via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Sat Dec 1 11:31:20 PST 2018
krytarowski added a comment.
OK, I know a better fix.
https://nxr.netbsd.org/xref/src/sys/sys/cdefs.h#416 contains:
416 /*
417 * C99 defines __func__ predefined identifier, which was made available
418 * in GCC 2.95.
419 */
420 #if !(__STDC_VERSION__ >= 199901L)
421 #if __GNUC_PREREQ__(2, 6)
422 #define __func__ __PRETTY_FUNCTION__
423 #elif __GNUC_PREREQ__(2, 4)
424 #define __func__ __FUNCTION__
425 #else
426 #define __func__ ""
427 #endif
428 #endif /* !(__STDC_VERSION__ >= 199901L) */
`__func__` is redefiend on NetBSD for C++. __func__ is a part of C++11 and newer.
Please extend the guard in the NetBSD sources to stop redefining it for `__cplusplus` version `201103L` or newer.
Repository:
rL LLVM
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D55162/new/
https://reviews.llvm.org/D55162
More information about the llvm-commits
mailing list