From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 32263 invoked by alias); 5 Jul 2011 11:48:45 -0000 Received: (qmail 32253 invoked by uid 22791); 5 Jul 2011 11:48:44 -0000 X-SWARE-Spam-Status: No, hits=-2.6 required=5.0 tests=ALL_TRUSTED,AWL,BAYES_00,TW_CX,TW_GC X-Spam-Check-By: sourceware.org Received: from localhost (HELO gcc.gnu.org) (127.0.0.1) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Tue, 05 Jul 2011 11:48:29 +0000 From: "doriankrause at web dot de" To: gcc-bugs@gcc.gnu.org Subject: [Bug middle-end/49640] New: Internal compiler in C99 code (using variable-length arrays) and OpenMP X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: middle-end X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: doriankrause at web dot de X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Changed-Fields: Message-ID: X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Date: Tue, 05 Jul 2011 11:48:00 -0000 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: 2011-07/txt/msg00301.txt.bz2 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D49640 Summary: Internal compiler in C99 code (using variable-length arrays) and OpenMP Product: gcc Version: 4.5.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: middle-end AssignedTo: unassigned@gcc.gnu.org ReportedBy: doriankrause@web.de Hello, the attached code fails to compile with gcc 4.5.0 when enabling OpenMP: [kraused@cub ~]$ gcc -c -std=3Dgnu99 test.c [kraused@cub ~]$ gcc -c -std=3Dgnu99 -fopenmp test.c test.c: In function 'convert_u8_f32.omp_fn.0': test.c:31:9: internal compiler error: in expand_one_var, at cfgexpand.c:953 Please submit a full bug report, with preprocessed source if appropriate. See for instructions. The gcc version is 4.5.0: [kraused@cub ~]$ gcc -v Using built-in specs. COLLECT_GCC=3Dgcc COLLECT_LTO_WRAPPER=3D/share/apps/gcc/4.5.0/gcc_412/libexec/gcc/x86_64-unkn= own-linux-gnu/4.5.0/lto-wrapper Target: x86_64-unknown-linux-gnu Configured with: ./configure --prefix=3D/share/apps/gcc/4.5.0/gcc_412 --with-mpfr=3D/share/apps/mpfr/2.4.2/gcc_412 --with-gmp=3D/share/apps/gmp/5.0.1/gcc_412 --with-mpc=3D/share/apps/mpc/0.8.2/gcc_412 --enable-languages=3Dc,c++,fortr= an Thread model: posix gcc version 4.5.0 (GCC)=20 Btw. the code also fails to compile with the 4.1.2 gcc on my RHEL box: [kraused@icsprec03 ~]$ gcc -c -std=3Dgnu99 -fopenmp convert.c=20 convert.c: In function =E2=80=98convert_u8_s32.omp_fn.0=E2=80=99: convert.c:27: internal compiler error: in make_decl_rtl, at varasm.c:893 Please submit a full bug report, with preprocessed source if appropriate. See for instructions. Preprocessed source stored into /tmp/ccsIbyBy.out file, please attach this = to your bugreport. [kraused@icsprec03 ~]$ gcc -v Using built-in specs. Target: x86_64-redhat-linux Configured with: ../configure --prefix=3D/usr --mandir=3D/usr/share/man --infodir=3D/usr/share/info --enable-shared --enable-threads=3Dposix --enable-checking=3Drelease --with-system-zlib --enable-__cxa_atexit --disable-libunwind-exceptions --enable-libgcj-multifile --enable-languages=3Dc,c++,objc,obj-c++,java,fortran,ada --enable-java-awt= =3Dgtk --disable-dssi --disable-plugin --with-java-home=3D/usr/lib/jvm/java-1.4.2-gcj-1.4.2.0/jre --with-cpu=3Dgen= eric --host=3Dx86_64-redhat-linux Thread model: posix gcc version 4.1.2 20080704 (Red Hat 4.1.2-50) Unfortunately I don't have a newer gcc available right now for testing.