Does anyone have an example of how to create a simple switch statement in Gimple? I'm really confused by the CASE_LABEL. I know that to create a switch one can call gimple_build_switch() but then it requires one or more case labels (so far so good). But there seem to be no function that can create a case label. We have gimple_build_label() which may be the one however again i'm confused by the fact that this function takes an existing? label. Why would someone want to create a label for an existing label. Any pointers appreciated. thanks jeff