Brendon Costa <[EMAIL PROTECTED]> writes:
> How can I get a full list of all GCC C++ built-in functions that may be
> used on a given platform or GCC build?
>
> For example, __cxa_begin_catch(), __cxa_end_catch(), __builtin_memset ...
>
> I am currently working with GCC 4.0.1 source base.
Well, there is the documentation, e.g.:
http://gcc.gnu.org/onlinedocs/gcc-4.0.3/gcc/Other-Builtins.html
Or if you want to look at the source code, look at builtins.def and
look for calls to add_builtin_function or lang_hooks.builtin_function
in config/CPU/*.c.
Well, that will tell you about functions like __builtin_memset:
functions which are specially recognized and handled by the compiler.
__cxa_begin_catch is a different sort of function, it is a support
function which is called by the compiler. For the complete set of
those functions, look at libgcc*.* and libsupc++.a in the installed
tree (generally under lib/gcc/TARGET/VERSION). Those functions
generally have no user-level documentation.
Ian