This is the mail archive of the gcc@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]

ARM emit jump insn


Hi I'm doing an investigation trying to modify the generation of
prologues and epilogues for ARM cross compiler.
So far I could successfully add some lines to the prologue generation,
but Im having problems with some thing: How do you suggest is the best
way to emit an assembler line that makes a branch (not branch with
link) to a certain label.
I've tried the following:

    char funcname[] ="funcname"; (global)

     rtx mylabel , from;
    LABEL_NAME(mylabel) = funcname;
        from = emit_jump_insn(gen_jump (mylabel));
        JUMP_LABEL (from) = mylabel;
        ++LABEL_NUSES (mylabel);

But this emits a jump to an internal label (for example .L0)

what I wanted to do is that those lines generate a jump to funcname:

b   funcname


Thanks!

-- 

______________________________


Marcos DÃaz

Software Engineer


San Lorenzo 47, 3rd Floor, Office 5

CÃrdoba, Argentina


Phone: +54 351 4217888 / +54 351 4218211/ +54 351 7617452

Skype: markdiaz22


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