Bug 32606 - [4.3 Regression] ICE in set_ssa_val_to, at tree-ssa-sccvn.c:1026
Summary: [4.3 Regression] ICE in set_ssa_val_to, at tree-ssa-sccvn.c:1026
Status: RESOLVED FIXED
Alias: None
Product: gcc
Classification: Unclassified
Component: tree-optimization (show other bugs)
Version: 4.3.0
: P3 normal
Target Milestone: 4.3.0
Assignee: Not yet assigned to anyone
URL:
Keywords: ice-on-valid-code
Depends on:
Blocks:
 
Reported: 2007-07-03 09:58 UTC by Mike Stein
Modified: 2007-07-08 10:24 UTC (History)
3 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: 2007-07-03 13:29:34


Attachments
preprocessed source file from linux-2.6.20, delta-reduced (601 bytes, text/plain)
2007-07-03 10:03 UTC, Mike Stein
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Mike Stein 2007-07-03 09:58:19 UTC
Hello,
there seems to be a problem compiling the attached source file with i686-pc-linux-gnu-gcc:

  gcc -m32 -Wp,-MD,drivers/scsi/.atp870u.o.d  -nostdinc -isystem /home/mstein/host-gcc/trunk-2007-07-03/bin/../lib/gcc/i686-pc-linux-gnu/4.3.0/include -D__KERNEL__ -Iinclude  -include include/linux/autoconf.h -Wall -Wundef -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -Os -pipe -msoft-float -mregparm=3 -mpreferred-stack-boundary=2  -march=i686 -mtune=generic -ffreestanding -maccumulate-outgoing-args -DCONFIG_AS_CFI=1  -Iinclude/asm-i386/mach-default -fno-omit-frame-pointer -fno-optimize-sibling-calls -g  -fno-stack-protector -Wdeclaration-after-statement -Wno-pointer-sign   -DMODULE -D"KBUILD_STR(s)=#s" -D"KBUILD_BASENAME=KBUILD_STR(atp870u)"  -D"KBUILD_MODNAME=KBUILD_STR(atp870u)" -c -o drivers/scsi/.tmp_atp870u.o drivers/scsi/atp870u.c
gcc: warning: -pipe ignored because -save-temps specified
drivers/scsi/atp870u.c: In function 'is885':
drivers/scsi/atp870u.c:3302: internal compiler error: in set_ssa_val_to, at tree-ssa-sccvn.c:1026
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://gcc.gnu.org/bugs.html> for instructions.

host gcc -v
Using built-in specs.
Target: i686-pc-linux-gnu
Configured with: /home/mstein/svn/trunk/configure --enable-languages=c --disable-nls --prefix=/n/07/mstein/host-gcc/trunk-2007-07-03
Thread model: posix
gcc version 4.3.0 20070702 (experimental)

Tested revision: 126237
Last succesfull build revision: 126095
Comment 1 Mike Stein 2007-07-03 10:03:18 UTC
Created attachment 13832 [details]
preprocessed source file from linux-2.6.20, delta-reduced
Comment 2 Richard Biener 2007-07-03 13:29:34 UTC
Confirmed.  Fails at -O.  There are lots of similar ACATS failures on the trunk as well.
Comment 3 Andrew Pinski 2007-07-04 14:24:45 UTC
Here is a reduced testcase which has only one function in it:
int inb(int);
void is870(unsigned int wkport, unsigned char j)
{
 unsigned int tmport;
 unsigned char i;
 for (i = 0; i < 16; i++)
 {
  tmport = wkport + 0x18;
  tmport += 0x07;
  while ((inb(tmport) & 0x80) == 0)
  {
   if ((inb(tmport) & 0x01) != 0)
   {
    tmport -= 0x06;
    tmport += 0x06;
   }
  }
  tmport = wkport + 0x14;
  tmport += 0x04;
  tmport += 0x07;
widep_in1:
  if ((j & 0x01) != 0)
  {
   tmport -= 0x06;
   tmport += 0x06;
   goto widep_in1;
  }
  while ((inb(tmport) & 0x80) == 0) {}
 }
}
Comment 4 Daniel Berlin 2007-07-04 22:11:27 UTC
Subject: Bug 32606

Author: dberlin
Date: Wed Jul  4 22:11:14 2007
New Revision: 126338

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=126338
Log:
2007-07-04  Daniel Berlin  <dberlin@dberlin.org>

	PR tree-optimization/32604
	PR tree-optimization/32606
	
	* tree-ssa-pre.c (bb_bitmap_sets): Removed antic_safe_loads.
	(compute_antic_safe): Removed.
	(ANTIC_SAFE_LOADS): Ditto.
	(compute_antic_aux): Don't print ANTIC_SAFE_LOADS.
	(execute_pre): Don't call compute_antic_safe.
	(vuse_equiv): New function.
	(make_values_for_stmt): Use it
	* tree-ssa-sccvn.c (set_ssa_val_to): Remove assert, since it is
	not always true.


Added:
    trunk/gcc/testsuite/gcc.c-torture/compile/pr32606.c
    trunk/gcc/testsuite/gfortran.fortran-torture/execute/pr32604.f90
Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/testsuite/ChangeLog
    trunk/gcc/tree-ssa-pre.c
    trunk/gcc/tree-ssa-sccvn.c

Comment 5 Uroš Bizjak 2007-07-05 13:46:17 UTC
Fixed.