public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug lto/40409]  New: [LTO] ICE in expand_shift, at expmed.c:2263
@ 2009-06-10 21:26 rmansfield at qnx dot com
  2009-06-10 21:54 ` [Bug lto/40409] " rmansfield at gmail dot com
                   ` (12 more replies)
  0 siblings, 13 replies; 14+ messages in thread
From: rmansfield at qnx dot com @ 2009-06-10 21:26 UTC (permalink / raw)
  To: gcc-bugs

$ ./xgcc -v
Using built-in specs.
COLLECT_GCC=./xgcc
Target: powerpc-unknown-linux-gnu
Configured with: ../configure --target=powerpc-unknown-linux-gnu
--prefix=/home/ryan/cross/powerpc-unknown-linux-gnu/
--with-local-prefix=/home/ryan/cross/powerpc-unknown-linux-gnu/powerpc-unknown-linux-gnu/sys-root
--disable-multilib
--with-sysroot=/home/ryan/cross/powerpc-unknown-linux-gnu/powerpc-unknown-linux-gnu/sys-root
--enable-shared --with-gmp=/home/ryan/cross/powerpc-unknown-linux-gnu
--with-mpfr=/home/ryan/cross/powerpc-unknown-linux-gnu --enable-__cxa_atexit
--disable-nls --enable-symvers=gnu --enable-languages=c
--enable-target-optspace --enable-lto
Thread model: posix
gcc version 4.5.0 20090605 (experimental) (lto merged with rev 148228)

./xgcc -B. -flto -shared acosh.o acosl.o
In file included from /home/ryan/svn/product/trunk/lib/m/inc/xxacos.h:27:0,
                 from /home/ryan/svn/product/trunk/lib/m/inc/xxacos.h:23,
                 from /home/ryan/svn/product/trunk/lib/m/inc/xxacos.h:23,
                 from /home/ryan/svn/product/trunk/lib/m/inc/xxacos.h:23,
                 from /home/ryan/svn/product/trunk/lib/m/inc/xxacos.h:23,
                 from /home/ryan/svn/product/trunk/lib/m/inc/xxacos.h:23,
                 from /home/ryan/svn/product/trunk/lib/m/inc/xxacos.h:23,
                 from /home/ryan/svn/product/trunk/lib/m/inc/xxacos.h:23,
                 from /home/ryan/svn/product/trunk/lib/m/inc/xxacos.h:24,
                 from /home/ryan/svn/product/trunk/lib/m/inc/xxacos.h:24,
                 from /home/ryan/svn/product/trunk/lib/m/inc/xxacos.h:23,
                 from /home/ryan/svn/product/trunk/lib/m/inc/xxacos.h:23,
                 from /home/ryan/svn/product/trunk/lib/m/inc/xxacos.h:22,
                 from /home/ryan/svn/product/trunk/lib/m/inc/xxacos.h:22,
                 from /home/ryan/svn/product/trunk/lib/m/inc/xxacos.h:22,
                 from /home/ryan/svn/product/trunk/lib/m/inc/xxacos.h:20,
                 from /home/ryan/svn/product/trunk/lib/m/inc/xxacos.h:20,
                 from /home/ryan/svn/product/trunk/lib/m/inc/xxacos.h:20,
                 from /home/ryan/svn/product/trunk/lib/m/inc/xxacos.h:20,
                 from /home/ryan/svn/product/trunk/lib/m/inc/xxacos.h:20,
                 from /home/ryan/svn/product/trunk/lib/m/inc/xxacos.h:21,
                 from /home/ryan/svn/product/trunk/lib/m/inc/xxacos.h:21,
                 from /home/ryan/svn/product/trunk/lib/m/inc/xxacos.h:20,
                 from /home/ryan/svn/product/trunk/lib/m/inc/xxacos.h:20,
                 from /home/ryan/svn/product/trunk/lib/m/inc/xxacos.h:19,
                 from /home/ryan/svn/product/trunk/lib/m/inc/xxacos.h:19,
                 from /home/ryan/svn/product/trunk/lib/m/inc/xxacos.h:19,
                 from /home/ryan/svn/product/trunk/lib/m/inc/xxacos.h:16,
                 from /home/ryan/svn/product/trunk/lib/m/inc/xxacos.h:16,
                 from /home/ryan/svn/product/trunk/lib/m/inc/xxacos.h:16,
                 from /home/ryan/svn/product/trunk/lib/m/inc/xxacos.h:15,
                 from /home/ryan/svn/product/trunk/lib/m/inc/xxacos.h:15,
                 from /home/ryan/svn/product/trunk/lib/m/inc/xxacos.h:15,
                 from /home/ryan/svn/product/trunk/lib/m/inc/xxacos.h:13,
                 from /home/ryan/svn/product/trunk/lib/m/inc/xxacos.h:12,
                 from /home/ryan/svn/product/trunk/lib/m/inc/xxacos.h:11,
                 from /home/ryan/svn/product/trunk/lib/c/inc/xmath.h:188,
                 from :16:
