public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug target/62038] New: Out of range branch target in thunk
@ 2014-08-06 17:16 danglin at gcc dot gnu.org
  2014-08-11 19:07 ` [Bug target/62038] " danglin at gcc dot gnu.org
                   ` (7 more replies)
  0 siblings, 8 replies; 9+ messages in thread
From: danglin at gcc dot gnu.org @ 2014-08-06 17:16 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=62038

            Bug ID: 62038
           Summary: Out of range branch target in thunk
           Product: gcc
           Version: 4.9.1
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: target
          Assignee: unassigned at gcc dot gnu.org
          Reporter: danglin at gcc dot gnu.org
              Host: hppa-unknown-linux-gnu
            Target: hppa-unknown-linux-gnu
             Build: hppa-unknown-linux-gnu

Created attachment 33263
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=33263&action=edit
Preprocessed source

The compilation of texmaker.cpp fails as follows:

g++ -c -pipe -g -O2 -Wformat -Werror=format-security -D_FORTIFY_SOURCE=2 -w
-D_REENTRANT -fPIE -DTEXMAKERVERSION=\"4.3\" -DHAVE_SPLASH -DPOPPLER24
-DPREFIX=\"/usr\" -DDEBIAN_SPELLDIR -DQT_NO_DEBUG -DQT_WEBKITWIDGETS_LIB
-DQT_QUICK_LIB -DQT_OPENGL_LIB -DQT_PRINTSUPPORT_LIB -DQT_WEBKIT_LIB
-DQT_QML_LIB -DQT_WIDGETS_LIB -DQT_SCRIPT_LIB -DQT_CONCURRENT_LIB
-DQT_NETWORK_LIB -DQT_XML_LIB -DQT_GUI_LIB -DQT_CORE_LIB
-I/usr/lib/hppa-linux-gnu/qt5/mkspecs/linux-g++ -I. -isystem
/usr/include/poppler/qt5 -isystem /usr/include/poppler -isystem
/usr/include/synctex -isystem /usr/include/hppa-linux-gnu/qt5 -isystem
/usr/include/hppa-linux-gnu/qt5/QtWebKitWidgets -isystem
/usr/include/hppa-linux-gnu/qt5/QtQuick -isystem
/usr/include/hppa-linux-gnu/qt5/QtOpenGL -isystem
/usr/include/hppa-linux-gnu/qt5/QtPrintSupport -isystem
/usr/include/hppa-linux-gnu/qt5/QtWebKit -isystem
/usr/include/hppa-linux-gnu/qt5/QtQml -isystem
/usr/include/hppa-linux-gnu/qt5/QtWidgets -isystem
/usr/include/hppa-linux-gnu/qt5/QtScript -isystem
/usr/include/hppa-linux-gnu/qt5/QtConcurrent -isystem
/usr/include/hppa-linux-gnu/qt5/QtNetwork -isystem
/usr/include/hppa-linux-gnu/qt5/QtXml -isystem
/usr/include/hppa-linux-gnu/qt5/QtGui -isystem
/usr/include/hppa-linux-gnu/qt5/QtCore -I.moc -I.ui -o .obj/texmaker.o
texmaker.cpp
{standard input}: Assembler messages:
{standard input}:246604: Error: Field out of range [-262144..262143] (-417748).
{standard input}:246674: Error: Field out of range [-262144..262143] (-417856).
make[1]: *** [.obj/texmaker.o] Error 1

Problem is branches in following thunks:

        .cfi_startproc
_ZThn8_N8TexmakerD1Ev:
        .PROC
        .CALLINFO FRAME=128,CALLS,SAVE_RP,ENTRY_GR=7
        .ENTRY
        b _ZN8TexmakerD2Ev
        ldo -8(%r26),%r26
        .EXIT
        .PROCEND
        .cfi_endproc

        .cfi_startproc
_ZThn8_N8TexmakerD0Ev:
        .PROC
        .CALLINFO FRAME=64,CALLS,SAVE_RP,ENTRY_GR=4
        .ENTRY
        b _ZN8TexmakerD0Ev
        ldo -8(%r26),%r26
        .EXIT        .PROCEND
        .cfi_endproc

We need to force targets into register %r1 and use bv branch to ensure
we can reach target.


^ permalink raw reply	[flat|nested] 9+ messages in thread

* [Bug target/62038] Out of range branch target in thunk
  2014-08-06 17:16 [Bug target/62038] New: Out of range branch target in thunk danglin at gcc dot gnu.org
