public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug middle-end/22398] New: ICE in compare_values, at tree-vrp.c:445
@ 2005-07-11  2:00 dank at kegel dot com
  2005-07-11  2:12 ` [Bug middle-end/22398] [4.1 Regression] " pinskia at gcc dot gnu dot org
                   ` (7 more replies)
  0 siblings, 8 replies; 9+ messages in thread
From: dank at kegel dot com @ 2005-07-11  2:00 UTC (permalink / raw)
  To: gcc-bugs

Compiling arch/sparc/kernel/process.c from linux-2.6.11.3
with gcc-4.1-20050709 fails with

arch/sparc/kernel/process.c: In function '__show_backtrace':
arch/sparc/kernel/process.c:204: internal compiler error: in compare_values, at
tree-vrp.c:445

Here's the command I use to reproduce:

sparc-unknown-linux-gnu-gcc \
-fno-strict-aliasing -fno-common -ffreestanding \
-O2     -fomit-frame-pointer -m32 -mno-fpu -fcall-used-g5 \
-fcall-used-g7 -c process.i

I haven't reduced process.i; it's 250KB.  You can download it
from http://kegel.com/gcc/process.i.txt

-- 
           Summary: ICE in compare_values, at tree-vrp.c:445
           Product: gcc
           Version: 4.1.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: middle-end
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: dank at kegel dot com
                CC: gcc-bugs at gcc dot gnu dot org
GCC target triplet: sparc-linux


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=22398


^ permalink raw reply	[flat|nested] 9+ messages in thread

* [Bug middle-end/22398] [4.1 Regression] ICE in compare_values, at tree-vrp.c:445
  2005-07-11  2:00 [Bug middle-end/22398] New: ICE in compare_values, at tree-vrp.c:445 dank at kegel dot com
@ 2005-07-11  2:12 ` pinskia at gcc dot gnu dot org
  2005-07-11  2:19 ` pinskia at gcc dot gnu dot org
                   ` (6 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-07-11  2:12 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2005-07-11 02:00 -------
Confirmed, reduced testcase:
void __show_backtrace(void *rw)
{
  while(rw && (((unsigned long) rw) >= 0xf0000000) ) {}
}

looks like a fold bug with respect of type issues.  This is target independent.

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |pinskia at gcc dot gnu dot
                   |                            |org
             Status|UNCONFIRMED                 |NEW
     Ever Confirmed|                            |1
 GCC target triplet|sparc-linux                 |
           Keywords|                            |ice-on-valid-code
   Last reconfirmed|0000-00-00 00:00:00         |2005-07-11 02:00:01
               date|                            |
            Summary|ICE in compare_values, at   |[4.1 Regression] ICE in
                   |tree-vrp.c:445              |compare_values, at tree-
                   |                            |vrp.c:445
   Target Milestone|---                         |4.1.0


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=22398


^ permalink raw reply	[flat|nested] 9+ messages in thread

* [Bug middle-end/22398] [4.1 Regression] ICE in compare_values, at tree-vrp.c:445
  2005-07-11  2:00 [Bug middle-end/22398] New: ICE in compare_values, at tree-vrp.c:445 dank at kegel dot com
  2005-07-11  2:12 ` [Bug middle-end/22398] [4.1 Regression] " pinskia at gcc dot gnu dot org
