Middle-End function/ function pointer generation

Johannes Ziegenbalg johannes.ziegenbalg@googlemail.com
Sat Jul 21 19:28:00 GMT 2012

Hi guys,

I hope I'm right here. Currently I'm developing a GCC plugin and 
therefore I need to generate some code which should looks like:

typedef void (bar_fn_t)(uint32_t *);

static bar_fn_t *
     return bar;

The function "bar" is defined in the same file. The typedef is not a big 
deal I think, it's something like: build_pointer_type(TREE_TYPE 
But, I stuck at this function generation, especially the return part.

Thanks for your help!!

Johannes Z.

More information about the Gcc-help mailing list