public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug target/52260] New: [4.7 Regression] ICE in clone_tree_hash, at dwarf2out.c:7424
@ 2012-02-15 12:18 doko at gcc dot gnu.org
  2012-02-15 15:23 ` [Bug target/52260] " ams at gcc dot gnu.org
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: doko at gcc dot gnu.org @ 2012-02-15 12:18 UTC (permalink / raw)
  To: gcc-bugs

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

             Bug #: 52260
           Summary: [4.7 Regression] ICE in clone_tree_hash, at
                    dwarf2out.c:7424
    Classification: Unclassified
           Product: gcc
           Version: 4.7.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: target
        AssignedTo: unassigned@gcc.gnu.org
        ReportedBy: doko@gcc.gnu.org


Created attachment 26663
  --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=26663
preprocessed source

seen with 20120214 r184236 in stage1 building the debug libstdc++, last
successful build was 20120210 on arm-linux-gnueabi, configured with:

         --enable-libstdcxx-debug
         --enable-libstdcxx-time=yes
         --with-arch=armv7-a
         --with-float=hard
         --with-fpu=vfpv3-d16
         --with-mode=thumb

omitting -gdwarf-4 avoids the ICE.

$ build/gcc/xgcc -Bbuild/gcc/ -c -fno-implicit-templates -std=gnu++11 -gdwarf-4
funcexecpt.ii 
../../../../../../src/libstdc++-v3/src/c++11/functexcept.cc:194:1: internal
compiler error: in clone_tree_hash, at dwarf2out.c:7424
Please submit a full bug report,
with preprocessed source if appropriate.

Breakpoint 1, fancy_abort (file=0x9d63d0 "../../src/gcc/dwarf2out.c",
line=7424,
    function=0x9d9c58 "clone_tree_hash") at ../../src/gcc/diagnostic.c:899
899       internal_error ("in %s, at %s:%d", function, trim_filename (file),
line);
(gdb) bt
#0  fancy_abort (file=0x9d63d0 "../../src/gcc/dwarf2out.c", line=7424, 
    function=0x9d9c58 "clone_tree_hash") at ../../src/gcc/diagnostic.c:899
#1  0x00269f4a in clone_tree_hash (die=0xb1736540, decl_table=0xeabab0)
    at ../../src/gcc/dwarf2out.c:7424
#2  0x0026a04c in copy_decls_walk (unit=0xb1770750, die=0xb161c2a0,
decl_table=0xeabab0)
    at ../../src/gcc/dwarf2out.c:7474
#3  0x0026a142 in copy_decls_walk (unit=0xb1770750, die=0xb3fc42d0,
decl_table=0xeabab0)
    at ../../src/gcc/dwarf2out.c:7522
#4  0x0026a142 in copy_decls_walk (unit=0xb1770750, die=0xb1770750,
decl_table=0xeabab0)
    at ../../src/gcc/dwarf2out.c:7522
#5  0x0026a18e in copy_decls_for_unworthy_types (unit=0xb1770750)
    at ../../src/gcc/dwarf2out.c:7538
#6  0x00284302 in dwarf2out_finish (
    filename=0xd30328
"../../../../../../src/libstdc++-v3/src/c++11/functexcept.cc")
    at ../../src/gcc/dwarf2out.c:22614
#7  0x0048f312 in compile_file () at ../../src/gcc/toplev.c:611
#8  0x0049169a in do_compile () at ../../src/gcc/toplev.c:1938
#9  0x00491822 in toplev_main (argc=20, argv=0xbefff644) at
../../src/gcc/toplev.c:2014
#10 0x001c5e7e in main (argc=20, argv=0xbefff644) at ../../src/gcc/main.c:36


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

* [Bug target/52260] [4.7 Regression] ICE in clone_tree_hash, at dwarf2out.c:7424
  2012-02-15 12:18 [Bug target/52260] New: [4.7 Regression] ICE in clone_tree_hash, at dwarf2out.c:7424 doko at gcc dot gnu.org
@ 2012-02-15 15:23 ` ams at gcc dot gnu.org
  2012-02-15 16:02 ` rguenth at gcc dot gnu.org
                   ` (3 subsequent siblings)
  4 siblings, 0 replies; 6+ messages in thread
From: ams at gcc dot gnu.org @ 2012-02-15 15:23 UTC (permalink / raw)
  To: gcc-bugs

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

Andrew Stubbs <ams at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |ams at gcc dot gnu.org,
                   |                            |jakub at redhat dot com

--- Comment #1 from Andrew Stubbs <ams at gcc dot gnu.org> 2012-02-15 15:23:12 UTC ---
SVN r184223 builds, r184224 does not. This is perhaps unsurprising given that
that's the revision in which Jakub introduced the crashing function:

2012-02-14  Jakub Jelinek  <jakub@redhat.com>

       PR debug/51950
       * dwarf2out.c (clone_tree_hash): New function.
       (copy_decls_walk): Use it instead of clone_tree.


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

