[cfe-dev] clang vs. gcc

Filipe Cabecinhas filcab at gmail.com
Fri May 1 10:19:23 PDT 2009


So... There's no way I can use a setjmp/longjmp (or something that has 
the same effect) without using libc? or I can just use setjmp/longjmp 
happily (when compiling with clang) and it will get translated to 
something other than the call to libc?

Regards,

   Filipe

Chris Lattner wrote:
> You aren't allowed to have control flow into or out of an inline asm,  
> so an inline asm for setjmp/longjmp is not safe.
> 
> -Chris
> 
> _______________________________________________
> cfe-dev mailing list
> cfe-dev at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev



More information about the cfe-dev mailing list