c/10308: [3.2/3.3/3.4 regression] [x86] ICE with -O -fgcse or -O2

Steven Bosscher s.bosscher@student.tudelft.nl
Mon Apr 7 18:26:00 GMT 2003


The following reply was made to PR c/10308; it has been noted by GNATS.

From: Steven Bosscher <s.bosscher@student.tudelft.nl>
To: gcc-gnats@gcc.gnu.org, gcc-bugs@gcc.gnu.org, jberlin@cc.hut.fi,
	nobody@gcc.gnu.org, gcc-prs@gcc.gnu.org
Cc:  
Subject: Re: c/10308: [3.2/3.3/3.4 regression] [x86] ICE with -O -fgcse or
 -O2
Date: Mon, 07 Apr 2003 20:19:43 +0200

 http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=10308
 
 Starting program: /home/steven/devel/gcc/build-3.3/gcc/cc1 -O2 10308.c
  set_idx somefunc
 10308.c: In function `somefunc':
 10308.c:40: warning: initialization makes pointer from integer without a 
 cast
 10308.c:46: warning: passing arg 2 of `set_idx' makes integer from 
 pointer without a cast
 
 Program received signal SIGSEGV, Segmentation fault.
 print_reg (x=0x4017ce94, code=4, file=0x83dbc90) at 
 ../../gcc-3.3/gcc/config/i386/i386.c:6624
 6624          fputs (hi_reg_name[REGNO (x)], file);
 (gdb) p debug_rtx (x)
 (plus:SI (reg/f:SI 6 ebp)
     (const_int -16 [0xfffffff0]))
 $3 = void
 (gdb) where
 #0  print_reg (x=0x4017ce94, code=4, file=0x83dbc90) at 
 ../../gcc-3.3/gcc/config/i386/i386.c:6624
 #1  0x0820eddd in print_operand_address (file=0x83dbc90, addr=0x4017ce94)
     at ../../gcc-3.3/gcc/config/i386/i386.c:7156
 #2  0x080dc1a0 in output_address (x=0x4017ceac) at 
 ../../gcc-3.3/gcc/final.c:3534
 #3  0x0820eb82 in print_operand (file=0x83dbc90, x=0x4017ceac, code=0)
     at ../../gcc-3.3/gcc/config/i386/i386.c:7012
 #4  0x080dc144 in output_operand (x=0x4017ceb8, code=0) at 
 ../../gcc-3.3/gcc/final.c:3522
 #5  0x080dbcf9 in output_asm_insn (template=0x82bc20c "0|%0, %1}", 
 operands=0x83aefe0)
     at ../../gcc-3.3/gcc/final.c:3445
 #6  0x080daf00 in final_scan_insn (insn=0x40146ad4, file=0x83dbc90, 
 optimize=2, prescan=0,
     nopeepholes=0) at ../../gcc-3.3/gcc/final.c:2814
 #7  0x080da9ff in final (first=0x40146420, file=0x83dbc90, optimize=2, 
 prescan=0)
     at ../../gcc-3.3/gcc/final.c:1904
 #8  0x081f019e in rest_of_compilation (decl=0x40146420) at 
 ../../gcc-3.3/gcc/toplev.c:3584
 
 Are we trying to PRINT_REG something that is not a REG?
 
 Greetz
 Steven
 
 
 



More information about the Gcc-prs mailing list