Skip to content

Instantly share code, notes, and snippets.

@imasahiro
Created August 6, 2010 19:43
Show Gist options
  • Save imasahiro/511877 to your computer and use it in GitHub Desktop.
Save imasahiro/511877 to your computer and use it in GitHub Desktop.
int main(int argc, char **argv)
{
struct list {
void *next;
} _op = {0}, *op = &_op;
asm volatile("jmp *%0;":: "r"(*(void const*)op->next));
return 0;
}
/*
* $ gcc-mp-4.4 jmp.c
* jmp.c: In function 'main':
* jmp.c:6: warning: dereferencing 'void *' pointer
* jmp.c:6: internal compiler error: in gimplify_expr, at gimplify.c:7128
* Please submit a full bug report,
* with preprocessed source if appropriate.
* See <http://gcc.gnu.org/bugs.html> for instructions.
*/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment