public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug middle-end/49640] New: Internal compiler in C99 code (using variable-length arrays) and OpenMP
@ 2011-07-05 11:48 doriankrause at web dot de
  2011-07-05 11:49 ` [Bug middle-end/49640] " doriankrause at web dot de
                   ` (7 more replies)
  0 siblings, 8 replies; 9+ messages in thread
From: doriankrause at web dot de @ 2011-07-05 11:48 UTC (permalink / raw)
  To: gcc-bugs

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

           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=gnu99 test.c
[kraused@cub ~]$ gcc -c -std=gnu99 -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 <http://gcc.gnu.org/bugs.html> for instructions.

The gcc version is 4.5.0:

[kraused@cub ~]$ gcc -v
Using built-in specs.
COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=/share/apps/gcc/4.5.0/gcc_412/libexec/gcc/x86_64-unknown-linux-gnu/4.5.0/lto-wrapper
Target: x86_64-unknown-linux-gnu
Configured with: ./configure --prefix=/share/apps/gcc/4.5.0/gcc_412
--with-mpfr=/share/apps/mpfr/2.4.2/gcc_412
--with-gmp=/share/apps/gmp/5.0.1/gcc_412
--with-mpc=/share/apps/mpc/0.8.2/gcc_412 --enable-languages=c,c++,fortran
Thread model: posix
gcc version 4.5.0 (GCC) 


Btw. the code also fails to compile with the 4.1.2 gcc on my RHEL box:

[kraused@icsprec03 ~]$ gcc -c -std=gnu99 -fopenmp convert.c 
convert.c: In function ‘convert_u8_s32.omp_fn.0’:
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 <URL:http://bugzilla.redhat.com/bugzilla> 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=/usr --mandir=/usr/share/man
--infodir=/usr/share/info --enable-shared --enable-threads=posix
--enable-checking=release --with-system-zlib --enable-__cxa_atexit
--disable-libunwind-exceptions --enable-libgcj-multifile
--enable-languages=c,c++,objc,obj-c++,java,fortran,ada --enable-java-awt=gtk
--disable-dssi --disable-plugin
--with-java-home=/usr/lib/jvm/java-1.4.2-gcj-1.4.2.0/jre --with-cpu=generic
--host=x86_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.


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

end of thread, other threads:[~2011-07-19 19:53 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-07-05 11:48 [Bug middle-end/49640] New: Internal compiler in C99 code (using variable-length arrays) and OpenMP doriankrause at web dot de
2011-07-05 11:49 ` [Bug middle-end/49640] " doriankrause at web dot de
2011-07-07  9:12 ` jakub at gcc dot gnu.org
2011-07-07 12:50 ` jakub at gcc dot gnu.org
2011-07-07 12:50 ` jakub at gcc dot gnu.org
2011-07-07 12:58 ` jakub at gcc dot gnu.org
2011-07-19 13:06 ` jakub at gcc dot gnu.org
2011-07-19 19:34 ` jakub at gcc dot gnu.org
2011-07-19 19:53 ` jakub at gcc dot gnu.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).