Hide Forgot
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
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.
Fixed in gcc-4.6.0-0.8.fc15 and above.