public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug rtl-optimization/32773] New: [4.3 Regression] SH: ICE in create_pre_exit, at mode-switching.c:223
@ 2007-07-16 6:50 kkojima at gcc dot gnu dot org
2007-07-16 8:53 ` [Bug rtl-optimization/32773] " pinskia at gcc dot gnu dot org
` (7 more replies)
0 siblings, 8 replies; 9+ messages in thread
From: kkojima at gcc dot gnu dot org @ 2007-07-16 6:50 UTC (permalink / raw)
To: gcc-bugs
With -m4 -O -fprofile-use, sh-elf compiler fails for
void foo (int *p)
{
if (p)
*p = 0;
}
with
internal compiler error: in create_pre_exit, at mode-switching.c:223
It starts to fail after the patch
r126576 | rakdver | 2007-07-12 19:24:19 +0900 (Thu, 12 Jul 2007) | 5 lines
PR rtl-optimization/32729
* cfghooks.c (can_duplicate_block_p): Do not forbid duplicating blocks
that fallthru to exit.
mode-switching.c:create_pre_exit seems to assume that there is
at most one fallthru predecessor to exit block. Unfortunately,
cfg_layout_finalize can't fix the problem, as mode-switching pass
runs before reload_completed and cfg_layout_finalize calls
fixup_fallthru_exit_predecessor only after reload_completed.
--
Summary: [4.3 Regression] SH: ICE in create_pre_exit, at mode-
switching.c:223
Product: gcc
Version: 4.3.0
Status: UNCONFIRMED
Keywords: ice-on-valid-code
Severity: normal
Priority: P3
Component: rtl-optimization
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: kkojima at gcc dot gnu dot org
GCC target triplet: sh-elf
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=32773
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug rtl-optimization/32773] [4.3 Regression] SH: ICE in create_pre_exit, at mode-switching.c:223
2007-07-16 6:50 [Bug rtl-optimization/32773] New: [4.3 Regression] SH: ICE in create_pre_exit, at mode-switching.c:223 kkojima at gcc dot gnu dot org
@ 2007-07-16 8:53 ` pinskia at gcc dot gnu dot org
2007-07-16 9:47 ` rguenth at gcc dot gnu dot org
` (6 subsequent siblings)
7 siblings, 0 replies; 9+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2007-07-16 8:53 UTC (permalink / raw)
To: gcc-bugs
--
pinskia at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |pinskia at gcc dot gnu dot
| |org
Target Milestone|--- |4.3.0
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=32773
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug rtl-optimization/32773] [4.3 Regression] SH: ICE in create_pre_exit, at mode-switching.c:223
2007-07-16 6:50 [Bug rtl-optimization/32773] New: [4.3 Regression] SH: ICE in create_pre_exit, at mode-switching.c:223 kkojima at gcc dot gnu dot org
2007-07-16 8:53 ` [Bug rtl-optimization/32773] " pinskia at gcc dot gnu dot org
@ 2007-07-16 9:47 ` rguenth at gcc dot gnu dot org
2007-07-16 9:56 ` rakdver at gcc dot gnu dot org
` (5 subsequent siblings)
7 siblings, 0 replies; 9+ messages in thread
From: rguenth at gcc dot gnu dot org @ 2007-07-16 9:47 UTC (permalink / raw)
To: gcc-bugs
------- Comment #1 from rguenth at gcc dot gnu dot org 2007-07-16 09:47 -------
Zdenek, I think this change also breaks FDO compiles with tramp3d, sed, gawk
and gzip (the resulting -fprofile-use binaries segfault).
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=32773
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug rtl-optimization/32773] [4.3 Regression] SH: ICE in create_pre_exit, at mode-switching.c:223
2007-07-16 6:50 [Bug rtl-optimization/32773] New: [4.3 Regression] SH: ICE in create_pre_exit, at mode-switching.c:223 kkojima at gcc dot gnu dot org
2007-07-16 8:53 ` [Bug rtl-optimization/32773] " pinskia at gcc dot gnu dot org
2007-07-16 9:47 ` rguenth at gcc dot gnu dot org
@ 2007-07-16 9:56 ` rakdver at gcc dot gnu dot org
2007-07-16 10:23 ` rguenth at gcc dot gnu dot org
` (4 subsequent siblings)
7 siblings, 0 replies; 9+ messages in thread
From: rakdver at gcc dot gnu dot org @ 2007-07-16 9:56 UTC (permalink / raw)
To: gcc-bugs
------- Comment #2 from rakdver at gcc dot gnu dot org 2007-07-16 09:56 -------
(In reply to comment #1)
> Zdenek, I think this change also breaks FDO compiles with tramp3d, sed, gawk
> and gzip (the resulting -fprofile-use binaries segfault).
At least now we know why the check was there :-)
--
rakdver at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
AssignedTo|unassigned at gcc dot gnu |rakdver at gcc dot gnu dot
|dot org |org
Status|UNCONFIRMED |ASSIGNED
Ever Confirmed|0 |1
Last reconfirmed|0000-00-00 00:00:00 |2007-07-16 09:56:03
date| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=32773
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug rtl-optimization/32773] [4.3 Regression] SH: ICE in create_pre_exit, at mode-switching.c:223
2007-07-16 6:50 [Bug rtl-optimization/32773] New: [4.3 Regression] SH: ICE in create_pre_exit, at mode-switching.c:223 kkojima at gcc dot gnu dot org
` (2 preceding siblings ...)
2007-07-16 9:56 ` rakdver at gcc dot gnu dot org
@ 2007-07-16 10:23 ` rguenth at gcc dot gnu dot org
2007-07-16 15:57 ` burnus at gcc dot gnu dot org
` (3 subsequent siblings)
7 siblings, 0 replies; 9+ messages in thread
From: rguenth at gcc dot gnu dot org @ 2007-07-16 10:23 UTC (permalink / raw)
To: gcc-bugs
------- Comment #3 from rguenth at gcc dot gnu dot org 2007-07-16 10:23 -------
I verified that reverting r126576 fixes the tramp3d miscompile.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=32773
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug rtl-optimization/32773] [4.3 Regression] SH: ICE in create_pre_exit, at mode-switching.c:223
2007-07-16 6:50 [Bug rtl-optimization/32773] New: [4.3 Regression] SH: ICE in create_pre_exit, at mode-switching.c:223 kkojima at gcc dot gnu dot org
` (3 preceding siblings ...)
2007-07-16 10:23 ` rguenth at gcc dot gnu dot org
@ 2007-07-16 15:57 ` burnus at gcc dot gnu dot org
2007-07-16 19:39 ` rakdver at gcc dot gnu dot org
` (2 subsequent siblings)
7 siblings, 0 replies; 9+ messages in thread
From: burnus at gcc dot gnu dot org @ 2007-07-16 15:57 UTC (permalink / raw)
To: gcc-bugs
------- Comment #4 from burnus at gcc dot gnu dot org 2007-07-16 15:56 -------
*** Bug 32779 has been marked as a duplicate of this bug. ***
--
burnus at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |burnus at gcc dot gnu dot
| |org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=32773
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug rtl-optimization/32773] [4.3 Regression] SH: ICE in create_pre_exit, at mode-switching.c:223
2007-07-16 6:50 [Bug rtl-optimization/32773] New: [4.3 Regression] SH: ICE in create_pre_exit, at mode-switching.c:223 kkojima at gcc dot gnu dot org
` (4 preceding siblings ...)
2007-07-16 15:57 ` burnus at gcc dot gnu dot org
@ 2007-07-16 19:39 ` rakdver at gcc dot gnu dot org
2007-07-17 3:57 ` rakdver at gcc dot gnu dot org
2007-07-18 19:45 ` pinskia at gcc dot gnu dot org
7 siblings, 0 replies; 9+ messages in thread
From: rakdver at gcc dot gnu dot org @ 2007-07-16 19:39 UTC (permalink / raw)
To: gcc-bugs
------- Comment #5 from rakdver at gcc dot gnu dot org 2007-07-16 19:39 -------
Patch: http://gcc.gnu.org/ml/gcc-patches/2007-07/msg01462.html
--
rakdver at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
URL| |http://gcc.gnu.org/ml/gcc-
| |patches/2007-
| |07/msg01462.html
Keywords| |patch
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=32773
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug rtl-optimization/32773] [4.3 Regression] SH: ICE in create_pre_exit, at mode-switching.c:223
2007-07-16 6:50 [Bug rtl-optimization/32773] New: [4.3 Regression] SH: ICE in create_pre_exit, at mode-switching.c:223 kkojima at gcc dot gnu dot org
` (5 preceding siblings ...)
2007-07-16 19:39 ` rakdver at gcc dot gnu dot org
@ 2007-07-17 3:57 ` rakdver at gcc dot gnu dot org
2007-07-18 19:45 ` pinskia at gcc dot gnu dot org
7 siblings, 0 replies; 9+ messages in thread
From: rakdver at gcc dot gnu dot org @ 2007-07-17 3:57 UTC (permalink / raw)
To: gcc-bugs
------- Comment #6 from rakdver at gcc dot gnu dot org 2007-07-17 03:56 -------
Subject: Bug 32773
Author: rakdver
Date: Tue Jul 17 03:56:40 2007
New Revision: 126700
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=126700
Log:
PR rtl-optimization/32773
* cfglayout.c (force_one_exit_fallthru): New function.
(cfg_layout_finalize): Use it.
* gcc.dg/pr32773.c: New test.
Added:
trunk/gcc/testsuite/gcc.dg/pr32773.c
Modified:
trunk/gcc/ChangeLog
trunk/gcc/cfglayout.c
trunk/gcc/testsuite/ChangeLog
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=32773
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug rtl-optimization/32773] [4.3 Regression] SH: ICE in create_pre_exit, at mode-switching.c:223
2007-07-16 6:50 [Bug rtl-optimization/32773] New: [4.3 Regression] SH: ICE in create_pre_exit, at mode-switching.c:223 kkojima at gcc dot gnu dot org
` (6 preceding siblings ...)
2007-07-17 3:57 ` rakdver at gcc dot gnu dot org
@ 2007-07-18 19:45 ` pinskia at gcc dot gnu dot org
7 siblings, 0 replies; 9+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2007-07-18 19:45 UTC (permalink / raw)
To: gcc-bugs
------- Comment #7 from pinskia at gcc dot gnu dot org 2007-07-18 19:45 -------
Fixed.
--
pinskia at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|ASSIGNED |RESOLVED
Resolution| |FIXED
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=32773
^ permalink raw reply [flat|nested] 9+ messages in thread
end of thread, other threads:[~2007-07-18 19:45 UTC | newest]
Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-07-16 6:50 [Bug rtl-optimization/32773] New: [4.3 Regression] SH: ICE in create_pre_exit, at mode-switching.c:223 kkojima at gcc dot gnu dot org
2007-07-16 8:53 ` [Bug rtl-optimization/32773] " pinskia at gcc dot gnu dot org
2007-07-16 9:47 ` rguenth at gcc dot gnu dot org
2007-07-16 9:56 ` rakdver at gcc dot gnu dot org
2007-07-16 10:23 ` rguenth at gcc dot gnu dot org
2007-07-16 15:57 ` burnus at gcc dot gnu dot org
2007-07-16 19:39 ` rakdver at gcc dot gnu dot org
2007-07-17 3:57 ` rakdver at gcc dot gnu dot org
2007-07-18 19:45 ` pinskia 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).