------- Comment #8 from rmansfield at qnx dot com 2009-09-17 02:01 -------
I hit the PR41173 using an updated powerpc-unknown-linux-gnu configuration.
The x86 ICE is still reproducible using a reduced testcase and a mismatch of
optimizations levels.
$ ./xgcc -v
Using built-in specs.
COLLECT_GCC=./xgcc
Target: i686-pc-linux-gnu
Configured with: ../configure --enable-languages=c++ --enable-lto
--disable-bootstrap
Thread model: posix
gcc version 4.5.0 20090914 (experimental) [lto revision 151753] (lto merged
with rev 150842)
$ cat ice.i
typedef long double _Complex _Lcomplex;
_Lcomplex (casinhl)(_Lcomplex x) {
long double re = creall(x);
long double im = cimagl(x);
const short errx = _LDtest(&re);
const short erry = _LDtest(&im);
long double u, v;
if (errx == 2) if (erry == 2 || erry == 0) {
const _Lcomplex w = csqrtl(_LCbuild(1.0L - im, re));
const _Lcomplex z = csqrtl(_LCbuild(1.0L + im, -re));
v = atan2l(im, creall(((w) * (z))));
}
}
$ ./xgcc -B. -O -flto -lto-test ice.i -c
ice.i: In function âcasinhlâ:
ice.i:3:20: warning: incompatible implicit declaration of built-in function
âcreallâ
ice.i:4:20: warning: incompatible implicit declaration of built-in function
âcimaglâ
ice.i:9:25: warning: incompatible implicit declaration of built-in function
âcsqrtlâ
ice.i:11:9: warning: incompatible implicit declaration of built-in function
âatan2lâ
$ ./xgcc -B. -shared -flto ice.o -flto
In file included from ice.i:69:0,
from :5:
ice.i: In function âcasinhlâ:
ice.i:11:32: internal compiler error: in expand_mult, at expmed.c:3253
Please submit a full bug report,
with preprocessed source if appropriate.
See <http://gcc.gnu.org/bugs.html> for instructions.
lto-wrapper: ././xgcc returned 1 exit status
collect2: lto-wrapper returned 1 exit status
Also, has -lto-test (mentioned in the LTO_Driver wiki page) been removed or was
it ever added?
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40409