--- - branch: MAIN date: Tue Dec 4 22:06:37 UTC 2018 files: - new: '1.138' old: '1.137' path: src/sys/sys/cdefs.h pathrev: src/sys/sys/cdefs.h@1.138 type: modified id: 20181204T220637Z.ac208e933b7a5abefadf34aa946d2c3d73b53d99 log: | Stop mangling __func__ for C++11 and newer Drop local logic between GCC 2.4 and GCC 2.6 that used __PRETTY_FUNCTION__. This caused __func__ to be redefined for all C++ programs and use a different behavior than intended by the compiler (Clang and GCC). __PRETTY_FUNCTION__ prints all the prototype not just function name, contrary to __FUNCTION__ and __func__. __func__ is now an integral part of C99 and C++11, shipped by a compiler. This change aligns the behavior of C++ programs using __func__ to other Operating Systems. The difference caused unnecessary fallout in regression test suites in projects (LLVM, fish, ...). module: src subject: 'CVS commit: src/sys/sys' unixtime: '1543961197' user: kamil