@ 2014-08-11 19:07 ` danglin at gcc dot gnu.org
  2014-08-11 19:11 ` danglin at gcc dot gnu.org
                   ` (6 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: danglin at gcc dot gnu.org @ 2014-08-11 19:07 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=62038

--- Comment #1 from John David Anglin <danglin at gcc dot gnu.org> ---
Author: danglin
Date: Mon Aug 11 19:07:16 2014
New Revision: 213829

URL: https://gcc.gnu.org/viewcvs?rev=213829&root=gcc&view=rev
Log:
    PR target/62038
    * config/pa/pa.c (pa_asm_output_mi_thunk): Use a branch with %r31 link
    register.


Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/config/pa/pa.c


^ permalink raw reply	[flat|nested] 9+ messages in thread

* [Bug target/62038] Out of range branch target in thunk
  2014-08-06 17:16 [Bug target/62038] New: Out of range branch target in thunk danglin at gcc dot gnu.org
  2014-08-11 19:07 ` [Bug target/62038] " danglin at gcc dot gnu.org
@ 2014-08-11 19:11 ` danglin at gcc dot gnu.org
  2014-08-11 19:14 ` danglin at gcc dot gnu.org
                   ` (5 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: danglin at gcc dot gnu.org @ 2014-08-11 19:11 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=62038

--- Comment #2 from John David Anglin <danglin at gcc dot gnu.org> ---
Author: danglin
Date: Mon Aug 11 19:10:59 2014
New Revision: 213830

URL: https://gcc.gnu.org/viewcvs?rev=213830&root=gcc&view=rev
Log:
    PR target/62038
    * config/pa/pa.c (pa_asm_output_mi_thunk): Use a branch with %r31 link
    register.


Modified:
    branches/gcc-4_9-branch/gcc/ChangeLog
    branches/gcc-4_9-branch/gcc/config/pa/pa.c


^ permalink raw reply	[flat|nested] 9+ messages in thread

* [Bug target/62038] Out of range branch target in thunk
  2014-08-06 17:16 [Bug target/62038] New: Out of range branch target in thunk danglin at gcc dot gnu.org
  2014-08-11 19:07 ` [Bug target/62038] " danglin at gcc dot gnu.org
  2014-08-11 19:11 ` danglin at gcc dot gnu.org
@ 2014-08-11 19:14 ` danglin at gcc dot gnu.org
  2014-08-11 20:00 ` danglin at gcc dot gnu.org
                   ` (4 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: danglin at gcc dot gnu.org @ 2014-08-11 19:14 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=62038

--- Comment #3 from John David Anglin <danglin at gcc dot gnu.org> ---
Author: danglin
Date: Mon Aug 11 19:13:46 2014
New Revision: 213831

URL: https://gcc.gnu.org/viewcvs?rev=213831&root=gcc&view=rev
Log:
    PR target/62038
    * config/pa/pa.c (pa_asm_output_mi_thunk): Use a branch with %r31 link
    register.


Modified:
    branches/gcc-4_8-branch/gcc/ChangeLog
    branches/gcc-4_8-branch/gcc/config/pa/pa.c


^ permalink raw reply	[flat|nested] 9+ messages in thread

* [Bug target/62038] Out of range branch target in thunk
  2014-08-06 17:16 [Bug target/62038] New: Out of range branch target in thunk danglin at gcc dot gnu.org
                   ` (2 preceding siblings ...)
  2014-08-11 19:14 ` danglin at gcc dot gnu.org
@ 2014-08-11 20:00 ` danglin at gcc dot gnu.org
  2014-08-23 15:56 ` danglin at gcc dot gnu.org
                   ` (3 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: danglin at gcc dot gnu.org @ 2014-08-11 20:00 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=62038

John David Anglin <danglin at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|RESOLVED                    |REOPENED
   Last reconfirmed|                            |2014-08-11
         Resolution|FIXED                       |---
     Ever confirmed|0                           |1

--- Comment #5 from John David Anglin <danglin at gcc dot gnu.org> ---
There is a problem:

./target-2.exe: error while loading shared libraries: internal error: symidx
out of range of fptr table
FAIL: libgomp.c++/target-2.C execution test


^ permalink raw reply	[flat|nested] 9+ messages in thread

* [Bug target/62038] Out of range branch target in thunk
  2014-08-06 17:16 [Bug target/62038] New: Out of range branch target in thunk danglin at gcc dot gnu.org
                   ` (3 preceding siblings ...)
  2014-08-11 20:00 ` danglin at gcc dot gnu.org
@ 2014-08-23 15:56 ` danglin at gcc dot gnu.org
  2014-08-23 15:58 ` danglin at gcc dot gnu.org
                   ` (2 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: danglin at gcc dot gnu.org @ 2014-08-23 15:56 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=62038

--- Comment #6 from John David Anglin <danglin at gcc dot gnu.org> ---
Author: danglin
Date: Sat Aug 23 15:56:07 2014
New Revision: 214397

URL: https://gcc.gnu.org/viewcvs?rev=214397&root=gcc&view=rev
Log:
    PR target/62038
    * config/pa/pa.c (pa_output_function_epilogue): Don't set
    last_address when the current function is a thunk.
    (pa_asm_output_mi_thunk): When we don't have named sections or they
    are not being used, check that thunk can reach the stub table with a
    short branch.


Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/config/pa/pa.c


^ permalink raw reply	[flat|nested] 9+ messages in thread

* [Bug target/62038] Out of range branch target in thunk
  2014-08-06 17:16 [Bug target/62038] New: Out of range branch target in thunk danglin at gcc dot gnu.org
                   ` (4 preceding siblings ...)
  2014-08-23 15:56 ` danglin at gcc dot gnu.org
@ 2014-08-23 15:58 ` danglin at gcc dot gnu.org
  2014-08-23 16:01 ` danglin at gcc dot gnu.org
  2014-08-23 16:05 ` danglin at gcc dot gnu.org
  7 siblings, 0 replies; 9+ messages in thread
From: danglin at gcc dot gnu.org @ 2014-08-23 15:58 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=62038

--- Comment #7 from John David Anglin <danglin at gcc dot gnu.org> ---
Author: danglin
Date: Sat Aug 23 15:57:57 2014
New Revision: 214398

URL: https://gcc.gnu.org/viewcvs?rev=214398&root=gcc&view=rev
Log:
    PR target/62038
    * config/pa/pa.c (pa_output_function_epilogue): Don't set
    last_address when the current function is a thunk.
    (pa_asm_output_mi_thunk): When we don't have named sections or they
    are not being used, check that thunk can reach the stub table with a
    short branch.


Modified:
    branches/gcc-4_9-branch/gcc/ChangeLog
    branches/gcc-4_9-branch/gcc/config/pa/pa.c


^ permalink raw reply	[flat|nested] 9+ messages in thread

* [Bug target/62038] Out of range branch target in thunk
  2014-08-06 17:16 [Bug target/62038] New: Out of range branch target in thunk danglin at gcc dot gnu.org
                   ` (5 preceding siblings ...)
  2014-08-23 15:58 ` danglin at gcc dot gnu.org
@ 2014-08-23 16:01 ` danglin at gcc dot gnu.org
  2014-08-23 16:05 ` danglin at gcc dot gnu.org
  7 siblings, 0 replies; 9+ messages in thread
From: danglin at gcc dot gnu.org @ 2014-08-23 16:01 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=62038

--- Comment #8 from John David Anglin <danglin at gcc dot gnu.org> ---
Author: danglin
Date: Sat Aug 23 16:00:46 2014
New Revision: 214399

URL: https://gcc.gnu.org/viewcvs?rev=214399&root=gcc&view=rev
Log:
    PR target/62038
    * config/pa/pa.c (pa_output_function_epilogue): Don't set
    last_address when the current function is a thunk.
    (pa_asm_output_mi_thunk): When we don't have named sections or they
    are not being used, check that thunk can reach the stub table with a
    short branch.


Modified:
    branches/gcc-4_8-branch/gcc/ChangeLog
    branches/gcc-4_8-branch/gcc/config/pa/pa.c


^ permalink raw reply	[flat|nested] 9+ messages in thread

* [Bug target/62038] Out of range branch target in thunk
  2014-08-06 17:16 [Bug target/62038] New: Out of range branch target in thunk danglin at gcc dot gnu.org
                   ` (6 preceding siblings ...)
  2014-08-23 16:01 ` danglin at gcc dot gnu.org
@ 2014-08-23 16:05 ` danglin at gcc dot gnu.org
  7 siblings, 0 replies; 9+ messages in thread
From: danglin at gcc dot gnu.org @ 2014-08-23 16:05 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=62038

John David Anglin <danglin at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|REOPENED                    |RESOLVED
         Resolution|---                         |FIXED

--- Comment #9 from John David Anglin <danglin at gcc dot gnu.org> ---
Should be fixed.


^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2014-08-23 16:05 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-08-06 17:16 [Bug target/62038] New: Out of range branch target in thunk danglin at gcc dot gnu.org
2014-08-11 19:07 ` [Bug target/62038] " danglin at gcc dot gnu.org
2014-08-11 19:11 ` danglin at gcc dot gnu.org
2014-08-11 19:14 ` danglin at gcc dot gnu.org
2014-08-11 20:00 ` danglin at gcc dot gnu.org
2014-08-23 15:56 ` danglin at gcc dot gnu.org
2014-08-23 15:58 ` danglin at gcc dot gnu.org
2014-08-23 16:01 ` danglin at gcc dot gnu.org
2014-08-23 16:05 ` danglin at gcc dot gnu.org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).