* [Bug target/52260] [4.7 Regression] ICE in clone_tree_hash, at dwarf2out.c:7424
  2012-02-15 12:18 [Bug target/52260] New: [4.7 Regression] ICE in clone_tree_hash, at dwarf2out.c:7424 doko at gcc dot gnu.org
  2012-02-15 15:23 ` [Bug target/52260] " ams at gcc dot gnu.org
@ 2012-02-15 16:02 ` rguenth at gcc dot gnu.org
  2012-02-16  8:54 ` jakub at gcc dot gnu.org
                   ` (2 subsequent siblings)
  4 siblings, 0 replies; 6+ messages in thread
From: rguenth at gcc dot gnu.org @ 2012-02-15 16:02 UTC (permalink / raw)
  To: gcc-bugs

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

Richard Guenther <rguenth at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|---                         |4.7.0


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

* [Bug target/52260] [4.7 Regression] ICE in clone_tree_hash, at dwarf2out.c:7424
  2012-02-15 12:18 [Bug target/52260] New: [4.7 Regression] ICE in clone_tree_hash, at dwarf2out.c:7424 doko at gcc dot gnu.org
  2012-02-15 15:23 ` [Bug target/52260] " ams at gcc dot gnu.org
  2012-02-15 16:02 ` rguenth at gcc dot gnu.org
@ 2012-02-16  8:54 ` jakub at gcc dot gnu.org
  2012-02-16  8:59 ` jakub at gcc dot gnu.org
  2012-02-16  9:09 ` jakub at gcc dot gnu.org
  4 siblings, 0 replies; 6+ messages in thread
From: jakub at gcc dot gnu.org @ 2012-02-16  8:54 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #2 from Jakub Jelinek <jakub at gcc dot gnu.org> 2012-02-16 08:47:32 UTC ---
Author: jakub
Date: Thu Feb 16 08:47:24 2012
New Revision: 184303

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=184303
Log:
    PR debug/52260
    * dwarf2out.c (copy_decls_walk): Fill in *slot before traversing
    children with clone_tree_hash, not after it.

    * g++.dg/debug/dwarf2/pr52260.C: New test.

Added:
    trunk/gcc/testsuite/g++.dg/debug/dwarf2/pr52260.C
Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/dwarf2out.c
    trunk/gcc/testsuite/ChangeLog


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

* [Bug target/52260] [4.7 Regression] ICE in clone_tree_hash, at dwarf2out.c:7424
  2012-02-15 12:18 [Bug target/52260] New: [4.7 Regression] ICE in clone_tree_hash, at dwarf2out.c:7424 doko at gcc dot gnu.org
                   ` (2 preceding siblings ...)
  2012-02-16  8:54 ` jakub at gcc dot gnu.org
@ 2012-02-16  8:59 ` jakub at gcc dot gnu.org
  2012-02-16  9:09 ` jakub at gcc dot gnu.org
  4 siblings, 0 replies; 6+ messages in thread
From: jakub at gcc dot gnu.org @ 2012-02-16  8:59 UTC (permalink / raw)
  To: gcc-bugs

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

Jakub Jelinek <jakub at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
                 CC|                            |jakub at gcc dot gnu.org
         Resolution|                            |FIXED

--- Comment #4 from Jakub Jelinek <jakub at gcc dot gnu.org> 2012-02-16 08:51:14 UTC ---
Fixed.


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

* [Bug target/52260] [4.7 Regression] ICE in clone_tree_hash, at dwarf2out.c:7424
  2012-02-15 12:18 [Bug target/52260] New: [4.7 Regression] ICE in clone_tree_hash, at dwarf2out.c:7424 doko at gcc dot gnu.org
                   ` (3 preceding siblings ...)
  2012-02-16  8:59 ` jakub at gcc dot gnu.org
@ 2012-02-16  9:09 ` jakub at gcc dot gnu.org
  4 siblings, 0 replies; 6+ messages in thread
From: jakub at gcc dot gnu.org @ 2012-02-16  9:09 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #3 from Jakub Jelinek <jakub at gcc dot gnu.org> 2012-02-16 08:50:11 UTC ---
Author: jakub
Date: Thu Feb 16 08:50:02 2012
New Revision: 184304

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=184304
Log:
    PR debug/52260
    * dwarf2out.c (copy_decls_walk): Fill in *slot before traversing
    children with clone_tree_hash, not after it.

    * g++.dg/debug/dwarf2/pr52260.C: New test.

Added:
    branches/gcc-4_6-branch/gcc/testsuite/g++.dg/debug/dwarf2/pr52260.C
Modified:
    branches/gcc-4_6-branch/gcc/ChangeLog
    branches/gcc-4_6-branch/gcc/dwarf2out.c
    branches/gcc-4_6-branch/gcc/testsuite/ChangeLog


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

end of thread, other threads:[~2012-02-16  9:03 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-02-15 12:18 [Bug target/52260] New: [4.7 Regression] ICE in clone_tree_hash, at dwarf2out.c:7424 doko at gcc dot gnu.org
2012-02-15 15:23 ` [Bug target/52260] " ams at gcc dot gnu.org
2012-02-15 16:02 ` rguenth at gcc dot gnu.org
2012-02-16  8:54 ` jakub at gcc dot gnu.org
2012-02-16  8:59 ` jakub at gcc dot gnu.org
2012-02-16  9:09 ` jakub 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).