public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug middle-end/55195] New: [4.8 Regression] shorten_branches generates incorrect forward branch distances
@ 2012-11-03 17:05 danglin at gcc dot gnu.org
  2012-11-03 20:45 ` [Bug middle-end/55195] " amylaar at gcc dot gnu.org
                   ` (18 more replies)
  0 siblings, 19 replies; 20+ messages in thread
From: danglin at gcc dot gnu.org @ 2012-11-03 17:05 UTC (permalink / raw)
  To: gcc-bugs


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

             Bug #: 55195
           Summary: [4.8 Regression] shorten_branches generates incorrect
                    forward branch distances
    Classification: Unclassified
           Product: gcc
           Version: 4.8.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: middle-end
        AssignedTo: unassigned@gcc.gnu.org
        ReportedBy: danglin@gcc.gnu.org
                CC: amylaar@gcc.gnu.org
              Host: hppa-unknown-linux-gnu
            Target: hppa-unknown-linux-gnu
             Build: hppa-unknown-linux-gnu


/bin/sh ./libtool --tag=GCJ   --mode=compile
/home/dave/gnu/gcc/objdir/./gcc/gcj
 -B/home/dave/gnu/gcc/objdir/hppa-linux-gnu/libjava/
-B/home/dave/gnu/gcc/objdir
/./gcc/ -B/home/dave/opt/gnu/gcc/gcc-4.8.0/hppa-linux-gnu/bin/
-B/home/dave/opt/
gnu/gcc/gcc-4.8.0/hppa-linux-gnu/lib/ -isystem
/home/dave/opt/gnu/gcc/gcc-4.8.0/
hppa-linux-gnu/include -isystem
/home/dave/opt/gnu/gcc/gcc-4.8.0/hppa-linux-gnu/
sys-include    -fclasspath= -fbootclasspath=../../../gcc/libjava/classpath/lib
-
-encoding=UTF-8 -Wno-deprecated -fbootstrap-classes -g -O2  -c -o
gnu/javax/swin
g/text/html/parser/HTML_401F.lo
-fsource-filename=/home/dave/gnu/gcc/objdir/hppa
-linux-gnu/libjava/classpath/lib/classes -MT
gnu/javax/swing/text/html/parser/HT
ML_401F.lo -MD -MP -MF gnu/javax/swing/text/html/parser/HTML_401F.deps
@gnu/java
x/swing/text/html/parser/HTML_401F.list
libtool: compile:  /home/dave/gnu/gcc/objdir/./gcc/gcj
-B/home/dave/gnu/gcc/objdir/hppa-linux-gnu/libjava/
-B/home/dave/gnu/gcc/objdir/./gcc/
-B/home/dave/opt/gnu/gcc/gcc-4.8.0/hppa-linux-gnu/bin/
-B/home/dave/opt/gnu/gcc/gcc-4.8.0/hppa-linux-gnu/lib/ -isystem
/home/dave/opt/gnu/gcc/gcc-4.8.0/hppa-linux-gnu/include -isystem
/home/dave/opt/gnu/gcc/gcc-4.8.0/hppa-linux-gnu/sys-include -fclasspath=
-fbootclasspath=../../../gcc/libjava/classpath/lib --encoding=UTF-8
-Wno-deprecated -fbootstrap-classes -g -O2 -c
-fsource-filename=/home/dave/gnu/gcc/objdir/hppa-linux-gnu/libjava/classpath/lib/classes
-MT gnu/javax/swing/text/html/parser/HTML_401F.lo -MD -MP -MF
gnu/javax/swing/text/html/parser/HTML_401F.deps
@gnu/javax/swing/text/html/parser/HTML_401F.list  -fPIC -o
gnu/javax/swing/text/html/parser/.libs/HTML_401F.o
/tmp/cc4e6qnd.s: Assembler messages:
/tmp/cc4e6qnd.s:79330: Error: Field out of range [-8192..8191] (8316).
/tmp/cc4e6qnd.s:79362: Error: Field out of range [-8192..8191] (8280).
/tmp/cc4e6qnd.s:79395: Error: Field out of range [-8192..8191] (8244).
/tmp/cc4e6qnd.s:79428: Error: Field out of range [-8192..8191] (8208).
make[3]: *** [gnu/javax/swing/text/html/parser/HTML_401F.lo] Error 1

/bin/sh ./libtool --tag=GCJ   --mode=compile
/home/dave/gnu/gcc/objdir/./gcc/gcj
 -B/home/dave/gnu/gcc/objdir/hppa-linux-gnu/libjava/
