From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 6129 invoked by alias); 17 Sep 2009 02:01:51 -0000 Received: (qmail 1262 invoked by uid 48); 17 Sep 2009 02:01:29 -0000 Date: Thu, 17 Sep 2009 02:01:00 -0000 Message-ID: <20090917020129.1260.qmail@sourceware.org> X-Bugzilla-Reason: CC References: Subject: [Bug lto/40409] [LTO] ICE in expand_shift, at expmed.c:2263 In-Reply-To: Reply-To: gcc-bugzilla@gcc.gnu.org To: gcc-bugs@gcc.gnu.org From: "rmansfield at qnx dot com" Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org X-SW-Source: 2009-09/txt/msg01503.txt.bz2 ------- 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 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