Bug 187339 - internal compiler error: in dwarf2out_finish, at dwarf2out.c:14116
Summary: internal compiler error: in dwarf2out_finish, at dwarf2out.c:14116
Alias: None
Product: Fedora
Classification: Fedora
Component: gcc4   
(Show other bugs)
Version: 5
Hardware: i386
OS: Linux
Target Milestone: ---
Assignee: Jakub Jelinek
QA Contact:
: 190955 (view as bug list)
Depends On:
TreeView+ depends on / blocked
Reported: 2006-03-30 08:27 UTC by KISHIMOTO, Makoto
Modified: 2007-11-30 22:11 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2006-04-06 13:37:22 UTC
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

External Trackers
Tracker ID Priority Status Summary Last Updated
GNU Compiler Collection 27058 None None None Never

Description KISHIMOTO, Makoto 2006-03-30 08:27:24 UTC
Description of problem:
An internal compiler error occures in compiling.

Version-Release number of selected component (if applicable):

How reproducible:

Steps to Reproduce:
$ cat foo.c
   if (sizeof(long) == 8) {
      typedef union {
         long i;
         char c[8];
      } comm;
      comm static volatile u;
      u.i = 0x01020304;
      u.i <<= 16, u.i <<= 16;
      u.i |= 0x05060708;
      return u.c[0] == 0x01 && u.c[1] == 0x02;
   return 2;
$ gcc -O0 -g -c foo.c

Actual results:
foo.c:16: internal compiler error: in dwarf2out_finish, at dwarf2out.c:14116
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://bugzilla.redhat.com/bugzilla> for instructions.
Preprocessed source stored into /tmp/cc??????.out file, please attach this to
your bugreport.

Expected results:
Compilation should be finish successful.

Additional info:
By omit "-g" or change "-O0" to "-O1", we can get around this error.

Comment 1 KISHIMOTO, Makoto 2006-03-30 23:19:53 UTC
The code is minimal fragment to reproduce the problem in SpiderMonkey.
http://bonsai.mozilla.org/cvsblame.cgi?file=mozilla/js/src/jscpucfg.c&rev=3.25#255 )
When compile this, with options "-O0 -g -c", cause the error.

Comment 2 Jakub Jelinek 2006-04-06 13:37:22 UTC
Tracking upstream.

Comment 3 Jakub Jelinek 2006-05-09 08:27:59 UTC
*** Bug 190955 has been marked as a duplicate of this bug. ***

Note You need to log in before you can comment on or make changes to this bug.