public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
* [Bug rtl-optimization/12863] [3.4 regression] basic block reordering fails for fallthru of casesi [not found] <bug-12863-276@http.gcc.gnu.org/bugzilla/> @ 2005-10-07 3:13 ` gdr at gcc dot gnu dot org 2006-02-28 8:49 ` gdr at gcc dot gnu dot org 1 sibling, 0 replies; 5+ messages in thread From: gdr at gcc dot gnu dot org @ 2005-10-07 3:13 UTC (permalink / raw) To: gcc-bugs -- gdr at gcc dot gnu dot org changed: What |Removed |Added ---------------------------------------------------------------------------- Target Milestone|3.4.5 |3.4.6 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=12863 ^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug rtl-optimization/12863] [3.4 regression] basic block reordering fails for fallthru of casesi [not found] <bug-12863-276@http.gcc.gnu.org/bugzilla/> 2005-10-07 3:13 ` [Bug rtl-optimization/12863] [3.4 regression] basic block reordering fails for fallthru of casesi gdr at gcc dot gnu dot org @ 2006-02-28 8:49 ` gdr at gcc dot gnu dot org 1 sibling, 0 replies; 5+ messages in thread From: gdr at gcc dot gnu dot org @ 2006-02-28 8:49 UTC (permalink / raw) To: gcc-bugs ------- Comment #24 from gdr at gcc dot gnu dot org 2006-02-28 08:47 ------- Fixed im 4.0 and up. Won't fix for 3.4.6 -- gdr at gcc dot gnu dot org changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED Target Milestone|3.4.6 |4.0.0 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=12863 ^ permalink raw reply [flat|nested] 5+ messages in thread
* [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 2004-12-05 3:26 ` [Bug rtl-optimization/12863] " pinskia at gcc dot gnu dot org ` (2 more replies) 0 siblings, 3 replies; 5+ 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] 5+ messages in thread
* [Bug rtl-optimization/12863] [3.4 regression] basic block reordering fails for fallthru of casesi 2003-10-31 21:31 [Bug optimization/12863] New: " danglin at gcc dot gnu dot org @ 2004-12-05 3:26 ` 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 2 siblings, 0 replies; 5+ messages in thread From: pinskia at gcc dot gnu dot org @ 2004-12-05 3:26 UTC (permalink / raw) To: gcc-bugs ------- Additional Comments From pinskia at gcc dot gnu dot org 2004-12-05 03:26 ------- Fixed on the mainline by: 2004-11-28 Steven Bosscher <stevenb@suse.de> John David Anglin <dave.anglin@nrc-cnrc.gc.ca> * config/vax/vax.h (CASE_DROPS_THROUGH): Don't define. * config/vax/vax.md (casesi): Emit a test-and-branch to make sure that the case is in range, to make sure the casesi insn is always in range and never falls through. (casesi1): Add comment to explain why casesi never falls through. Remove the unnamed special case casesi pattern. -- What |Removed |Added ---------------------------------------------------------------------------- Known to work|3.3 |3.3 4.0.0 Summary|[3.4/4.0 regression] basic |[3.4 regression] basic block |block reordering fails for |reordering fails for |fallthru of casesi |fallthru of casesi http://gcc.gnu.org/bugzilla/show_bug.cgi?id=12863 ^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug rtl-optimization/12863] [3.4 regression] basic block reordering fails for fallthru of casesi 2003-10-31 21:31 [Bug optimization/12863] New: " danglin at gcc dot gnu dot org 2004-12-05 3:26 ` [Bug rtl-optimization/12863] " 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 2 siblings, 0 replies; 5+ messages in thread From: dave at hiauly1 dot hia dot nrc dot ca @ 2004-12-05 3:48 UTC (permalink / raw) To: gcc-bugs ------- Additional Comments From dave at hiauly1 dot hia dot nrc dot ca 2004-12-05 03:48 ------- Subject: Re: [3.4 regression] basic block reorder > What |Removed |Added > ---------------------------------------------------------------------------- > Known to work|3.3 |3.3 4.0.0 I believe that 3.3 is broken. In my first attempt at a build with Steven's patch, I hit the error noted in comment #17. This occurred using 3.3 20030420 (prerelease). I debugged the ICE that occurred compiling genmodes.c and found that it was due to a miscompiled switch statement. I then switched to a different bootstrap compiler and the build was successful. It's quite possible that Josef's patch would have fixed the problem on 3.4 but unfortunately I didn't investigate further. I have a build of 3.3 in progress with Steven's patch. Should be done in a week or so ... Dave -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=12863 ^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug rtl-optimization/12863] [3.4 regression] basic block reordering fails for fallthru of casesi 2003-10-31 21:31 [Bug optimization/12863] New: " danglin at gcc dot gnu dot org 2004-12-05 3:26 ` [Bug rtl-optimization/12863] " 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 2 siblings, 0 replies; 5+ messages in thread From: mmitchel at gcc dot gnu dot org @ 2005-05-19 17:24 UTC (permalink / raw) To: gcc-bugs -- What |Removed |Added ---------------------------------------------------------------------------- Target Milestone|3.4.4 |3.4.5 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=12863 ^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2006-02-28 8:47 UTC | newest] Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed) -- links below jump to the message on this page -- [not found] <bug-12863-276@http.gcc.gnu.org/bugzilla/> 2005-10-07 3:13 ` [Bug rtl-optimization/12863] [3.4 regression] basic block reordering fails for fallthru of casesi gdr at gcc dot gnu dot org 2006-02-28 8:49 ` gdr at gcc dot gnu dot org 2003-10-31 21:31 [Bug optimization/12863] New: " danglin at gcc dot gnu dot org 2004-12-05 3:26 ` [Bug rtl-optimization/12863] " 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).