Source-Changes archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
CVS commit: [netbsd-8] src/sys/sys
Module Name: src
Committed By: martin
Date: Sun Mar 3 11:10:16 UTC 2019
Modified Files:
src/sys/sys [netbsd-8]: cdefs.h
Log Message:
Pull up following revision(s) (requested by kamil in ticket #1202):
sys/sys/cdefs.h: revision 1.138
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, ...).
To generate a diff of this commit:
cvs rdiff -u -r1.132.6.1 -r1.132.6.2 src/sys/sys/cdefs.h
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Home |
Main Index |
Thread Index |
Old Index