title: GCC Inline Assembly: Jump to label outside block
body: <p>When using inline assembly under MSVC, one is allowed to jump outside of the assembly block by referencing a label in the C/C++ code, as explained <a href="http://msdn.microsoft.com/en-us/library/aa279405(VS.60).aspx" rel="noreferrer">in this MSDN article</a>.</p>
  
  <p>Can such thing be done when using inline assembly under GCC?</p>
  
  <p>Here's an example of what I'm trying to accomplish:</p>
  
  <pre><code>__asm__ __volatile__ (
  "   /* assembly code */ "
  "   jz external_label;  "
  );
  
  /* some C code */
  
  external_label:
  /* C code coninues... */
  </code></pre>
  
  <p>The compiler, however, complains about "external_label" not being defined.</p>