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
Fix: No fix or workaround known.
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
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