-B/home/dave/gnu/gcc/objdir
/./gcc/ -B/home/dave/opt/gnu/gcc/gcc-4.8.0/hppa-linux-gnu/bin/
-B/home/dave/opt/
gnu/gcc/gcc-4.8.0/hppa-linux-gnu/lib/ -isystem
/home/dave/opt/gnu/gcc/gcc-4.8.0/
hppa-linux-gnu/include -isystem
/home/dave/opt/gnu/gcc/gcc-4.8.0/hppa-linux-gnu/
sys-include    -fclasspath= -fbootclasspath=../../../gcc/libjava/classpath/lib
-
-encoding=UTF-8 -Wno-deprecated -fbootstrap-classes -g -O2  -c -o
gnu/java/nio/c
harset.lo
-fsource-filename=/home/dave/gnu/gcc/objdir/hppa-linux-gnu/libjava/cla
sspath/lib/classes -MT gnu/java/nio/charset.lo -MD -MP -MF
gnu/java/nio/charset.
deps @gnu/java/nio/charset.list
libtool: compile:  /home/dave/gnu/gcc/objdir/./gcc/gcj
-B/home/dave/gnu/gcc/objd
ir/hppa-linux-gnu/libjava/ -B/home/dave/gnu/gcc/objdir/./gcc/
-B/home/dave/opt/g
nu/gcc/gcc-4.8.0/hppa-linux-gnu/bin/
-B/home/dave/opt/gnu/gcc/gcc-4.8.0/hppa-lin
ux-gnu/lib/ -isystem /home/dave/opt/gnu/gcc/gcc-4.8.0/hppa-linux-gnu/include
-is
ystem /home/dave/opt/gnu/gcc/gcc-4.8.0/hppa-linux-gnu/sys-include -fclasspath=
-
fbootclasspath=../../../gcc/libjava/classpath/lib --encoding=UTF-8
-Wno-deprecat
ed -fbootstrap-classes -g -O2 -c
-fsource-filename=/home/dave/gnu/gcc/objdir/hpp
a-linux-gnu/libjava/classpath/lib/classes -MT gnu/java/nio/charset.lo -MD -MP
-M
F gnu/java/nio/charset.deps @gnu/java/nio/charset.list  -fPIC -o
gnu/java/nio/.l
ibs/charset.o
/tmp/ccKzEAz7.s: Assembler messages:
/tmp/ccKzEAz7.s:105074: Error: Field out of range [-8192..8191] (9344).
/tmp/ccKzEAz7.s:105079: Error: Field out of range [-8192..8191] (9288).
/tmp/ccKzEAz7.s:105084: Error: Field out of range [-8192..8191] (9232).
/tmp/ccKzEAz7.s:105089: Error: Field out of range [-8192..8191] (9176).
/tmp/ccKzEAz7.s:105094: Error: Field out of range [-8192..8191] (9120).
/tmp/ccKzEAz7.s:105099: Error: Field out of range [-8192..8191] (9064).
/tmp/ccKzEAz7.s:105104: Error: Field out of range [-8192..8191] (9008).
/tmp/ccKzEAz7.s:105109: Error: Field out of range [-8192..8191] (8952).
/tmp/ccKzEAz7.s:105114: Error: Field out of range [-8192..8191] (8896).
/tmp/ccKzEAz7.s:105119: Error: Field out of range [-8192..8191] (8836).
/tmp/ccKzEAz7.s:105125: Error: Field out of range [-8192..8191] (8776).
/tmp/ccKzEAz7.s:105130: Error: Field out of range [-8192..8191] (8720).
/tmp/ccKzEAz7.s:105135: Error: Field out of range [-8192..8191] (8664).
/tmp/ccKzEAz7.s:105140: Error: Field out of range [-8192..8191] (8608).
/tmp/ccKzEAz7.s:105145: Error: Field out of range [-8192..8191] (8552).
/tmp/ccKzEAz7.s:105150: Error: Field out of range [-8192..8191] (8496).
/tmp/ccKzEAz7.s:105155: Error: Field out of range [-8192..8191] (8440).
/tmp/ccKzEAz7.s:105160: Error: Field out of range [-8192..8191] (8384).
/tmp/ccKzEAz7.s:105165: Error: Field out of range [-8192..8191] (8328).
/tmp/ccKzEAz7.s:105170: Error: Field out of range [-8192..8191] (8268).
/tmp/ccKzEAz7.s:105176: Error: Field out of range [-8192..8191] (8208).
make[3]: *** [gnu/java/nio/charset.lo] Error 1

All out of range targets are in the forward direction.

Bug was introduced in revision 192634:

2012-10-20  Joern Rennecke  <joern.rennecke@embecosm.com>
            Richard Sandiford  <rdsandiford@googlemail.com>

        * final.c (shorten_branches): When optimizing, start with small
        length and increase from there, and don't decrease lengths.

Problem goes away if I revert this change.


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

end of thread, other threads:[~2012-12-06  2:20 UTC | newest]

Thread overview: 20+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-11-03 17:05 [Bug middle-end/55195] New: [4.8 Regression] shorten_branches generates incorrect forward branch distances danglin at gcc dot gnu.org
2012-11-03 20:45 ` [Bug middle-end/55195] " amylaar at gcc dot gnu.org
2012-11-04  2:52 ` dave.anglin at bell dot net
2012-11-04 16:59 ` amylaar at gcc dot gnu.org
2012-11-04 17:32 ` [Bug target/55195] " amylaar at gcc dot gnu.org
2012-11-04 17:35 ` amylaar at gcc dot gnu.org
2012-11-04 22:23 ` dave.anglin at bell dot net
2012-11-04 23:50 ` dave.anglin at bell dot net
2012-11-05  2:32 ` amylaar at gcc dot gnu.org
2012-11-05 16:21 ` [Bug middle-end/55195] " amylaar at gcc dot gnu.org
2012-11-06 12:26 ` dave.anglin at bell dot net
2012-11-06 15:41 ` amylaar at gcc dot gnu.org
2012-11-06 17:25 ` amylaar at gcc dot gnu.org
2012-11-07  0:39 ` dave.anglin at bell dot net
2012-11-07  0:54 ` amylaar at gcc dot gnu.org
2012-11-11 18:09 ` danglin at gcc dot gnu.org
2012-11-13  0:37 ` [Bug target/55195] " danglin at gcc dot gnu.org
2012-11-13  1:11 ` danglin at gcc dot gnu.org
2012-12-01 20:36 ` danglin at gcc dot gnu.org
2012-12-06  2:20 ` 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).