/home/ryan/svn/product/trunk/lib/m/inc/xxacos.h: In function 'acosl':
/home/ryan/svn/product/trunk/lib/m/inc/xxacos.h:28:4: internal compiler error:
in expand_shift, at expmed.c:2263
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


-- 
           Summary: [LTO] ICE in expand_shift, at expmed.c:2263
           Product: gcc
           Version: 4.5.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: lto
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: rmansfield at qnx dot com
 GCC build triplet: i686-pc-linux-gnu
  GCC host triplet: i686-pc-linux-gnu
GCC target triplet: powerpc-unknown-linux-gnu


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40409


^ permalink raw reply	[flat|nested] 14+ messages in thread

* [Bug lto/40409] [LTO] ICE in expand_shift, at expmed.c:2263
  2009-06-10 21:26 [Bug lto/40409] New: [LTO] ICE in expand_shift, at expmed.c:2263 rmansfield at qnx dot com
@ 2009-06-10 21:54 ` rmansfield at gmail dot com
  2009-06-11  2:58 ` rmansfield at qnx dot com
                   ` (11 subsequent siblings)
  12 siblings, 0 replies; 14+ messages in thread
From: rmansfield at gmail dot com @ 2009-06-10 21:54 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #1 from rmansfield at gmail dot com  2009-06-10 21:53 -------
Created an attachment (id=17977)
 --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=17977&action=view)
testcase


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40409


^ permalink raw reply	[flat|nested] 14+ messages in thread

* [Bug lto/40409] [LTO] ICE in expand_shift, at expmed.c:2263
  2009-06-10 21:26 [Bug lto/40409] New: [LTO] ICE in expand_shift, at expmed.c:2263 rmansfield at qnx dot com
  2009-06-10 21:54 ` [Bug lto/40409] " rmansfield at gmail dot com
