Bug 676894 - Internal compiler error - netcdf-perl package
Summary: Internal compiler error - netcdf-perl package
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora
Classification: Fedora
Component: gcc
Version: rawhide
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Jakub Jelinek
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-02-11 17:47 UTC by Orion Poplawski
Modified: 2011-02-23 12:05 UTC (History)
1 user (show)

Fixed In Version: gcc-4.6.0-0.9.fc15
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2011-02-23 12:05:18 UTC
Type: ---


Attachments (Terms of Use)
Preprocessed output (873.96 KB, application/octet-stream)
2011-02-11 17:47 UTC, Orion Poplawski
no flags Details


Links
System ID Private Priority Status Summary Last Updated
GNU Compiler Collection 47743 0 None None None Never

Description Orion Poplawski 2011-02-11 17:47:45 UTC
Created attachment 478284 [details]
Preprocessed output

Description of problem:

While compiling the netcdf-perl package in rawhide:

gcc -c  -I/usr/include/netcdf -D_REENTRANT -D_GNU_SOURCE -fno-strict-aliasing -pipe -fstack-protector -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic   -DVERSION=\"1.2.4\" -DXS_VERSION=\"1.2.4\" -fPIC "-I/usr/lib64/perl5/CORE"   NetCDF.c
NetCDF.c: In function 'XS_NetCDF_varget':
NetCDF.c:2521:6: internal compiler error: in fold_convert_loc, at fold-const.c:1906

Version-Release number of selected component (if applicable):
4.6.0-0.6.fc15

How reproducible:
Every time

Comment 1 Jakub Jelinek 2011-02-14 22:07:35 UTC
Simplified testcase for -O2:

int
foo (void *x, int y)
{
  long long a = 1, *b;
  double *c;
  if (y)
    {
      b = (long long *) x;
      while (b)
        a *= *b++;
    }
  else
    {
      c = (double *) x;
      while (c)
        a *= *c++;
    }
  return a;
}

Will debug tomorrow.

Comment 2 Jakub Jelinek 2011-02-23 12:05:18 UTC
Fixed in gcc-4.6.0-0.8.fc15 and above.


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