[cfe-dev] clang vs. gcc

Eli Friedman eli.friedman at gmail.com
Sat May 2 17:25:52 PDT 2009


On Sat, May 2, 2009 at 1:12 PM, Eli Friedman <eli.friedman at gmail.com> wrote:
> We could make
> __builtin_setjmp and __builtin_longjmp compile to setjmp and longjmp
> calls, but that doesn't seem like it would help much.

Correction: we can't.  This would silently miscompile
__builtin_setjmp/longjmp because the caller won't allocate a large
enough buffer for setjmp/longjmp.

-Eli



More information about the cfe-dev mailing list