@ 2009-06-11  2:58 ` rmansfield at qnx dot com
  2009-06-11  3:01 ` rmansfield at qnx dot com
                   ` (10 subsequent siblings)
  12 siblings, 0 replies; 14+ messages in thread
From: rmansfield at qnx dot com @ 2009-06-11  2:58 UTC (permalink / raw)
  To: gcc-bugs

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 7723 bytes --]



------- Comment #2 from rmansfield at qnx dot com  2009-06-11 02:58 -------
I reproduced this on a i686-pc-linux-gnu target:

$ ./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 20090605 (experimental) (lto merged with rev 148228)
ryan@ryan:~/gcc/lto/x86-build/gcc$ ./xgcc -B. -shared -flto casinhl.o
In file included from /home/ryan/svn/product/trunk/lib/m/inc/xxcasinh.h:117:0,
                 from /home/ryan/svn/product/trunk/lib/m/inc/xxcasinh.h:117,
                 from /home/ryan/svn/product/trunk/lib/m/inc/xxcasinh.h:115,
                 from /home/ryan/svn/product/trunk/lib/m/inc/xxcasinh.h:115,
                 from /home/ryan/svn/product/trunk/lib/m/inc/xxcasinh.h:114,
                 from /home/ryan/svn/product/trunk/lib/m/inc/xxcasinh.h:114,
                 from /home/ryan/svn/product/trunk/lib/m/inc/xxcasinh.h:112,
                 from /home/ryan/svn/product/trunk/lib/m/inc/xxcasinh.h:111,
                 from /home/ryan/svn/product/trunk/lib/m/inc/xxcasinh.h:108,
                 from /home/ryan/svn/product/trunk/lib/m/inc/xxcasinh.h:108,
                 from /home/ryan/svn/product/trunk/lib/m/inc/xxcasinh.h:108,
                 from /home/ryan/svn/product/trunk/lib/m/inc/xxcasinh.h:103,
                 from /home/ryan/svn/product/trunk/lib/m/inc/xxcasinh.h:103,
                 from /home/ryan/svn/product/trunk/lib/m/inc/xxcasinh.h:103,
                 from /home/ryan/svn/product/trunk/lib/m/inc/xxcasinh.h:102,
                 from /home/ryan/svn/product/trunk/lib/m/inc/xxcasinh.h:100,
                 from /home/ryan/svn/product/trunk/lib/m/inc/xxcasinh.h:100,
                 from /home/ryan/svn/product/trunk/lib/m/inc/xxcasinh.h:98,
                 from /home/ryan/svn/product/trunk/lib/m/inc/xxcasinh.h:98,
                 from /home/ryan/svn/product/trunk/lib/m/inc/xxcasinh.h:98,
                 from /home/ryan/svn/product/trunk/lib/m/inc/xxcasinh.h:95,
                 from /home/ryan/svn/product/trunk/lib/m/inc/xxcasinh.h:95,
                 from /home/ryan/svn/product/trunk/lib/m/inc/xxcasinh.h:93,
                 from /home/ryan/svn/product/trunk/lib/m/inc/xxcasinh.h:93,
                 from /home/ryan/svn/product/trunk/lib/m/inc/xxcasinh.h:93,
                 from /home/ryan/svn/product/trunk/lib/m/inc/xxcasinh.h:90,
                 from /home/ryan/svn/product/trunk/lib/m/inc/xxcasinh.h:90,
                 from /home/ryan/svn/product/trunk/lib/m/inc/xxcasinh.h:87,
                 from /home/ryan/svn/product/trunk/lib/m/inc/xxcasinh.h:86,
                 from /home/ryan/svn/product/trunk/lib/m/inc/xxcasinh.h:85,
                 from /home/ryan/svn/product/trunk/lib/m/inc/xxcasinh.h:84,
                 from /home/ryan/svn/product/trunk/lib/m/inc/xxcasinh.h:81,
                 from /home/ryan/svn/product/trunk/lib/m/inc/xxcasinh.h:80,
                 from /home/ryan/svn/product/trunk/lib/m/inc/xxcasinh.h:80,
                 from /home/ryan/svn/product/trunk/lib/m/inc/xxcasinh.h:78,
                 from /home/ryan/svn/product/trunk/lib/m/inc/xxcasinh.h:78,
                 from /home/ryan/svn/product/trunk/lib/m/inc/xxcasinh.h:78,
                 from /home/ryan/svn/product/trunk/lib/m/inc/xxcasinh.h:78,
                 from /home/ryan/svn/product/trunk/lib/m/inc/xxcasinh.h:78,
                 from /home/ryan/svn/product/trunk/lib/m/inc/xxcasinh.h:78,
                 from /home/ryan/svn/product/trunk/lib/m/inc/xxcasinh.h:77,
                 from /home/ryan/svn/product/trunk/lib/m/inc/xxcasinh.h:77,
                 from /home/ryan/svn/product/trunk/lib/m/inc/xxcasinh.h:77,
                 from /home/ryan/svn/product/trunk/lib/m/inc/xxcasinh.h:77,
                 from /home/ryan/svn/product/trunk/lib/m/inc/xxcasinh.h:77,
                 from /home/ryan/svn/product/trunk/lib/m/inc/xxcasinh.h:73,
                 from /home/ryan/svn/product/trunk/lib/m/inc/xxcasinh.h:73,
                 from /home/ryan/svn/product/trunk/lib/m/inc/xxcasinh.h:73,
                 from /home/ryan/svn/product/trunk/lib/m/inc/xxcasinh.h:72,
                 from /home/ryan/svn/product/trunk/lib/m/inc/xxcasinh.h:70,
                 from /home/ryan/svn/product/trunk/lib/m/inc/xxcasinh.h:68,
                 from /home/ryan/svn/product/trunk/lib/m/inc/xxcasinh.h:68,
                 from /home/ryan/svn/product/trunk/lib/m/inc/xxcasinh.h:68,
                 from /home/ryan/svn/product/trunk/lib/m/inc/xxcasinh.h:68,
                 from /home/ryan/svn/product/trunk/lib/m/inc/xxcasinh.h:68,
                 from /home/ryan/svn/product/trunk/lib/m/inc/xxcasinh.h:68,
                 from /home/ryan/svn/product/trunk/lib/m/inc/xxcasinh.h:68,
                 from /home/ryan/svn/product/trunk/lib/m/inc/xxcasinh.h:67,
                 from /home/ryan/svn/product/trunk/lib/m/inc/xxcasinh.h:63,
                 from /home/ryan/svn/product/trunk/lib/m/inc/xxcasinh.h:63,
                 from /home/ryan/svn/product/trunk/lib/m/inc/xxcasinh.h:63,
                 from /home/ryan/svn/product/trunk/lib/m/inc/xxcasinh.h:62,
                 from /home/ryan/svn/product/trunk/lib/m/inc/xxcasinh.h:60,
                 from /home/ryan/svn/product/trunk/lib/m/inc/xxcasinh.h:59,
                 from /home/ryan/svn/product/trunk/lib/m/inc/xxcasinh.h:57,
                 from /home/ryan/svn/product/trunk/lib/m/inc/xxcasinh.h:56,
                 from /home/ryan/svn/product/trunk/lib/m/inc/xxcasinh.h:52,
                 from /home/ryan/svn/product/trunk/lib/m/inc/xxcasinh.h:51,
                 from /home/ryan/svn/product/trunk/lib/m/inc/xxcasinh.h:49,
                 from /home/ryan/svn/product/trunk/lib/m/inc/xxcasinh.h:48,
                 from /home/ryan/svn/product/trunk/lib/m/inc/xxcasinh.h:46,
                 from /home/ryan/svn/product/trunk/lib/m/inc/xxcasinh.h:45,
                 from /home/ryan/svn/product/trunk/lib/m/inc/xxcasinh.h:41,
                 from /home/ryan/svn/product/trunk/lib/m/inc/xxcasinh.h:40,
                 from /home/ryan/svn/product/trunk/lib/m/inc/xxcasinh.h:38,
                 from /home/ryan/svn/product/trunk/lib/m/inc/xxcasinh.h:36,
                 from /home/ryan/svn/product/trunk/lib/m/inc/xxcasinh.h:35,
                 from /home/ryan/svn/product/trunk/lib/m/inc/xxcasinh.h:33,
                 from /home/ryan/svn/product/trunk/lib/m/inc/xxcasinh.h:33,
                 from /home/ryan/svn/product/trunk/lib/m/inc/xxcasinh.h:32,
                 from /home/ryan/svn/product/trunk/lib/m/inc/xxcasinh.h:29,
                 from /home/ryan/svn/product/trunk/lib/m/inc/xxcasinh.h:28,
                 from /home/ryan/svn/product/trunk/lib/m/inc/xxcasinh.h:27,
                 from /home/ryan/svn/product/trunk/lib/m/inc/xxcasinh.h:27,
                 from /home/ryan/svn/product/trunk/lib/m/inc/xxcasinh.h:26,
                 from /home/ryan/svn/product/trunk/lib/m/inc/xxcasinh.h:26,
                 from :17:
/home/ryan/svn/product/trunk/lib/m/inc/xxcasinh.h: In function âcasinhlâ:
/home/ryan/svn/product/trunk/lib/m/inc/xxcasinh.h:120:1: internal compiler
error: in expand_mult, at expmed.c:3242
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


-- 

rmansfield at qnx dot com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
            Version|4.5.0                       |lto


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40409


^ permalink raw reply	[flat|nested] 14+ messages in thread

* [Bug lto/40409] [LTO] ICE in expand_shift, at expmed.c:2263
  2009-06-10 21:26 [Bug lto/40409] New: [LTO] ICE in expand_shift, at expmed.c:2263 rmansfield at qnx dot com
  2009-06-10 21:54 ` [Bug lto/40409] " rmansfield at gmail dot com
  2009-06-11  2:58 ` rmansfield at qnx dot com
@ 2009-06-11  3:01 ` rmansfield at qnx dot com
  2009-07-09  5:40 ` bje at gcc dot gnu dot org
                   ` (9 subsequent siblings)
  12 siblings, 0 replies; 14+ messages in thread
From: rmansfield at qnx dot com @ 2009-06-11  3:01 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #3 from rmansfield at qnx dot com  2009-06-11 03:01 -------
Created an attachment (id=17979)
 --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=17979&action=view)
x86 testcase


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40409


^ permalink raw reply	[flat|nested] 14+ messages in thread

* [Bug lto/40409] [LTO] ICE in expand_shift, at expmed.c:2263
  2009-06-10 21:26 [Bug lto/40409] New: [LTO] ICE in expand_shift, at expmed.c:2263 rmansfield at qnx dot com
                   ` (2 preceding siblings ...)
  2009-06-11  3:01 ` rmansfield at qnx dot com
@ 2009-07-09  5:40 ` bje at gcc dot gnu dot org
  2009-09-16 13:29 ` rguenth at gcc dot gnu dot org
                   ` (8 subsequent siblings)
  12 siblings, 0 replies; 14+ messages in thread
From: bje at gcc dot gnu dot org @ 2009-07-09  5:40 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #4 from bje at gcc dot gnu dot org  2009-07-09 05:39 -------
The original ICE has now been replaced with:

$ ./xgcc -B. -flto -shared acosh.o acosl.o
lto1: internal compiler error: in lto_read_file_options, at lto-opts.c:348
Please submit a full bug report,
with preprocessed source if appropriate.
See <http://gcc.gnu.org/bugs.html> for instructions.

(lto revision 149400)


-- 

bje at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
     Ever Confirmed|0                           |1
   Last reconfirmed|0000-00-00 00:00:00         |2009-07-09 05:39:56
               date|                            |


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40409


^ permalink raw reply	[flat|nested] 14+ messages in thread

* [Bug lto/40409] [LTO] ICE in expand_shift, at expmed.c:2263
  2009-06-10 21:26 [Bug lto/40409] New: [LTO] ICE in expand_shift, at expmed.c:2263 rmansfield at qnx dot com
                   ` (3 preceding siblings ...)
  2009-07-09  5:40 ` bje at gcc dot gnu dot org
@ 2009-09-16 13:29 ` rguenth at gcc dot gnu dot org
  2009-09-16 13:59 ` rmansfield at qnx dot com
                   ` (7 subsequent siblings)
  12 siblings, 0 replies; 14+ messages in thread
From: rguenth at gcc dot gnu dot org @ 2009-09-16 13:29 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #5 from rguenth at gcc dot gnu dot org  2009-09-16 13:29 -------
Object files are not useful anymore.  Please provide sources.


-- 

rguenth at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |WAITING


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40409


^ permalink raw reply	[flat|nested] 14+ messages in thread

* [Bug lto/40409] [LTO] ICE in expand_shift, at expmed.c:2263
  2009-06-10 21:26 [Bug lto/40409] New: [LTO] ICE in expand_shift, at expmed.c:2263 rmansfield at qnx dot com
                   ` (4 preceding siblings ...)
  2009-09-16 13:29 ` rguenth at gcc dot gnu dot org
@ 2009-09-16 13:59 ` rmansfield at qnx dot com
  2009-09-16 14:02 ` rmansfield at qnx dot com
                   ` (6 subsequent siblings)
  12 siblings, 0 replies; 14+ messages in thread
From: rmansfield at qnx dot com @ 2009-09-16 13:59 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #6 from rmansfield at qnx dot com  2009-09-16 13:59 -------
I now hit PR41173 when I try to reproduce this problem.


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40409


^ permalink raw reply	[flat|nested] 14+ messages in thread

* [Bug lto/40409] [LTO] ICE in expand_shift, at expmed.c:2263
  2009-06-10 21:26 [Bug lto/40409] New: [LTO] ICE in expand_shift, at expmed.c:2263 rmansfield at qnx dot com
                   ` (5 preceding siblings ...)
  2009-09-16 13:59 ` rmansfield at qnx dot com
@ 2009-09-16 14:02 ` rmansfield at qnx dot com
  2009-09-17  2:01 ` rmansfield at qnx dot com
                   ` (5 subsequent siblings)
  12 siblings, 0 replies; 14+ messages in thread
