[cfe-dev] clang vs. gcc

Eli Friedman eli.friedman at gmail.com
Thu Apr 30 14:42:46 PDT 2009


On Thu, Apr 30, 2009 at 10:23 AM, Filipe Cabecinhas <filcab at gmail.com> wrote:
> Also, I'm trying to compile valgrind using clang. valgrind doesn't use
> any libc functions (due to possible false warnings) so it uses GCC's
> __builtin_{set,long}jmp(...). I noticed they're not implemented in clang
> (and may never be... even in GCC's docs I didn't find anything about
> those builtins (only that the ADA backend uses them).
>
> How could I get this to work? Is there any other way short of building
> (with GCC) a *.o file that exports those definitions or implementing it
> myself?

The only way to safely do setjmp/longjmp in LLVM is to call external
functions called "setjmp" and "longjmp".

-Eli



More information about the cfe-dev mailing list