[PR32610] gcc-4.2: internal compiler error: in gen_tagged_type_instantiation_die, at dwarf2out.c:12762

Bug #121911 reported by Peter Cordes
2
Affects Status Importance Assigned to Milestone
gcc
Fix Released
Medium
gcc-4.2 (Ubuntu)
Fix Released
Medium
Matthias Klose

Bug Description

Binary package hint: gcc-4.2

I have a gutsy chroot on my amd64 feisty system.

gcc-4.2 (and gcc-snapshot) both fail to compile one of my source files when -g and -O3 are both used. The code that it chokes on is very small. It's not preprocessed because it doesn't #include anything. I'll attach the file to this bug report.

gcc-4.2 -Wall -O3 -g -s mycompute_ml-gccbug.c
mycompute_ml-gccbug.c: In function 'matmat':
mycompute_ml-gccbug.c:23: internal compiler error: in gen_tagged_type_instantiation_die, at dwarf2out.c:12762
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://gcc.gnu.org/bugs.html> for instructions.
For Debian GNU/Linux specific bug reporting instructions,
see <URL:file:///usr/share/doc/gcc-4.1/README.Bugs>.

 BTW, note that gcc-4.2's error messages say to read .../gcc-4.1/... That's not my typo.

-- System Information:
Debian Release: lenny/sid
  APT prefers gutsy-updates
  APT policy: (500, 'gutsy-updates'), (500, 'gutsy-security'), (500, 'gutsy-proposed'), (500, 'gutsy')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.20-16-generic (SMP w/2 CPU cores)
Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968)
Shell: /bin/sh linked to /bin/dash

Versions of packages gcc-4.2 depends on:
ii binutils 2.17.20070426cvs-7ubuntu2 The GNU assembler, linker and bina
ii cpp-4.2 4.2-20070609-1ubuntu1 The GNU C preprocessor
ii gcc-4.2-base 4.2-20070609-1ubuntu1 The GNU Compiler Collection (base
ii libc6 2.5-11ubuntu1 GNU C Library: Shared libraries
ii libgcc1 1:4.2-20070609-1ubuntu1 GCC support library
ii libgomp1 4.2-20070609-1ubuntu1 GCC OpenMP (GOMP) support library

Versions of packages gcc-4.2 recommends:
ii libc6-dev 2.5-11ubuntu1 GNU C Library: Development Librari
pn libmudflap0-4.2-dev <none> (no description available)

I also tried with gcc-snapshot 20070414-1, and got the same error message.

Gutsy's gcc-4.1 works fine.

Related branches

Revision history for this message
Peter Cordes (peter-cordes) wrote :

BTW, the code is from a phylogenetics program called procov.
rtop() is code to exponentiate a matrix, given it's eigen decomposition (R = V * diag(rr) * V^-1).

 It seems to be inlining into rtop() that's the problem. compiling with -S, there is asm code for matmat() in the output file. Also, commenting out rtop() makes the file compile even with -O3 -g.

Changed in gcc:
status: Unknown → New
Matthias Klose (doko)
Changed in gcc-4.2:
status: New → Confirmed
importance: Undecided → Medium
Changed in gcc:
status: New → Confirmed
Changed in gcc:
status: Confirmed → In Progress
Matthias Klose (doko)
Changed in gcc-4.2:
assignee: nobody → doko
status: Confirmed → In Progress
Changed in gcc:
status: In Progress → Fix Released
Revision history for this message
Matthias Klose (doko) wrote :

gcc-4.2 (4.2.1-4ubuntu1) gutsy; urgency=low

  * Update to SVN 20070825 from the ubuntu/gcc-4_2-branch.
    - Fix PR debug/32610, LP: #121911.
  * Apply proposed patches:
    - Improve debug info for packed arrays with constant bounds
      (PR fortran/22244).
    - Fix ICE in rtl_for_decl_init on const vector initializers
      (PR debug/32914).
    - Fix (neg (lt X 0)) optimization (PR rtl-optimization/33148).
    - Fix libgcc.a(tramp.o) on ppc32.
  * Update the -fdirectives-only backport.
  * gappletviewer-4.2: Include the gcjwebplugin binary. LP: #131114.
  * Update gpc patches and build support (not yet enabled).

 -- Matthias Klose <email address hidden> Mon, 27 Aug 2007 18:09:17 +0200

Changed in gcc-4.2:
status: In Progress → Fix Released
Revision history for this message
Matthias Klose (doko) wrote :

gcc-4.2 (4.2.1-5ubuntu1) gutsy; urgency=low

  * Merge with Debian; remaining changes:
    - Regenerate the control file.

gcc-4.2 (4.2.1-5) unstable; urgency=low

  * Update to SVN 20070902 from the ubuntu/gcc-4_2-branch.
    - Fix PR debug/32610, LP: #121911.
  * Apply proposed patches:
    - Improve debug info for packed arrays with constant bounds
      (PR fortran/22244).
    - Fix libgcc.a(tramp.o) on ppc32.
    - Fix redundant reg/mem stores/moves (PR target/30961).
  * Update the -fdirectives-only backport.
  * Update gpc patches and build support (not yet enabled).
  * Fix gcc-snapshot hppa64 install target.
  * Set the priority of the source package to optional.
  * debian/patches: Remove patches only applied for the trunk.
  * debian/copyright: Adjust package names.
  * Move toplevel upstream changelog into gcc-4.2.
  * debian/copyright: Mention that the sources are currently updated
    to GPLv3/LGPLv3. The copyright file will be updated with the final
    4.2.2 release.

  * gappletviewer-4.2: Include the gcjwebplugin binary. LP: #131114.
  * gcj-4.2: Install gc-analyze.
  * Remove .la files from the biarch libstdc++ debug packages,
    conflict with the 3.4 package. Closes: #440490.
  * Update libjava-armeabi patch from the gcj-eabi-branch.
  * Only remove libgcj8's classmap db if no other libgcj8* library is
    installed.
  * gcj-4.2: Use the ecj1 from the ecj1 package on alpha.

  [Arthur Loiret]
  * Add build support for GDC.

 -- Matthias Klose <email address hidden> Mon, 3 Sep 2007 13:03:57 +0200

Changed in gcc:
importance: Unknown → Medium
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.