This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

duplicate a variable!!!!


Hi all,

I'd like to know if is possible to gcc to duplicate a variable? for example

....
int a=2; i have this

i want to do it: int a_1=2, a_2=2;

I have a code in c and i want to modify the gcc so it makes the duplication of the variable. i like to do it at the level of RTL to ASM.
I know that there is a function (output_asm_insn) in final.c that goes from RTL to ASM.
would anyone have any suggestions to do this?


thanks in advance....
greicy


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]