From: John David Anglin Date: Mon, 11 Aug 2014 19:13:46 +0000 (+0000) Subject: re PR target/62038 (Out of range branch target in thunk) X-Git-Tag: releases/gcc-4.8.4~299 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=de9ee675d49caa6785b5d316220d6adea47a421e;p=thirdparty%2Fgcc.git re PR target/62038 (Out of range branch target in thunk) PR target/62038 * config/pa/pa.c (pa_asm_output_mi_thunk): Use a branch with %r31 link register. From-SVN: r213831 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index a7f5cbe955ab..88fc92a09e07 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,9 @@ +2014-08-11 John Dave Anglin + + PR target/62038 + * config/pa/pa.c (pa_asm_output_mi_thunk): Use a branch with %r31 link + register. + 2014-08-01 Thomas Preud'homme Backport from mainline diff --git a/gcc/config/pa/pa.c b/gcc/config/pa/pa.c index 7603858340d6..de8b21854fce 100644 --- a/gcc/config/pa/pa.c +++ b/gcc/config/pa/pa.c @@ -8311,7 +8311,9 @@ pa_asm_output_mi_thunk (FILE *file, tree thunk_fndecl, HOST_WIDE_INT delta, if (!val_14) output_asm_insn ("addil L'%2,%%r26", xoperands); - output_asm_insn ("b %0", xoperands); + /* An absolute branch without a link register is not considered + a call by GAS. We need a call to get a stub if necessary. */ + output_asm_insn ("bl %0,%%r31", xoperands); if (val_14) {