Bug 992 - i386 cc1 crashes if passed '-msse'
Summary: i386 cc1 crashes if passed '-msse'
Status: RESOLVED FIXED
Alias: None
Product: gcc
Classification: Unclassified
Component: target (show other bugs)
Version: 2.97
: P3 normal
Target Milestone: ---
Assignee: Not yet assigned to anyone
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2000-12-05 13:26 UTC by stephen.kennedy
Modified: 2003-07-25 17:33 UTC (History)
2 users (show)

See Also:
Host: i686-pc-linux-gnu
Target: i686-pc-linux-gnu
Build: i686-pc-linux-gnu
Known to work:
Known to fail:
Last reconfirmed:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description stephen.kennedy 2000-12-05 13:26:01 UTC
	cc1 crashes in build_function_type (called from ix86_init_builtins)
	if '-msse' is passed on the command line. A null pointer (value_type)
       	is dereferenced.

Release:
2.97 20001205 (experimental)

Environment:
System: Linux stag.telekinesys 2.2.17sk #14 Thu Nov 30 20:11:50 GMT 2000 i686 unknown
Architecture: i686

	
host: i686-pc-linux-gnu
build: i686-pc-linux-gnu
target: i686-pc-linux-gnu
configured with: ../gcc/configure --with-gnu-as --with-gnu-ld --enable-languages=c

How-To-Repeat:
	Simply run 'cc1 -msse'. It does not even begin parsing input.
	Backtrace is 
#0  build_function_type (value_type=0x0, arg_types=0x401858e0) at ../../gcc/gcc/tree.c:3869
#1  0x82ae0a5 in ix86_init_builtins () at ../../gcc/gcc/config/i386/i386.c:7414
#2  0x8058697 in init_decl_processing () at ../../gcc/gcc/c-decl.c:3058
#3  0x8094188 in compile_file (name=0x82d92ae "stdin") at ../../gcc/gcc/toplev.c:2180
#4  0x8098140 in main (argc=2, argv=0xbffff974) at ../../gcc/gcc/toplev.c:4848
#5  0x4003ce51 in __libc_start_main (main=0x8097ca0 <main>, argc=2, ubp_av=0xbffff974, init=0x80491a0 <_init>, fini=0x82d1b5c <_fini>, rtld_fini=0x4000e264 <_dl_fini>, stack_end=0xbffff96c) at ../sysdeps/generic/libc-start.c:111
Comment 1 stephen.kennedy 2000-12-05 13:26:01 UTC
Fix:
	No fix or workaround known.
Comment 2 Joseph S. Myers 2001-05-28 04:32:05 UTC
State-Changed-From-To: open->closed
State-Changed-Why: Fixed on mainline.  There are unreviewed patches to remove
    -mmmx and -msse on the 3.0 branch and to document them on
    the mainline.
    http://gcc.gnu.org/ml/gcc-patches/2001-05/msg01493.html
Comment 3 Joseph S. Myers 2001-05-28 11:32:05 UTC
From: jsm28@gcc.gnu.org
To: gcc-gnats@gcc.gnu.org, jsm28@cam.ac.uk, nobody@gcc.gnu.org,
  stephen.kennedy@havok.com
Cc:  
Subject: Re: target/992
Date: 28 May 2001 11:32:05 -0000

 Synopsis: i386 cc1 crashes if passed '-msse'
 
 State-Changed-From-To: open->closed
 State-Changed-By: jsm28
 State-Changed-When: Mon May 28 04:32:05 2001
 State-Changed-Why:
     Fixed on mainline.  There are unreviewed patches to remove
     -mmmx and -msse on the 3.0 branch and to document them on
     the mainline.
     http://gcc.gnu.org/ml/gcc-patches/2001-05/msg01493.html
 
 http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view&pr=992&database=gcc