This is the mail archive of the
gcc-prs@gcc.gnu.org
mailing list for the GCC project.
c/2849: -mmmx flag causes gcc to segfault
- To: gcc-gnats at gcc dot gnu dot org
- Subject: c/2849: -mmmx flag causes gcc to segfault
- From: "VÁCLAV" HAISMAN <V dot Haisman at sh dot cvut dot cz>
- Date: Wed, 16 May 2001 23:36:35 +0200 (CEST)
- Cc: V dot Haisman at sh dot cvut dot cz
- Reply-To: V dot Haisman at sh dot cvut dot cz
>Number: 2849
>Category: c
>Synopsis: -mmmx flag causes gcc to segfault
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: unassigned
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Wed May 16 14:46:02 PDT 2001
>Closed-Date:
>Last-Modified:
>Originator: VÁCLAV HAISMAN
>Release: 3.0 20010516 (prerelease)
>Organization:
None
>Environment:
System: FreeBSD logout.sh.cvut.cz 3.5-STABLE FreeBSD 3.5-STABLE #5: Sat Jan 20 01:11:13 CET 2001 root@logout.sh.cvut.cz:/usr/src/sys/compile/KERNEL_LOGOUT i386
host: i386-unknown-freebsd3.5
build: i386-unknown-freebsd3.5
target: i386-unknown-freebsd3.5
configured with: ../gcc-srcdir/configure --prefix=/home/4/wilx --enable-threads --with-cpu=pentiumpro --enable-cpp --enable-version-specific-runtime-libs --enable-languages=c,c++ : (reconfigured) : (reconfigured) ../gcc-srcdir/configure --prefix=/home/4/wilx/gcc --enable-threads --with-cpu=pentiumpro --enable-cpp --enable-version-specific-runtime-libs --enable-languages=c,c++ : (reconfigured) ../gcc-srcdir/configure --prefix=/home/4/wilx/gcc --enable-threads --with-cpu=pentiumpro --enable-cpp --enable-version-specific-runtime-libs --enable-languages=c,c++ --disable-nls : (reconfigured) ../gcc-srcdir/configure --prefix=/home/4/wilx --enable-threads --with-cpu=pentiumpro --enable-cpp --enable-version-specific-runtime-libs --enable-languages=c,c++ --disable-nls
>Description:
If I use -mmmx switch, then the gcc segfaults.
It is neither dependant on source file that is compiled nor on other switches.
I tryed Codesourcery's web compiler and it segfaults too.
Used command and the output:
logout ~/Cveci/tsrv>gcc -DHAVE_CONFIG_H -I. -I. -I. -v -g -O2 -march=pentiumpro -mmmx tsrv.c
Reading specs from /home/4/wilx/lib/gcc-lib/i386-unknown-freebsd3.5/3.0/specs
Configured with: ../gcc-srcdir/configure --prefix=/home/4/wilx --enable-threads --with-cpu=pentiumpro --enable-cpp --enable-version-specific-runtime-libs --enable-languages=c,c++ : (reconfigured) : (reconfigured) ../gcc-srcdir/configure --prefix=/home/4/wilx/gcc --enable-threads --with-cpu=pentiumpro --enable-cpp --enable-version-specific-runtime-libs --enable-languages=c,c++ : (reconfigured) ../gcc-srcdir/configure --prefix=/home/4/wilx/gcc --enable-threads --with-cpu=pentiumpro --enable-cpp --enable-version-specific-runtime-libs --enable-languages=c,c++ --disable-nls : (reconfigured) ../gcc-srcdir/configure --prefix=/home/4/wilx --enable-threads --with-cpu=pentiumpro --enable-cpp --enable-version-specific-runtime-libs --enable-languages=c,c++ --disable-nls
Thread model: posix
gcc version 3.0 20010516 (prerelease)
/home/4/wilx/lib/gcc-lib/i386-unknown-freebsd3.5/3.0/cc1 -lang-c -v -I. -I. -I. -D__GNUC__=3 -D__GNUC_MINOR__=0 -D__GNUC_PATCHLEVEL__=0 -Dunix -D__ELF__ -D__FreeBSD__ -D__unix__ -D__ELF__ -D__FreeBSD__ -D__unix -Asystem=unix -Asystem=bsd -Asystem=FreeBSD -D__OPTIMIZE__ -D__STDC_HOSTED__=1 -Acpu=i386 -Amachine=i386 -Di386 -D__i386 -D__i386__ -D__i686 -D__i686__ -D__pentiumpro -D__pentiumpro__ -D__tune_i686__ -D__tune_pentiumpro__ -DHAVE_CONFIG_H tsrv.c -quiet -dumpbase tsrv.c -march=pentiumpro -mmmx -g -O2 -version -o /var/tmp/ccI41935.s
GNU CPP version 3.0 20010516 (prerelease) (cpplib) (i386 FreeBSD/ELF)
GNU C version 3.0 20010516 (prerelease) (i386-unknown-freebsd3.5)
compiled by GNU C version 2.95.2 19991024 (release).
cc1: Internal error: Segmentation fault
Please submit a full bug report, with preprocessed source if appropriate.
See <URL:http://www.gnu.org/software/gcc/bugs.html> for instructions.
>How-To-Repeat:
Just add -mmmx to the commadline while compiling.
>Fix:
>Release-Note:
>Audit-Trail:
>Unformatted: