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

            Bug ID: 61094
           Summary: -O3 insn Internal compiler error in
                    copyprop_hardreg_forward_1, at regcprop.c:775
           Product: gcc
           Version: 4.9.0
            Status: UNCONFIRMED
          Severity: major
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: prsodk at gmail dot com

Created attachment 32753
  --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=32753&action=edit
-O3 ins Internal compiler error in copyprop_hardreg_forward_1, at
regcprop.c:775

Compiled with g++ 4.9.0 on Archlinux

make[2]: Entering directory '/home/user/projects/gmic/src'
g++ -o gmic gmic.cpp -Dgmic_build -I/usr/include -Wall -W -Dgmic_is_beta=1
-Dcimg_use_vt100 -Dgmic_check_image -Dgmic_is_parallel -Dcimg_display=1
-Dcimg_appname=\"gmic\" -I/usr/X11R6/include  -Dcimg_use_png -Dcimg_use_jpeg
-Dcimg_use_tiff -Dcimg_use_zlib -Dcimg_use_openexr -I/usr/include/OpenEXR
-Dcimg_use_fftw3  -O3 -fno-ipa-sra -mtune=generic  -Dgmic_float_only
-Dgmic_main -L/usr/lib -lm -lpthread -L/usr/X11R6/lib -lX11 -lpthread  -lpng
-lz -ljpeg -ltiff -lz -lIlmImf -lHalf -lfftw3 -lfftw3_threads 
In file included from gmic.h:70:0,
                 from gmic.cpp:1762:
./CImg.h: In member function ‘cimg_library::CImg<typename
cimg_library::CImg<T>::ucharT> cimg_library::CImg<T>::__get_select(const
cimg_library::CImgDisplay&, int, int, int, int) const [with T = float; typename
cimg_library::CImg<T>::ucharT = unsigned char]’:
./CImg.h:35001:5: error: insn does not satisfy its constraints:
     }
     ^
(insn 3134 2970 1739 248 (set (reg:DI 21 xmm0)
        (reg:DI 0 ax)) ./CImg.h:22643 89 {*movdi_internal}
     (nil))
./CImg.h:35001:5: internal compiler error: in copyprop_hardreg_forward_1, at
regcprop.c:775

Compiles ok with earlier versions of g++
Compiles ok with -O2

gmic.ii.gz attached 
Full source at:
git clone http://git.code.sf.net/p/gmic/source gmic

Reply via email to