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

[Bug target/51643] Incorrect code produced for tail-call of weak function with -O2/-O3 option


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51643

--- Comment #4 from Alexander Osipenko <sipych at gmail dot com> 2011-12-20 21:58:39 UTC ---
>From ARM EABI specification (doc: ARM IHI 0044A)

"On platforms that do not support dynamic pre-emption of symbols an unresolved
weak reference to a symbol relocated by R_ARM_CALL shall be treated as a jump
to the next instruction (the call becomes a no-op). The behaviour of
R_ARM_JUMP24 in these conditions is unspecified."

At least, tail call + epilogue shall not be replaced by (undefined) JUMP.


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