[Bug target/62038] New: Out of range branch target in thunk

danglin at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Wed Aug 6 17:16:00 GMT 2014


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.



More information about the Gcc-bugs mailing list