c/8962: "-O2 -mmmx" makes gcc seg fault

Mack Lobell macklobell@hotmail.com
Sat Dec 21 07:46:00 GMT 2002


Hi,

did the following:
*** downloaded tar from PR
*** untared to ~/gcc_test

lobell@VOLVO ~/gcc_test
$ pwd
/home/lobell/gcc_test

lobell@VOLVO ~/gcc_test
$ ls -al
total 873
drwxrwxrwx+   2 lobell   None            0 Dec 21 16:23 .
drwxrwxrwx+   8 lobell   None            0 Dec 21 16:21 ..
-rw-rw-rw-    1 lobell   None       893508 Dec 16 15:32 expr.i


*** Compiled with cygwin provided compiler ***

lobell@VOLVO ~/gcc_test
$ gcc -c -O2 -mmmx expr.i

lobell@VOLVO ~/gcc_test
$ ls -al
total 1072
drwxrwxrwx+   2 lobell   None            0 Dec 21 16:28 .
drwxrwxrwx+   8 lobell   None            0 Dec 21 16:21 ..
-rw-rw-rw-    1 lobell   None       893508 Dec 16 15:32 expr.i
-rw-rw-rw-    1 lobell   None       202986 Dec 21 16:28 expr.o

lobell@VOLVO ~/gcc_test
$ gcc -v
Reading specs from /usr/lib/gcc-lib/i686-pc-cygwin/3.2/specs
Configured with: /netrel/src/gcc-3.2-3/configure 
--enable-languages=c,c++,f77,java --enable-libg
cj --enable-threads=posix --with-system-zlib --enable-nls 
--without-included-gettext --enable-in
terpreter --disable-sjlj-exceptions --disable-version-specific-runtime-libs 
--enable-shared --bu
ild=i686-pc-linux --host=i686-pc-cygwin --target=i686-pc-cygwin 
--enable-haifa --prefix=/usr --e
xec-prefix=/usr --sysconfdir=/etc --libdir=/usr/lib 
--includedir=/nonexistent/include --libexecd
ir=/usr/sbin
Thread model: posix
gcc version 3.2 20020927 (prerelease)


*** Compiled with gcc current ***

lobell@VOLVO ~/gcc_test
$ /usr/local/native/bin/gcc.exe -c -O2 -mmmx expr.i
/home/lobell/src/gcc-20021202/gcc/expr.c: In function `expand_expr':
/home/lobell/src/gcc-20021202/gcc/expr.c:9306: internal compiler 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.

lobell@VOLVO ~/gcc_test
$ /usr/local/native/bin/gcc.exe -v
Reading specs from 
/usr/local/native/bin/../lib/gcc-lib/i686-pc-cygwin/3.3/specs
Configured with: /home/lobell/src/gcc/configure --prefix=/usr/local/native/ 
--enable-languages=c
,c++ --disable-nls
Thread model: single
gcc version 3.3 20021211 (experimental)


If you want, i can download the latest src and build a new gcc.exe? Or i 
could configure the src i have another way?

Your call, i'm no gcc expert :(

Regards.





>From: bangerth@dealii.org
>Reply-To: bangerth@dealii.org, gcc-bugs@gcc.gnu.org, gcc-prs@gcc.gnu.org,  
>macklobell@hotmail.com, nobody@gcc.gnu.org, gcc-gnats@gcc.gnu.org
>To: gcc-bugs@gcc.gnu.org, gcc-prs@gcc.gnu.org, macklobell@hotmail.com,  
>nobody@gcc.gnu.org
>Subject: Re: c/8962: "-O2 -mmmx" makes gcc seg fault
>Date: 21 Dec 2002 04:32:40 -0000
>
>Synopsis: "-O2 -mmmx" makes gcc seg fault
>
>State-Changed-From-To: open->feedback
>State-Changed-By: bangerth
>State-Changed-When: Fri Dec 20 20:32:39 2002
>State-Changed-Why:
>     I tried to reproduce the problem with the file you attached
>     and -O2 -mmmx as you describe, but I failed. However, I have
>     two differences:
>     - I am on x86 linux
>     - I am using a CVS from 20021213
>     Could you possibly check whether you get the same problem
>     again also with the file attached to this report?
>
>     (On another note: the compiler that fails is 
>actually/usr/local/native/bin/gcc.exe, if I see correctly. What
>     version is this?)
>
>     Thanks
>       Wolfgang
>
>http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=8962


_________________________________________________________________
Protect your PC - get McAfee.com VirusScan Online 
http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963



More information about the Gcc-bugs mailing list