rui314 / 8cc

A Small C Compiler
MIT License
6.13k stars 740 forks source link

Fix static void pointers which point to label addresses. #28

Closed andrewchambers closed 9 years ago

andrewchambers commented 9 years ago

Segfaults occured if a static pointer was assigned to an &&label value, this was because the OP_LABEL_ADDR case hadn't been handled in gen.c. A test case was added.

Also fixed some whitespace issues.

andrewchambers commented 9 years ago

ok fixed - do you get a notification when i change pull requests? I've updated all of them.

rui314 commented 9 years ago

Yes the notifications come up to my inbox on GitHub. I'll merge your patches later.