From: rmansfield at qnx dot com @ 2009-09-16 14:02 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #7 from rmansfield at qnx dot com  2009-09-16 14:02 -------
I can reproduce the x86 ICE with gcc version 4.5.0 20090902 (experimental) [lto
revision 151401] (lto merged with rev 150842).  I will try again with the
latest and reduce a source testcase.


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40409


^ permalink raw reply	[flat|nested] 14+ messages in thread

* [Bug lto/40409] [LTO] ICE in expand_shift, at expmed.c:2263
  2009-06-10 21:26 [Bug lto/40409] New: [LTO] ICE in expand_shift, at expmed.c:2263 rmansfield at qnx dot com
                   ` (6 preceding siblings ...)
  2009-09-16 14:02 ` rmansfield at qnx dot com
@ 2009-09-17  2:01 ` rmansfield at qnx dot com
  2009-09-17  9:44 ` rguenth at gcc dot gnu dot org
                   ` (4 subsequent siblings)
  12 siblings, 0 replies; 14+ messages in thread
From: rmansfield at qnx dot com @ 2009-09-17  2:01 UTC (permalink / raw)
  To: gcc-bugs

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 1983 bytes --]



------- 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


^ permalink raw reply	[flat|nested] 14+ messages in thread

* [Bug lto/40409] [LTO] ICE in expand_shift, at expmed.c:2263
  2009-06-10 21:26 [Bug lto/40409] New: [LTO] ICE in expand_shift, at expmed.c:2263 rmansfield at qnx dot com
                   ` (7 preceding siblings ...)
  2009-09-17  2:01 ` rmansfield at qnx dot com
@ 2009-09-17  9:44 ` rguenth at gcc dot gnu dot org
  2009-09-28 18:57 ` rmansfield at qnx dot com
                   ` (3 subsequent siblings)
  12 siblings, 0 replies; 14+ messages in thread
From: rguenth at gcc dot gnu dot org @ 2009-09-17  9:44 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #9 from rguenth at gcc dot gnu dot org  2009-09-17 09:44 -------
I don't remember -lto-test, so it was probably never there.

Ok, so this bug is again of the sort "run cc1 with optimization, lto1 without".
We'll have to think about a solution here, fixing up all the issues that arise
will be hard, so likely we'll just force optimization level to 1 from zero if
optimization was on during cc1.


-- 

rguenth at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|WAITING                     |NEW
 GCC target triplet|powerpc-unknown-linux-gnu   |powerpc-unknown-linux-gnu,
                   |                            |i?86-*-*
   Last reconfirmed|2009-07-09 05:39:56         |2009-09-17 09:44:37
               date|                            |


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40409


