This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

c/1777: -mmx and -msse are broken



>Number:         1777
>Category:       c
>Synopsis:       -mmx and -msse are broken
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    unassigned
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Fri Jan 26 03:36:00 PST 2001
>Closed-Date:
>Last-Modified:
>Originator:     Andreas Jaeger
>Release:        2.97 20010126 (experimental)
>Organization:
>Environment:
System: Linux gromit 2.4.0 #58 Fri Jan 5 18:22:21 CET 2001 i686 unknown
Architecture: i686

	
host: i686-pc-linux-gnu
build: i686-pc-linux-gnu
target: i686-pc-linux-gnu
configured with: /cvs/gcc/configure --prefix=/opt/gcc-2.97.test --enable-shared --enable-threads=posix --with-gnu-as --with-gnu-ld --disable-nls --with-system-zlib --enable-languages=c,objc,c++,f77
>Description:
	Invoking GCC on i686 with -msse or -mmmx gives an internal error
>How-To-Repeat:
	Just use -mmmx on any program and you get:
/opt/gcc-2.97.test/bin/gcc -msse /tmp/t.c
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.

Here's a backtrace:
GNU C version 2.97 20010126 (experimental) (i686-pc-linux-gnu)
        compiled by GNU C version 2.97 20010126 (experimental).

Program received signal SIGSEGV, Segmentation fault.
build_function_type (value_type=0x0, arg_types=0x4001e44c)
    at /cvs/gcc/gcc/tree.c:3873
3873      if (TREE_CODE (value_type) == FUNCTION_TYPE)
(gdb) bt
#0  build_function_type (value_type=0x0, arg_types=0x4001e44c)
    at /cvs/gcc/gcc/tree.c:3873
#1  0x8264fd9 in ix86_init_builtins () at /cvs/gcc/gcc/config/i386/i386.c:7731
#2  0x807c18c in c_common_nodes_and_builtins () at /cvs/gcc/gcc/c-common.c:2838
#3  0x8058c5b in init_decl_processing () at /cvs/gcc/gcc/c-decl.c:2961
#4  0x8096c18 in compile_file (name=0xbffff860 "t.c")
    at /cvs/gcc/gcc/toplev.c:2187
#5  0x809aa7c in main (argc=25, argv=0xbffff59c) at /cvs/gcc/gcc/toplev.c:4879
#6  0x40045baf in __libc_start_main () from /lib/libc.so.6
(gdb) p intTI_type_node
No symbol "intTI_type_node" in current context.
(gdb) up
#1  0x8264fd9 in ix86_init_builtins () at /cvs/gcc/gcc/config/i386/i386.c:7731
7731        = build_function_type (intTI_type_node, endlink);
(gdb) p intTI_type_node
No symbol "intTI_type_node" in current context.
(gdb) p intTI_type_node
No symbol "intTI_type_node" in current context.
(gdb) p global_trees
$1 = {0x4001a450, 0x4001d548, 0x4001d5b0, 0x4001d618, 0x4001d680, 0x0, 
  0x4001d6e8, 0x4001d750, 0x4001d7b8, 0x4001d820, 0x0, 0x4001cb00, 0x4001cb20, 
  0x4001cb80, 0x4001cb40, 0x4001ca20, 0x4001cb60, 0x4001ca00, 0x4001c360, 
  0x4001f750, 0x4001f7b8, 0x4001f820, 0x4001f888, 0x4001f618, 0x4001f680, 
  0x4001f6e8, 0x4001f478, 0x4001f4e0, 0x4001f5b0, 0x0, 0x4001f8f0, 0x4001e44c, 
  0x4001f958, 0x4001fbc8, 0x400202d8, 0x40020068, 0x4001fe38, 0x0}
(gdb) p global_trees[5]
$2 = 0x0

The problem is that global_trees[TI_INTTI_TYPE] is not initialized.
	
>Fix:
	
>Release-Note:
>Audit-Trail:
>Unformatted:

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]