[Bug c/19411] New: Simple program causes gcc to run out of memory
gcc-bugzilla at gcc dot gnu dot org
gcc-bugzilla@gcc.gnu.org
Wed Jan 12 22:55:00 GMT 2005
A simple program causes gcc to use inordinate amounts of memory
and finally crash.
Environment:
System: Linux glauke 2.6.8-powerpc #1 Sun Oct 3 13:22:21 CEST 2004 ppc GNU/Linux
Architecture: ppc
host: powerpc-unknown-linux-gnu
build: powerpc-unknown-linux-gnu
target: powerpc-unknown-linux-gnu
configured with: ../src/configure -v --enable-languages=c,c++,java,f77,pascal,objc,ada --prefix=/usr --libexecdir=/usr/lib --with-gxx-include-dir=/usr/include/c++/3.4 --enable-shared --with-system-zlib --enable-nls --without-included-gettext --program-suffix=-3.4 --enable-__cxa_atexit --enable-libstdcxx-allocator=mt --enable-clocale=gnu --enable-libstdcxx-debug --enable-java-gc=boehm --enable-java-awt=gtk --disable-multilib --disable-softfloat powerpc-linux
How-To-Repeat:
Compile this program as follows:
gcc-3.4 -maltivec prog.c
prog.c follows:
#include <altivec.h>
vector float foo(vector float a)
{
return vec_add(a,
vec_add(a,
vec_add(a,
vec_add(a, a))));
}
------- Additional Comments From athena at fftw dot org 2005-01-12 22:55 -------
Fix:
Declare explicit temporary variables for the intermediate results.
--
Summary: Simple program causes gcc to run out of memory
Product: gcc
Version: 3.4.3
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: athena at fftw dot org
CC: gcc-bugs at gcc dot gnu dot org
GCC build triplet: powerpc-unknown-linux-gnu
GCC host triplet: powerpc-unknown-linux-gnu
GCC target triplet: powerpc-unknown-linux-gnu
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=19411
More information about the Gcc-bugs
mailing list