^ permalink raw reply	[flat|nested] 14+ messages in thread

* [Bug lto/40409] [LTO] ICE in expand_shift, at expmed.c:2263
  2009-06-10 21:26 [Bug lto/40409] New: [LTO] ICE in expand_shift, at expmed.c:2263 rmansfield at qnx dot com
                   ` (8 preceding siblings ...)
  2009-09-17  9:44 ` rguenth at gcc dot gnu dot org
@ 2009-09-28 18:57 ` rmansfield at qnx dot com
  2009-10-14 19:49 ` rguenth at gcc dot gnu dot org
                   ` (2 subsequent siblings)
  12 siblings, 0 replies; 14+ messages in thread
From: rmansfield at qnx dot com @ 2009-09-28 18:57 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #10 from rmansfield at qnx dot com  2009-09-28 18:57 -------
Still happens with gcc version 4.5.0 20090928 (experimental) [lto revision
152240] (lto merged with rev 150842)


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40409


^ permalink raw reply	[flat|nested] 14+ messages in thread

* [Bug lto/40409] [LTO] ICE in expand_shift, at expmed.c:2263
  2009-06-10 21:26 [Bug lto/40409] New: [LTO] ICE in expand_shift, at expmed.c:2263 rmansfield at qnx dot com
                   ` (9 preceding siblings ...)
  2009-09-28 18:57 ` rmansfield at qnx dot com
@ 2009-10-14 19:49 ` rguenth at gcc dot gnu dot org
  2009-12-11 16:40 ` [Bug lto/40409] [LTO] ICE in expand_shift, at expmed.c:2263, -O0 vs -Ox misses tree lowering phases rguenth at gcc dot gnu dot org
  2010-01-10 21:38 ` rguenth at gcc dot gnu dot org
  12 siblings, 0 replies; 14+ messages in thread
From: rguenth at gcc dot gnu dot org @ 2009-10-14 19:49 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #11 from rguenth at gcc dot gnu dot org  2009-10-14 19:49 -------
PR41173 should be fixed - can you provide preprocessed source to trigger the
original failure now?


-- 

rguenth at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |WAITING


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40409


^ permalink raw reply	[flat|nested] 14+ messages in thread

* [Bug lto/40409] [LTO] ICE in expand_shift, at expmed.c:2263, -O0 vs -Ox misses tree lowering phases
  2009-06-10 21:26 [Bug lto/40409] New: [LTO] ICE in expand_shift, at expmed.c:2263 rmansfield at qnx dot com
                   ` (10 preceding siblings ...)
  2009-10-14 19:49 ` rguenth at gcc dot gnu dot org
@ 2009-12-11 16:40 ` rguenth at gcc dot gnu dot org
  2010-01-10 21:38 ` rguenth at gcc dot gnu dot org
  12 siblings, 0 replies; 14+ messages in thread
From: rguenth at gcc dot gnu dot org @ 2009-12-11 16:40 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #12 from rguenth at gcc dot gnu dot org  2009-12-11 16:40 -------
I can confirm the ICE from comment #8 still is present on i?86-linux.

#1  0x0820c740 in expand_mult (mode=XCmode, op0=0x0, op1=0xb77d3ba0, 
    target=0xb77d3b7c, unsignedp=0)
    at /home/richard/src/trunk/gcc/expmed.c:3253
3253      gcc_assert (op0);

which is because expand_binop seems to fail.

3246      /* This used to use umul_optab if unsigned, but for non-widening
multiply
3247         there is no difference between signed and unsigned.  */
(gdb) l
3248      op0 = expand_binop (mode,
3249                          ! unsignedp
3250                          && flag_trapv && (GET_MODE_CLASS(mode) ==
MODE_INT)
3251                          ? smulv_optab : smul_optab,
3252                          op0, op1, target, unsignedp, OPTAB_LIB_WIDEN);
3253      gcc_assert (op0);

