public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug rtl-optimization/50833] New: ICE: in maybe_record_trace_start, at dwarf2cfi.c:2243 with -fshrink-wrap
@ 2011-10-22 17:45 zsojka at seznam dot cz
  2011-10-24 11:46 ` [Bug rtl-optimization/50833] " bernds at gcc dot gnu.org
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: zsojka at seznam dot cz @ 2011-10-22 17:45 UTC (permalink / raw)
  To: gcc-bugs

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

             Bug #: 50833
           Summary: ICE: in maybe_record_trace_start, at dwarf2cfi.c:2243
                    with -fshrink-wrap
    Classification: Unclassified
           Product: gcc
           Version: 4.7.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: rtl-optimization
        AssignedTo: unassigned@gcc.gnu.org
        ReportedBy: zsojka@seznam.cz
                CC: bernds@gcc.gnu.org
              Host: x86_64-pc-linux-gnu
            Target: x86_64-pc-linux-gnu


Created attachment 25577
  --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=25577
reduced testcase

Compiler output:
$ gcc -fshrink-wrap testcase.c         
testcase.c: In function 'foo':
testcase.c:7:1: internal compiler error: in maybe_record_trace_start, at
dwarf2cfi.c:2243
Please submit a full bug report,
with preprocessed source if appropriate.
See <http://gcc.gnu.org/bugs.html> for instructions.

(gdb) bt
#0  fancy_abort (file=0x1234f40 "/mnt/svn/gcc-trunk/gcc/dwarf2cfi.c",
line=2243, function=0x1236260 "maybe_record_trace_start")
    at /mnt/svn/gcc-trunk/gcc/diagnostic.c:898
#1  0x00000000006d9804 in maybe_record_trace_start (start=Unhandled dwarf
expression opcode 0xf3
) at /mnt/svn/gcc-trunk/gcc/dwarf2cfi.c:2243
#2  0x00000000006da3f4 in scan_trace (trace=Unhandled dwarf expression opcode
0xf3
) at /mnt/svn/gcc-trunk/gcc/dwarf2cfi.c:2420
#3  0x00000000006db9a7 in create_cfi_notes () at
/mnt/svn/gcc-trunk/gcc/dwarf2cfi.c:2550
#4  execute_dwarf2_frame () at /mnt/svn/gcc-trunk/gcc/dwarf2cfi.c:2908
#5  0x00000000008e5d68 in execute_one_pass (pass=0x179d860) at
/mnt/svn/gcc-trunk/gcc/passes.c:2064
#6  0x00000000008e60d5 in execute_pass_list (pass=0x179d860) at
/mnt/svn/gcc-trunk/gcc/passes.c:2119
#7  0x00000000008e60e7 in execute_pass_list (pass=0x179e840) at
/mnt/svn/gcc-trunk/gcc/passes.c:2120
#8  0x00000000008e60e7 in execute_pass_list (pass=0x179e8a0) at
/mnt/svn/gcc-trunk/gcc/passes.c:2120
#9  0x0000000000a3df6e in tree_rest_of_compilation (fndecl=0x7ffff568a100) at
/mnt/svn/gcc-trunk/gcc/tree-optimize.c:420
#10 0x000000000069475a in cgraph_expand_function (node=0x7ffff55886c0) at
/mnt/svn/gcc-trunk/gcc/cgraphunit.c:1819
#11 0x00000000006968ca in cgraph_output_in_order () at
/mnt/svn/gcc-trunk/gcc/cgraphunit.c:1984
#12 cgraph_optimize () at /mnt/svn/gcc-trunk/gcc/cgraphunit.c:2192
#13 0x0000000000696baa in cgraph_finalize_compilation_unit () at
/mnt/svn/gcc-trunk/gcc/cgraphunit.c:1327
#14 0x000000000057939b in c_write_global_declarations () at
/mnt/svn/gcc-trunk/gcc/c-decl.c:9940
#15 0x00000000009dbb84 in compile_file (argc=13, argv=0x7fffffffdb08) at
/mnt/svn/gcc-trunk/gcc/toplev.c:581
#16 do_compile (argc=13, argv=0x7fffffffdb08) at
/mnt/svn/gcc-trunk/gcc/toplev.c:1930
#17 toplev_main (argc=13, argv=0x7fffffffdb08) at
/mnt/svn/gcc-trunk/gcc/toplev.c:2006
#18 0x00007ffff6178d2d in __libc_start_main () from /lib64/libc.so.6
#19 0x000000000055cf19 in _start ()

Tested revisions:
r180324 - crash


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

* [Bug rtl-optimization/50833] ICE: in maybe_record_trace_start, at dwarf2cfi.c:2243 with -fshrink-wrap
  2011-10-22 17:45 [Bug rtl-optimization/50833] New: ICE: in maybe_record_trace_start, at dwarf2cfi.c:2243 with -fshrink-wrap zsojka at seznam dot cz
@ 2011-10-24 11:46 ` bernds at gcc dot gnu.org
  2011-11-23  8:26 ` zsojka at seznam dot cz
  2011-12-16 20:07 ` pinskia at gcc dot gnu.org
  2 siblings, 0 replies; 4+ messages in thread
