* [Bug debug/55094] [4.7/4.8 Regression] ICE in maybe_record_trace_start, at dwarf2cfi.c:2224
2012-10-27 2:43 [Bug debug/55094] New: [4.7/4.8 Regression] ICE in maybe_record_trace_start, at dwarf2cfi.c:2224 d.g.gorbachev at gmail dot com
@ 2012-10-29 14:36 ` rguenth at gcc dot gnu.org
2012-11-13 14:31 ` jakub at gcc dot gnu.org
` (6 subsequent siblings)
7 siblings, 0 replies; 9+ messages in thread
From: rguenth at gcc dot gnu.org @ 2012-10-29 14:36 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=55094
Richard Biener <rguenth at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Target| |i686-pc-linux-gnu
Target Milestone|--- |4.7.3
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug debug/55094] [4.7/4.8 Regression] ICE in maybe_record_trace_start, at dwarf2cfi.c:2224
2012-10-27 2:43 [Bug debug/55094] New: [4.7/4.8 Regression] ICE in maybe_record_trace_start, at dwarf2cfi.c:2224 d.g.gorbachev at gmail dot com
2012-10-29 14:36 ` [Bug debug/55094] " rguenth at gcc dot gnu.org
@ 2012-11-13 14:31 ` jakub at gcc dot gnu.org
2012-11-19 17:38 ` jakub at gcc dot gnu.org
` (5 subsequent siblings)
7 siblings, 0 replies; 9+ messages in thread
From: jakub at gcc dot gnu.org @ 2012-11-13 14:31 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=55094
Jakub Jelinek <jakub at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |NEW
Last reconfirmed| |2012-11-13
CC| |jakub at gcc dot gnu.org,
| |rth at gcc dot gnu.org,
| |vmakarov at gcc dot gnu.org
Ever Confirmed|0 |1
--- Comment #1 from Jakub Jelinek <jakub at gcc dot gnu.org> 2012-11-13 14:31:11 UTC ---
Doesn't ICE on the trunk anymore since LRA merge, apparently because LRA
decides for some reason to use frame pointer anyway, despite
-fomit-frame-pointer -Os.
CCing Vlad to see why. Apparently it happens in:
665 if (ep->from_rtx == XEXP (x, 0)
666 || (ep->to_rtx == XEXP (x, 0)
667 && ep->to_rtx != hard_frame_pointer_rtx))
668 setup_can_eliminate (ep, false);
where ep->from_rtx is (frame), ep->to_rtx is (sp) and x is (pre_dec:SI
(reg/f:SI 7 sp)).
Is that intentional?
Anyway, testcase that also ICEs on 4.7 branch is e.g.
extern int puts (const char *);
int x;
int
main (int argc, char **argv)
{
if (argc)
{
puts (argv[0]);
x = 1;
__builtin_unreachable ();
}
x = 1;
__builtin_unreachable ();
}
with the same options - similar reason, crossjumping during jump2 crossjumps
bbs with different ARGS_SIZE final depth. For noreturn calls we've handled it
by adding REG_ARGS_SIZE note on the noreturn call I think, for unconditional
TRAP_IF we perhaps could do the same, but not sure what we can do for
__builtin_unreachable which expands to nothing..., with no outgoing edge from
the bb at all.
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug debug/55094] [4.7/4.8 Regression] ICE in maybe_record_trace_start, at dwarf2cfi.c:2224
2012-10-27 2:43 [Bug debug/55094] New: [4.7/4.8 Regression] ICE in maybe_record_trace_start, at dwarf2cfi.c:2224 d.g.gorbachev at gmail dot com
2012-10-29 14:36 ` [Bug debug/55094] " rguenth at gcc dot gnu.org
2012-11-13 14:31 ` jakub at gcc dot gnu.org
@ 2012-11-19 17:38 ` jakub at gcc dot gnu.org
2012-11-20 8:38 ` jakub at gcc dot gnu.org
` (4 subsequent siblings)
7 siblings, 0 replies; 9+ messages in thread
From: jakub at gcc dot gnu.org @ 2012-11-19 17:38 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=55094
Jakub Jelinek <jakub at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |ASSIGNED
AssignedTo|unassigned at gcc dot |jakub at gcc dot gnu.org
|gnu.org |
--- Comment #2 from Jakub Jelinek <jakub at gcc dot gnu.org> 2012-11-19 17:37:28 UTC ---
Created attachment 28734
--> http://gcc.gnu.org/bugzilla/attachment.cgi?id=28734
gcc48-pr55094.patch
Untested fix.
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug debug/55094] [4.7/4.8 Regression] ICE in maybe_record_trace_start, at dwarf2cfi.c:2224
2012-10-27 2:43 [Bug debug/55094] New: [4.7/4.8 Regression] ICE in maybe_record_trace_start, at dwarf2cfi.c:2224 d.g.gorbachev at gmail dot com
` (2 preceding siblings ...)
2012-11-19 17:38 ` jakub at gcc dot gnu.org
@ 2012-11-20 8:38 ` jakub at gcc dot gnu.org
2012-11-20 8:43 ` [Bug debug/55094] [4.7 " jakub at gcc dot gnu.org
` (3 subsequent siblings)
7 siblings, 0 replies; 9+ messages in thread
From: jakub at gcc dot gnu.org @ 2012-11-20 8:38 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=55094
--- Comment #3 from Jakub Jelinek <jakub at gcc dot gnu.org> 2012-11-20 08:38:22 UTC ---
Author: jakub
Date: Tue Nov 20 08:38:11 2012
New Revision: 193649
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=193649
Log:
PR middle-end/55094
* builtins.c (expand_builtin_trap): Add REG_ARGS_SIZE note
on the trap insn for !ACCUMULATE_OUTGOING_ARGS.
* cfgcleanup.c (outgoing_edges_match): Don't look at debug insns
on the first old_insns_match_p call. For !ACCUMULATE_OUTGOING_ARGS
fail if the last real insn doesn't have REG_ARGS_SIZE note.
* gcc.dg/pr55094.c: New test.
Added:
trunk/gcc/testsuite/gcc.dg/pr55094.c
Modified:
trunk/gcc/ChangeLog
trunk/gcc/builtins.c
trunk/gcc/cfgcleanup.c
trunk/gcc/testsuite/ChangeLog
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug debug/55094] [4.7 Regression] ICE in maybe_record_trace_start, at dwarf2cfi.c:2224
2012-10-27 2:43 [Bug debug/55094] New: [4.7/4.8 Regression] ICE in maybe_record_trace_start, at dwarf2cfi.c:2224 d.g.gorbachev at gmail dot com
` (3 preceding siblings ...)
2012-11-20 8:38 ` jakub at gcc dot gnu.org
@ 2012-11-20 8:43 ` jakub at gcc dot gnu.org
2012-12-06 16:09 ` rguenth at gcc dot gnu.org
` (2 subsequent siblings)
7 siblings, 0 replies; 9+ messages in thread
From: jakub at gcc dot gnu.org @ 2012-11-20 8:43 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=55094
Jakub Jelinek <jakub at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Summary|[4.7/4.8 Regression] ICE in |[4.7 Regression] ICE in
|maybe_record_trace_start, |maybe_record_trace_start,
|at dwarf2cfi.c:2224 |at dwarf2cfi.c:2224
--- Comment #4 from Jakub Jelinek <jakub at gcc dot gnu.org> 2012-11-20 08:42:46 UTC ---
Fixed on the trunk so far.
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug debug/55094] [4.7 Regression] ICE in maybe_record_trace_start, at dwarf2cfi.c:2224
2012-10-27 2:43 [Bug debug/55094] New: [4.7/4.8 Regression] ICE in maybe_record_trace_start, at dwarf2cfi.c:2224 d.g.gorbachev at gmail dot com
` (4 preceding siblings ...)
2012-11-20 8:43 ` [Bug debug/55094] [4.7 " jakub at gcc dot gnu.org
@ 2012-12-06 16:09 ` rguenth at gcc dot gnu.org
2013-02-01 14:00 ` jakub at gcc dot gnu.org
2013-02-01 14:25 ` jakub at gcc dot gnu.org
7 siblings, 0 replies; 9+ messages in thread
From: rguenth at gcc dot gnu.org @ 2012-12-06 16:09 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=55094
Richard Biener <rguenth at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Keywords| |ice-checking
Priority|P3 |P2
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug debug/55094] [4.7 Regression] ICE in maybe_record_trace_start, at dwarf2cfi.c:2224
2012-10-27 2:43 [Bug debug/55094] New: [4.7/4.8 Regression] ICE in maybe_record_trace_start, at dwarf2cfi.c:2224 d.g.gorbachev at gmail dot com
` (5 preceding siblings ...)
2012-12-06 16:09 ` rguenth at gcc dot gnu.org
@ 2013-02-01 14:00 ` jakub at gcc dot gnu.org
2013-02-01 14:25 ` jakub at gcc dot gnu.org
7 siblings, 0 replies; 9+ messages in thread
From: jakub at gcc dot gnu.org @ 2013-02-01 14:00 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=55094
--- Comment #5 from Jakub Jelinek <jakub at gcc dot gnu.org> 2013-02-01 14:00:19 UTC ---
Author: jakub
Date: Fri Feb 1 14:00:12 2013
New Revision: 195650
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=195650
Log:
Backported from mainline
2012-11-20 Jakub Jelinek <jakub@redhat.com>
PR middle-end/55094
* builtins.c (expand_builtin_trap): Add REG_ARGS_SIZE note
on the trap insn for !ACCUMULATE_OUTGOING_ARGS.
* cfgcleanup.c (outgoing_edges_match): Don't look at debug insns
on the first old_insns_match_p call. For !ACCUMULATE_OUTGOING_ARGS
fail if the last real insn doesn't have REG_ARGS_SIZE note.
* gcc.dg/pr55094.c: New test.
Added:
branches/gcc-4_7-branch/gcc/testsuite/gcc.dg/pr55094.c
Modified:
branches/gcc-4_7-branch/gcc/ChangeLog
branches/gcc-4_7-branch/gcc/builtins.c
branches/gcc-4_7-branch/gcc/cfgcleanup.c
branches/gcc-4_7-branch/gcc/testsuite/ChangeLog
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug debug/55094] [4.7 Regression] ICE in maybe_record_trace_start, at dwarf2cfi.c:2224
2012-10-27 2:43 [Bug debug/55094] New: [4.7/4.8 Regression] ICE in maybe_record_trace_start, at dwarf2cfi.c:2224 d.g.gorbachev at gmail dot com
` (6 preceding siblings ...)
2013-02-01 14:00 ` jakub at gcc dot gnu.org
@ 2013-02-01 14:25 ` jakub at gcc dot gnu.org
7 siblings, 0 replies; 9+ messages in thread
From: jakub at gcc dot gnu.org @ 2013-02-01 14:25 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=55094
Jakub Jelinek <jakub at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|ASSIGNED |RESOLVED
Resolution| |FIXED
--- Comment #6 from Jakub Jelinek <jakub at gcc dot gnu.org> 2013-02-01 14:25:07 UTC ---
Fixed.
^ permalink raw reply [flat|nested] 9+ messages in thread