[cfe-dev] clang vs. gcc

Eli Friedman eli.friedman at gmail.com
Sat May 2 13:12:04 PDT 2009


On Sat, May 2, 2009 at 12:27 PM, Chris Lattner <clattner at apple.com> wrote:
>
> On May 1, 2009, at 10:25 AM, Filipe Cabecinhas wrote:
>
>> I'm just trying to compile valgrind. But valgrind is using
>> __builtin_longjmp because it can't use libc. This doesn't compile
>> because clang doesn't define that function. How could I pass this
>> problem?
>
> The best way is to implement __builtin_longjmp in clang!

Unfortunately, that would require rather extensive changes to LLVM...
we would need real intrinsics to support it.  We could make
__builtin_setjmp and __builtin_longjmp compile to setjmp and longjmp
calls, but that doesn't seem like it would help much.

-Eli



More information about the cfe-dev mailing list