Bug 174061 - gcc internal error
gcc internal error
Product: Fedora
Classification: Fedora
Component: gcc (Show other bugs)
i386 Linux
medium Severity medium
: ---
: ---
Assigned To: Jakub Jelinek
Depends On:
  Show dependency treegraph
Reported: 2005-11-24 02:23 EST by Frank Cusack
Modified: 2007-11-30 17:11 EST (History)
0 users

See Also:
Fixed In Version: 4.0.1-4.fc4
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2005-11-29 05:04:19 EST
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)
preprocessor output (6.67 KB, application/octet-stream)
2005-11-24 02:45 EST, Frank Cusack
no flags Details

  None (edit)
Description Frank Cusack 2005-11-24 02:23:24 EST
From Bugzilla Helper:
User-Agent: Opera/8.5 (Macintosh; PPC Mac OS X; U; en)

Description of problem:
$ gcc -g -O2 -c -DSHOWBUG  bug.c
bug.c: In function `bug':
bug.c:18: error: unrecognizable insn:
(insn:HI 15 14 17 0 bug.c:16 (set (reg/f:SI 64)
        (const:SI (plus:SI (symbol_ref:SI ("foo") [flags 0x22] <var_decl 0xb7e4f1b0 foo>)
                (const_int 4 [0x4])))) -1 (nil)
bug.c:18: internal compiler error: in extract_insn, at recog.c:2083
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://bugzilla.redhat.com/bugzilla> for instructions.
The bug is not reproducible, so it is likely a hardware or OS problem.

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

How reproducible:

Steps to Reproduce:
1. requires -O2
2. requires __thread variable
3. requires builtin memcpy() (using -fno-builtin avoids the bug)
4. requires 2 memcpy() statements

Actual Results:  gcc failed

Expected Results:  gcc should have succeeded

Additional info:

#include <string.h>     /* memcpy() */

#ifdef SHOWBUG
int foo[2];

  int bar;

  (void) memcpy(&foo[0], &bar, sizeof(bar));
#ifdef SHOWBUG
  (void) memcpy(&foo[1], &bar, sizeof(bar));
Comment 1 Frank Cusack 2005-11-24 02:45:08 EST
Created attachment 121436 [details]
preprocessor output
Comment 2 Frank Cusack 2005-11-28 23:43:49 EST
There's a second bug here:

> The bug is not reproducible, so it is likely a hardware or OS problem.

The bug is quite reproducible.  Message-ID <438BA8FF.9080600@specifix.com>
on the gcc list says this is probably a bug in a RH patch.
Comment 3 Jakub Jelinek 2005-11-29 05:04:19 EST
As pointed out on gcc ml by Jim Wilson, you should file the PR in upstream
database.  Regarding the second problem, I can't reproduce it, for me it always
prints that the bug is reproducable on gcc 3.4.x.  The ICE is fixed in gcc 4.0.x.

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