@ 2005-07-11  2:19 ` pinskia at gcc dot gnu dot org
  2005-07-11  5:20 ` pinskia at gcc dot gnu dot org
                   ` (5 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-07-11  2:19 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2005-07-11 02:12 -------
And here is a testcase which fails on LP64 targets:

void __show_backtrace(void *rw)
{
  while(rw && (((unsigned long) rw) >= 0xf000000000000000) ) {}
}


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=22398


^ permalink raw reply	[flat|nested] 9+ messages in thread

* [Bug middle-end/22398] [4.1 Regression] ICE in compare_values, at tree-vrp.c:445
  2005-07-11  2:00 [Bug middle-end/22398] New: ICE in compare_values, at tree-vrp.c:445 dank at kegel dot com
  2005-07-11  2:12 ` [Bug middle-end/22398] [4.1 Regression] " pinskia at gcc dot gnu dot org
  2005-07-11  2:19 ` pinskia at gcc dot gnu dot org
@ 2005-07-11  5:20 ` pinskia at gcc dot gnu dot org
  2005-07-11  5:45 ` dank at kegel dot com
                   ` (4 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-07-11  5:20 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2005-07-11 05:14 -------
I have a fix.

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
         AssignedTo|unassigned at gcc dot gnu   |pinskia at gcc dot gnu dot
                   |dot org                     |org
             Status|NEW                         |ASSIGNED


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=22398


^ permalink raw reply	[flat|nested] 9+ messages in thread

* [Bug middle-end/22398] [4.1 Regression] ICE in compare_values, at tree-vrp.c:445
  2005-07-11  2:00 [Bug middle-end/22398] New: ICE in compare_values, at tree-vrp.c:445 dank at kegel dot com
                   ` (2 preceding siblings ...)
  2005-07-11  5:20 ` pinskia at gcc dot gnu dot org
@ 2005-07-11  5:45 ` dank at kegel dot com
  2005-07-11 19:39 ` pinskia at gcc dot gnu dot org
                   ` (3 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: dank at kegel dot com @ 2005-07-11  5:45 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From dank at kegel dot com  2005-07-11 05:20 -------
Deity on a crutch!  That was fast.
Thanks; I can test if you like, or just wait for the next snapshot.

-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=22398


^ permalink raw reply	[flat|nested] 9+ messages in thread

* [Bug middle-end/22398] [4.1 Regression] ICE in compare_values, at tree-vrp.c:445
  2005-07-11  2:00 [Bug middle-end/22398] New: ICE in compare_values, at tree-vrp.c:445 dank at kegel dot com
                   ` (3 preceding siblings ...)
  2005-07-11  5:45 ` dank at kegel dot com
@ 2005-07-11 19:39 ` pinskia at gcc dot gnu dot org
  2005-07-14  1:51 ` pinskia at gcc dot gnu dot org
                   ` (2 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-07-11 19:39 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2005-07-11 19:38 -------
Patch posted here: <http://gcc.gnu.org/ml/gcc-patches/2005-07/msg00771.html>.

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
                URL|                            |http://gcc.gnu.org/ml/gcc-
                   |                            |patches/2005-
                   |                            |07/msg00771.html
           Keywords|                            |patch


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=22398


^ permalink raw reply	[flat|nested] 9+ messages in thread

* [Bug middle-end/22398] [4.1 Regression] ICE in compare_values, at tree-vrp.c:445
  2005-07-11  2:00 [Bug middle-end/22398] New: ICE in compare_values, at tree-vrp.c:445 dank at kegel dot com
                   ` (4 preceding siblings ...)
  2005-07-11 19:39 ` pinskia at gcc dot gnu dot org
@ 2005-07-14  1:51 ` pinskia at gcc dot gnu dot org
  2005-07-15 23:13 ` pinskia at gcc dot gnu dot org
  2005-07-15 23:24 ` cvs-commit at gcc dot gnu dot org
  7 siblings, 0 replies; 9+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-07-14  1:51 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2005-07-14 01:47 -------
A testcase which is exposed by PR 22368's second patch:
int __show_backtrace(void *rw)
{
  return (rw && (((unsigned long) rw) >= 0xf0000000) );
}

-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=22398


^ permalink raw reply	[flat|nested] 9+ messages in thread

* [Bug middle-end/22398] [4.1 Regression] ICE in compare_values, at tree-vrp.c:445
  2005-07-11  2:00 [Bug middle-end/22398] New: ICE in compare_values, at tree-vrp.c:445 dank at kegel dot com
                   ` (5 preceding siblings ...)
  2005-07-14  1:51 ` pinskia at gcc dot gnu dot org
@ 2005-07-15 23:13 ` pinskia at gcc dot gnu dot org
  2005-07-15 23:24 ` cvs-commit at gcc dot gnu dot org
  7 siblings, 0 replies; 9+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-07-15 23:13 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2005-07-15 23:13 -------
Fixed.

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|ASSIGNED                    |RESOLVED
         Resolution|                            |FIXED


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=22398


^ permalink raw reply	[flat|nested] 9+ messages in thread

* [Bug middle-end/22398] [4.1 Regression] ICE in compare_values, at tree-vrp.c:445
  2005-07-11  2:00 [Bug middle-end/22398] New: ICE in compare_values, at tree-vrp.c:445 dank at kegel dot com
                   ` (6 preceding siblings ...)
  2005-07-15 23:13 ` pinskia at gcc dot gnu dot org
@ 2005-07-15 23:24 ` cvs-commit at gcc dot gnu dot org
  7 siblings, 0 replies; 9+ messages in thread
From: cvs-commit at gcc dot gnu dot org @ 2005-07-15 23:24 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From cvs-commit at gcc dot gnu dot org  2005-07-15 23:14 -------
Subject: Bug 22398

CVSROOT:	/cvs/gcc
Module name:	gcc
Changes by:	pinskia@gcc.gnu.org	2005-07-15 23:14:07

Modified files:
	gcc            : ChangeLog fold-const.c 
	gcc/testsuite  : ChangeLog 
Added files:
	gcc/testsuite/gcc.c-torture/compile: pr22398.c 

Log message:
	2005-07-15  Andrew Pinski  <pinskia@physics.uc.edu>
	
	PR middle-end/22398
	* gcc.c-torture/compile/pr22398.c: New test.
	
	2005-07-11  Andrew Pinski  <pinskia@physics.uc.edu>
	
	PR middle-end/22398
	* fold-const.c (build_range_check): Convert high/low to etype
	if we are only comparing against exp.

Patches:
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/ChangeLog.diff?cvsroot=gcc&r1=2.9453&r2=2.9454
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/fold-const.c.diff?cvsroot=gcc&r1=1.602&r2=1.603
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/ChangeLog.diff?cvsroot=gcc&r1=1.5772&r2=1.5773
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/gcc.c-torture/compile/pr22398.c.diff?cvsroot=gcc&r1=NONE&r2=1.1



-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=22398


^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2005-07-15 23:14 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-07-11  2:00 [Bug middle-end/22398] New: ICE in compare_values, at tree-vrp.c:445 dank at kegel dot com
2005-07-11  2:12 ` [Bug middle-end/22398] [4.1 Regression] " pinskia at gcc dot gnu dot org
2005-07-11  2:19 ` pinskia at gcc dot gnu dot org
2005-07-11  5:20 ` pinskia at gcc dot gnu dot org
2005-07-11  5:45 ` dank at kegel dot com
2005-07-11 19:39 ` pinskia at gcc dot gnu dot org
2005-07-14  1:51 ` pinskia at gcc dot gnu dot org
2005-07-15 23:13 ` pinskia at gcc dot gnu dot org
2005-07-15 23:24 ` cvs-commit at gcc dot gnu dot org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).