public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug optimization/12863] New: [3.4 regression] basic block reordering fails for fallthru of casesi
@ 2003-10-31 21:31 danglin at gcc dot gnu dot org
  2003-10-31 22:14 ` [Bug optimization/12863] " pinskia at gcc dot gnu dot org
                   ` (26 more replies)
  0 siblings, 27 replies; 28+ messages in thread
From: danglin at gcc dot gnu dot org @ 2003-10-31 21:31 UTC (permalink / raw)
  To: gcc-bugs

PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.

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

           Summary: [3.4 regression] basic block reordering fails for
                    fallthru of casesi
           Product: gcc
           Version: 3.4
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: optimization
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: danglin at gcc dot gnu dot org
                CC: gcc-bugs at gcc dot gnu dot org,jh at suse dot cz
 GCC build triplet: hppa1.1-hp-hpux10.20
  GCC host triplet: hppa1.1-hp-hpux10.20
GCC target triplet: vax-dec-ultrix4.3

The following error occurs in a native build on vax-dec-ultrix4.3:

stage1/xgcc -Bstage1/ -B/usr/local/vax-dec-ultrix4.3/bin/   -g -O2 -DIN_GCC   -W
 -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -pedantic -Wno-l
ong-long -Werror -fno-common   -DHAVE_CONFIG_H    -I. -I. -I../../gcc/gcc -I../.
./gcc/gcc/. -I../../gcc/gcc/../include  -c insn-recog.c \
  -o insn-recog.o
/usr/tmp//ccIivLi7.s: Assembler messages:
/usr/tmp//ccIivLi7.s:5966: Error: can't resolve `L1074' {unknown section} - `L10
86' {text section}

Looking at this problem with a cross compiler built on hppa1.1-hp-hpux10.20,
I see exactly the same problem and find that the code label for L1074 disappears
in bbro pass.  Looking at the assembler output with and without basic block
reordering, I see:

With basic block reordering:

        movzwl (r6),r0
        casel r0,$114,$5
L1086:
        .word L1084-L1086
        .word L1074-L1086
        .word L1078-L1086
        .word L1076-L1086
        .word L1082-L1086
        .word L1080-L1086
        .stabd  68,0,4406
        movl 4(r7),r8
        jbr L1392

Without basic block reordering:

        movzwl (r6),r0
        casel r0,$114,$5
L1086:
        .word L1084-L1086
        .word L1074-L1086
        .word L1078-L1086
        .word L1076-L1086
        .word L1082-L1086
        .word L1080-L1086
L1074:
        jbr L1385
L1076:
        .stabd  68,0,3809
        movl 4(r6),r10
        .stabd  68,0,3810
        ...
L1385:
        .stabd  68,0,4406
        movl 4(r7),r8
        .stabd  68,0,4407
        jbr L1062

We have lost the label at the end of the address difference table when basic
block reordering is in effect.  Either it should remain as L1074, or it should
change to L1385 and the table updated.  The right code appears to have been
placed in the fallthru.


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

end of thread, other threads:[~2005-05-19 17:24 UTC | newest]

Thread overview: 28+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-10-31 21:31 [Bug optimization/12863] New: [3.4 regression] basic block reordering fails for fallthru of casesi danglin at gcc dot gnu dot org
2003-10-31 22:14 ` [Bug optimization/12863] " pinskia at gcc dot gnu dot org
2003-11-01  1:16 ` jh at suse dot cz
2003-11-01  1:52 ` danglin at gcc dot gnu dot org
2003-11-02 22:50 ` pinskia at gcc dot gnu dot org
2003-12-29 17:44 ` pinskia at gcc dot gnu dot org
2004-01-10 11:30 ` steven at gcc dot gnu dot org
2004-01-10 17:53 ` dave at hiauly1 dot hia dot nrc dot ca
2004-01-10 20:27 ` pinskia at gcc dot gnu dot org
2004-01-10 20:54 ` dave at hiauly1 dot hia dot nrc dot ca
2004-01-11  0:27 ` pinskia at gcc dot gnu dot org
2004-01-12 16:32 ` cvs-commit at gcc dot gnu dot org
2004-01-12 17:27 ` pinskia at gcc dot gnu dot org
2004-01-12 18:50 ` dave at hiauly1 dot hia dot nrc dot ca
2004-01-27 13:11 ` [Bug optimization/12863] [3.4/3.5 " cvs-commit at gcc dot gnu dot org
2004-01-29  3:34 ` dhazeghi at yahoo dot com
2004-02-09  2:46 ` dave at hiauly1 dot hia dot nrc dot ca
2004-02-09  5:04 ` pinskia at gcc dot gnu dot org
2004-03-09 20:44 ` mmitchel at gcc dot gnu dot org
2004-03-21  8:36 ` zlomek at gcc dot gnu dot org
2004-03-27  0:03 ` dave at hiauly1 dot hia dot nrc dot ca
2004-05-29 17:58 ` [Bug rtl-optimization/12863] " mmitchel at gcc dot gnu dot org
2004-08-19 20:32 ` mmitchel at gcc dot gnu dot org
2004-09-27  3:44 ` [Bug rtl-optimization/12863] [3.4/4.0 " pinskia at gcc dot gnu dot org
2004-10-31  2:04 ` mmitchel at gcc dot gnu dot org
2004-12-05  3:26 ` [Bug rtl-optimization/12863] [3.4 " pinskia at gcc dot gnu dot org
2004-12-05  3:48 ` dave at hiauly1 dot hia dot nrc dot ca
2005-05-19 17:24 ` mmitchel at gcc dot gnu dot 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).