expand_binop (mode=XCmode, binoptab=0x8c72de0, op0=0xb77d3b88, op1=0xb77d3ba0, 
    target=0xb77d3b7c, unsignedp=0, methods=OPTAB_LIB_WIDEN)
    at /home/richard/src/trunk/gcc/optabs.c:1552
(gdb) call debug_rtx (op0)
(mem/s/c:XC (plus:SI (reg/f:SI 54 virtual-stack-vars)
        (const_int -32 [0xffffffe0])) [0 w+0 S24 A32])
(gdb) call debug_rtx (op1)
(mem/s/c:XC (plus:SI (reg/f:SI 54 virtual-stack-vars)
        (const_int -64 [0xffffffc0])) [0 z+0 S24 A32])
(gdb) call debug_rtx (target)
(concat:XC (reg:XF 80 [ D.2040 ])
    (reg:XF 81 [ D.2040+12 ]))

the optab expansion fails because there is no optab_libfunc for
smul_optab and XCmode or TCmode.


We arrive here because at -O1 we lower complex operations after writing
LTO IL and at -O0 we do so before.  So if you combine that we never
lower complex operations properly.


-- 

rguenth at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|WAITING                     |NEW
   Last reconfirmed|2009-09-17 09:44:37         |2009-12-11 16:40:07
               date|                            |
            Summary|[LTO] ICE in expand_shift,  |[LTO] ICE in expand_shift,
                   |at expmed.c:2263            |at expmed.c:2263, -O0 vs -Ox
                   |                            |misses tree lowering phases


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40409


^ permalink raw reply	[flat|nested] 14+ messages in thread

* [Bug lto/40409] [LTO] ICE in expand_shift, at expmed.c:2263, -O0 vs -Ox misses tree lowering phases
  2009-06-10 21:26 [Bug lto/40409] New: [LTO] ICE in expand_shift, at expmed.c:2263 rmansfield at qnx dot com
                   ` (11 preceding siblings ...)
  2009-12-11 16:40 ` [Bug lto/40409] [LTO] ICE in expand_shift, at expmed.c:2263, -O0 vs -Ox misses tree lowering phases rguenth at gcc dot gnu dot org
@ 2010-01-10 21:38 ` rguenth at gcc dot gnu dot org
  12 siblings, 0 replies; 14+ messages in thread
From: rguenth at gcc dot gnu dot org @ 2010-01-10 21:38 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #13 from rguenth at gcc dot gnu dot org  2010-01-10 21:38 -------
PR42678 has a not so confused audit trail but is about the same (remaining)
issue.

*** This bug has been marked as a duplicate of 42678 ***


-- 

rguenth at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |DUPLICATE


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40409


^ permalink raw reply	[flat|nested] 14+ messages in thread

end of thread, other threads:[~2010-01-10 21:38 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-06-10 21:26 [Bug lto/40409] New: [LTO] ICE in expand_shift, at expmed.c:2263 rmansfield at qnx dot com
2009-06-10 21:54 ` [Bug lto/40409] " rmansfield at gmail dot com
2009-06-11  2:58 ` rmansfield at qnx dot com
2009-06-11  3:01 ` rmansfield at qnx dot com
2009-07-09  5:40 ` bje at gcc dot gnu dot org
2009-09-16 13:29 ` rguenth at gcc dot gnu dot org
2009-09-16 13:59 ` rmansfield at qnx dot com
2009-09-16 14:02 ` rmansfield at qnx dot com
2009-09-17  2:01 ` rmansfield at qnx dot com
2009-09-17  9:44 ` rguenth at gcc dot gnu dot org
2009-09-28 18:57 ` rmansfield at qnx dot com
2009-10-14 19:49 ` rguenth at gcc dot gnu dot org
2009-12-11 16:40 ` [Bug lto/40409] [LTO] ICE in expand_shift, at expmed.c:2263, -O0 vs -Ox misses tree lowering phases rguenth at gcc dot gnu dot org
2010-01-10 21:38 ` rguenth at gcc dot gnu dot org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).