Created
August 6, 2010 19:43
-
-
Save imasahiro/511877 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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