From: bernds at gcc dot gnu.org @ 2011-10-24 11:46 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #1 from Bernd Schmidt <bernds at gcc dot gnu.org> 2011-10-24 11:46:09 UTC ---
Author: bernds
Date: Mon Oct 24 11:46:04 2011
New Revision: 180377

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=180377
Log:
    PR rtl-optimization/50833
    * function.c (thread_prologue_and_epilogue_insns): Expect the
    return insn optimization only if optimize.

Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/function.c


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

* [Bug rtl-optimization/50833] ICE: in maybe_record_trace_start, at dwarf2cfi.c:2243 with -fshrink-wrap
  2011-10-22 17:45 [Bug rtl-optimization/50833] New: ICE: in maybe_record_trace_start, at dwarf2cfi.c:2243 with -fshrink-wrap zsojka at seznam dot cz
  2011-10-24 11:46 ` [Bug rtl-optimization/50833] " bernds at gcc dot gnu.org
@ 2011-11-23  8:26 ` zsojka at seznam dot cz
  2011-12-16 20:07 ` pinskia at gcc dot gnu.org
  2 siblings, 0 replies; 4+ messages in thread
From: zsojka at seznam dot cz @ 2011-11-23  8:26 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #2 from Zdenek Sojka <zsojka at seznam dot cz> 2011-11-23 05:22:00 UTC ---
The ICE no longer happens after this change.


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

* [Bug rtl-optimization/50833] ICE: in maybe_record_trace_start, at dwarf2cfi.c:2243 with -fshrink-wrap
  2011-10-22 17:45 [Bug rtl-optimization/50833] New: ICE: in maybe_record_trace_start, at dwarf2cfi.c:2243 with -fshrink-wrap zsojka at seznam dot cz
  2011-10-24 11:46 ` [Bug rtl-optimization/50833] " bernds at gcc dot gnu.org
  2011-11-23  8:26 ` zsojka at seznam dot cz
@ 2011-12-16 20:07 ` pinskia at gcc dot gnu.org
  2 siblings, 0 replies; 4+ messages in thread
From: pinskia at gcc dot gnu.org @ 2011-12-16 20:07 UTC (permalink / raw)
  To: gcc-bugs

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

Andrew Pinski <pinskia at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|                            |FIXED
   Target Milestone|---                         |4.7.0

--- Comment #3 from Andrew Pinski <pinskia at gcc dot gnu.org> 2011-12-16 20:05:54 UTC ---
Fixed.


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

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

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-10-22 17:45 [Bug rtl-optimization/50833] New: ICE: in maybe_record_trace_start, at dwarf2cfi.c:2243 with -fshrink-wrap zsojka at seznam dot cz
2011-10-24 11:46 ` [Bug rtl-optimization/50833] " bernds at gcc dot gnu.org
2011-11-23  8:26 ` zsojka at seznam dot cz
2011-12-16 20:07 ` pinskia 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).