I would know if it's possible to insert a global variable declaration
with a gcc plugin. For example if I got de following code:
---------------------------------------test.c------------------------------------
int main(void) {
return 0;
}
------------------------------------------------------------------------------------
and I want to transform it with a plugin into:
------------------------------------------------------------------------------------
int fake_var;
int main(void) {
return 0;
}
------------------------------------------------------------------------------------
Is that possible? If it's possible, in wich pass a how can I do it?