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

[committed] Fix bug target/62038 Out of range branch target in thunk


The attached change fixes the PR. This problem affects building texmaker and a few other Debian
packages.

The code in pa_asm_output_mi_thunk originally checked whether the function was reachable with a pc-relative branch, but the assembler complains if the branch can't reach the stub table. I don't think thunks need to reach the stub table in this case but it's probably hard to distinguish in the assembler this case from situations where a "call" needs to reach the stub table. So, I fixed the problem in the compiler.

In debugging this problem, I noticed a small regression in the computation of last_address which was introduced when we changed to using final_start_function and final_end_function to get debug info for thunks. The final_end_function call messed up the value of last_address.

Tested on hppa2.0w-hp-hpux11.11, hppa64-hp-hpux11.11 and hppa-unknown- linux-gnu. Committed
to trunk, 4.9 and 4.8.

Dave
--
John David Anglin	dave.anglin@bell.net


Attachment: pa.c.d.5.txt
Description: Text document


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