public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug tree-optimization/21293] New: ICE on valid
@ 2005-04-29 23:13 dalej at gcc dot gnu dot org
  2005-04-30  0:17 ` [Bug tree-optimization/21293] " dberlin at gcc dot gnu dot org
                   ` (14 more replies)
  0 siblings, 15 replies; 16+ messages in thread
From: dalej at gcc dot gnu dot org @ 2005-04-29 23:13 UTC (permalink / raw)
  To: gcc-bugs

The following crashes at compile time with -O2, on a local compiler built from 4.0 branch sources:
foo3.c: In function 'gciprt_':
foo3.c:8: internal compiler error: in set_value_handle, at tree-vn.c:179
(This has been cut down from a large original which did not have all those uninitialized variables.)

struct {
int k_;
} detwfn_;
struct {
double x_[1];
} fmcom_;
void gciprt_(int *iw_)
{
int Tmp8, ibcon_, iwrk_, ibo_, jstsym_, lcivec_, iacon_, igmul_;
int i_, nsym_, ipica_, ipicb_;
ibo_ = iwrk_ + 43;
Tmp8 = detwfn_.k_;
for(i_ = 1;i_ <= Tmp8;i_++) {
  gcisym_(iw_,&fmcom_.x_[lcivec_ + -1],&fmcom_.x_[ipica_ + -1],&fmcom_.x_[ipicb_ + -1],
  &fmcom_.x_[iacon_ + -1],&fmcom_.x_[ibcon_ + -1],&fmcom_.x_[igmul_ + -1],&nsym_,
  &fmcom_.x_[iwrk_ + -1],&fmcom_.x_[ibo_ + -1],&jstsym_);
}
return ;
}

-- 
           Summary: ICE on valid
           Product: gcc
           Version: 4.0.0
            Status: UNCONFIRMED
          Keywords: ice-on-valid-code
          Severity: normal
          Priority: P2
         Component: tree-optimization
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: dalej at gcc dot gnu dot org
                CC: gcc-bugs at gcc dot gnu dot org
 GCC build triplet: powerpc-apple-darwin8.0.0
  GCC host triplet: powerpc-apple-darwin8.0.0
GCC target triplet: powerpc-apple-darwin8.0.0


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


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

* [Bug tree-optimization/21293] ICE on valid
  2005-04-29 23:13 [Bug tree-optimization/21293] New: ICE on valid dalej at gcc dot gnu dot org
@ 2005-04-30  0:17 ` dberlin at gcc dot gnu dot org
  2005-04-30  0:46 ` pinskia at gcc dot gnu dot org
                   ` (13 subsequent siblings)
  14 siblings, 0 replies; 16+ messages in thread
From: dberlin at gcc dot gnu dot org @ 2005-04-30  0:17 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From dberlin at gcc dot gnu dot org  2005-04-30 00:17 -------
Fold turns

 D.1157 = &fmcom_D.1134.x_D.1132[0] + -8B;
into

D.1157 = &fmcom_D.1134.x_D.1132[-000000001];

which seems very wrong (we eventually crap out on the overflowed constant)

-- 


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


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

* [Bug tree-optimization/21293] ICE on valid
  2005-04-29 23:13 [Bug tree-optimization/21293] New: ICE on valid dalej at gcc dot gnu dot org
  2005-04-30  0:17 ` [Bug tree-optimization/21293] " dberlin at gcc dot gnu dot org
@ 2005-04-30  0:46 ` pinskia at gcc dot gnu dot org
  2005-04-30  1:10 ` [Bug tree-optimization/21293] [4.0 Regression] ICE in set_value_handle pinskia at gcc dot gnu dot org
                   ` (12 subsequent siblings)
  14 siblings, 0 replies; 16+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-04-30  0:46 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2005-04-30 00:46 -------
(In reply to comment #1)
> Fold turns
> 
>  D.1157 = &fmcom_D.1134.x_D.1132[0] + -8B;
> into
> 
> D.1157 = &fmcom_D.1134.x_D.1132[-000000001];
> 
> which seems very wrong (we eventually crap out on the overflowed constant)

Now if this was not an overflowed constant, it would be valid.



-- 


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


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

* [Bug tree-optimization/21293] [4.0 Regression] ICE in set_value_handle
  2005-04-29 23:13 [Bug tree-optimization/21293] New: ICE on valid dalej at gcc dot gnu dot org
  2005-04-30  0:17 ` [Bug tree-optimization/21293] " dberlin at gcc dot gnu dot org
  2005-04-30  0:46 ` pinskia at gcc dot gnu dot org
@ 2005-04-30  1:10 ` pinskia at gcc dot gnu dot org
  2005-04-30  1:17 ` pinskia at gcc dot gnu dot org
                   ` (11 subsequent siblings)
  14 siblings, 0 replies; 16+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-04-30  1:10 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2005-04-30 01:10 -------
This works on the mainline but fails on the 4.0.0 branch.
I think this was fixed on the mainline by:
2005-03-14  Zdenek Dvorak  <dvorakz@suse.cz>

        * tree-cfg.c (find_taken_edge_cond_expr): Use zero_p instead of
        integer_zerop.
        * tree-gimple.c (is_gimple_min_invariant): Consider overflowed
        constants invariant.

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
     Ever Confirmed|                            |1
      Known to fail|                            |4.0.0
      Known to work|                            |3.4.0 4.1.0
   Last reconfirmed|0000-00-00 00:00:00         |2005-04-30 01:10:30
               date|                            |
            Summary|ICE on valid                |[4.0 Regression] ICE in
                   |                            |set_value_handle
   Target Milestone|---                         |4.0.1


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


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

* [Bug tree-optimization/21293] [4.0 Regression] ICE in set_value_handle
  2005-04-29 23:13 [Bug tree-optimization/21293] New: ICE on valid dalej at gcc dot gnu dot org
                   ` (2 preceding siblings ...)
  2005-04-30  1:10 ` [Bug tree-optimization/21293] [4.0 Regression] ICE in set_value_handle pinskia at gcc dot gnu dot org
@ 2005-04-30  1:17 ` pinskia at gcc dot gnu dot org
  2005-04-30  1:29 ` pinskia at gcc dot gnu dot org
                   ` (10 subsequent siblings)
  14 siblings, 0 replies; 16+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-04-30  1:17 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2005-04-30 01:17 -------
I just checked and a back porting of that patch fixes the ICE.

I might do the bootstrap/testing if I get some time tomorrow or later this week.

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |rakdver at gcc dot gnu dot
                   |                            |org, pinskia at gcc dot gnu
                   |                            |dot org


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


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

* [Bug tree-optimization/21293] [4.0 Regression] ICE in set_value_handle
  2005-04-29 23:13 [Bug tree-optimization/21293] New: ICE on valid dalej at gcc dot gnu dot org
                   ` (3 preceding siblings ...)
  2005-04-30  1:17 ` pinskia at gcc dot gnu dot org
@ 2005-04-30  1:29 ` pinskia at gcc dot gnu dot org
  2005-04-30  1:56 ` dalej at gcc dot gnu dot org
                   ` (9 subsequent siblings)
  14 siblings, 0 replies; 16+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-04-30  1:29 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2005-04-30 01:29 -------
Reduced even further:
struct {
double x[1];
} g;
void k( double *, double*);
void h(int Tmp8)
{
  int i;
  for(i = 1;i <= Tmp8;i++)
    k(&g.x[ + -1],&g.x[ Tmp8 + -1]);
}

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
   Last reconfirmed|2005-04-30 01:10:30         |2005-04-30 01:29:38
               date|                            |


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


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

* [Bug tree-optimization/21293] [4.0 Regression] ICE in set_value_handle
  2005-04-29 23:13 [Bug tree-optimization/21293] New: ICE on valid dalej at gcc dot gnu dot org
                   ` (4 preceding siblings ...)
  2005-04-30  1:29 ` pinskia at gcc dot gnu dot org
@ 2005-04-30  1:56 ` dalej at gcc dot gnu dot org
  2005-04-30  1:58 ` dberlin at gcc dot gnu dot org
                   ` (8 subsequent siblings)
  14 siblings, 0 replies; 16+ messages in thread
From: dalej at gcc dot gnu dot org @ 2005-04-30  1:56 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From dalej at gcc dot gnu dot org  2005-04-30 01:56 -------
Yes, I figured out that allowing overflowed constants in is_gimple_min_invariant would fix it.  But
that doesn't seem like it should be necessary for correctness.  Zdenek changed it to improve
optimization, not because it broke things.

-- 


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


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

* [Bug tree-optimization/21293] [4.0 Regression] ICE in set_value_handle
  2005-04-29 23:13 [Bug tree-optimization/21293] New: ICE on valid dalej at gcc dot gnu dot org
                   ` (5 preceding siblings ...)
  2005-04-30  1:56 ` dalej at gcc dot gnu dot org
@ 2005-04-30  1:58 ` dberlin at gcc dot gnu dot org
  2005-04-30  2:45 ` dalej at gcc dot gnu dot org
                   ` (7 subsequent siblings)
  14 siblings, 0 replies; 16+ messages in thread
From: dberlin at gcc dot gnu dot org @ 2005-04-30  1:58 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From dberlin at gcc dot gnu dot org  2005-04-30 01:58 -------
This is also what i figured was the patch that fixed it
However, it *is* necessary for correctness because we need to consider constants
to be invariant, or else set_value_handle and friends will break.

We have nothing in a constant to hang a value handle off :)

-- 


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


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

* [Bug tree-optimization/21293] [4.0 Regression] ICE in set_value_handle
  2005-04-29 23:13 [Bug tree-optimization/21293] New: ICE on valid dalej at gcc dot gnu dot org
                   ` (6 preceding siblings ...)
  2005-04-30  1:58 ` dberlin at gcc dot gnu dot org
@ 2005-04-30  2:45 ` dalej at gcc dot gnu dot org
  2005-04-30  3:06 ` dberlin at gcc dot gnu dot org
                   ` (6 subsequent siblings)
  14 siblings, 0 replies; 16+ messages in thread
From: dalej at gcc dot gnu dot org @ 2005-04-30  2:45 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From dalej at gcc dot gnu dot org  2005-04-30 02:45 -------
Certainly.  Presumably the expectation was that overflowed constants would not get here.
But I confess I don't see why not.


-- 


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


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

* [Bug tree-optimization/21293] [4.0 Regression] ICE in set_value_handle
  2005-04-29 23:13 [Bug tree-optimization/21293] New: ICE on valid dalej at gcc dot gnu dot org
                   ` (7 preceding siblings ...)
  2005-04-30  2:45 ` dalej at gcc dot gnu dot org
@ 2005-04-30  3:06 ` dberlin at gcc dot gnu dot org
  2005-05-02 17:15 ` cvs-commit at gcc dot gnu dot org
                   ` (5 subsequent siblings)
  14 siblings, 0 replies; 16+ messages in thread
From: dberlin at gcc dot gnu dot org @ 2005-04-30  3:06 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From dberlin at gcc dot gnu dot org  2005-04-30 03:06 -------
because they are supposed to also be constant, because even though overflowed,
they do not change, ever.  :)

constants are constants are constants are constants.  If it's not a constant, it
shouldn't be a _CST node.
In addition, all _CST nodes should be is_gimple_min_invariant, because they are
a subset of the invariants.

We don't give CST nodes value handles, because their value is always themselves.

This one was not until Zdenek's change. That is a bug, and he fixed it.
The verifier catches it because it checks to make sure that everything it
doesn't give a value handle to is a min_invariant  (as they should be :P)



-- 


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


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

* [Bug tree-optimization/21293] [4.0 Regression] ICE in set_value_handle
  2005-04-29 23:13 [Bug tree-optimization/21293] New: ICE on valid dalej at gcc dot gnu dot org
                   ` (8 preceding siblings ...)
  2005-04-30  3:06 ` dberlin at gcc dot gnu dot org
@ 2005-05-02 17:15 ` cvs-commit at gcc dot gnu dot org
  2005-05-10 16:27 ` pinskia at gcc dot gnu dot org
                   ` (4 subsequent siblings)
  14 siblings, 0 replies; 16+ messages in thread
From: cvs-commit at gcc dot gnu dot org @ 2005-05-02 17:15 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From cvs-commit at gcc dot gnu dot org  2005-05-02 17:15 -------
Subject: Bug 21293

CVSROOT:	/cvs/gcc
Module name:	gcc
Branch: 	apple-local-200502-branch
Changes by:	dalej@gcc.gnu.org	2005-05-02 17:15:15

Modified files:
	gcc            : ChangeLog.apple-ppc tree-cfg.c tree-gimple.c 
	gcc/fortran    : trans-intrinsic.c 

Log message:
	2005-05-02  Dale Johannesen  <dalej@apple.com>
	
	Radar 4102133  (PR 21293, Zdenek's patch)
	* tree-cfg.c (find_taken_edge_cond_expr): Use zero_p instead of
	integer_zerop.
	* tree-gimple.c (is_gimple_min_invariant): Consider overflowed
	constants invariant.
	* fortran/trans-intrinsic.c (gfc_conv_intrinsic_ishft): Convert
	the argument of the shift to the unsigned type.

Patches:
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/ChangeLog.apple-ppc.diff?cvsroot=gcc&only_with_tag=apple-local-200502-branch&r1=1.1.4.57&r2=1.1.4.58
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/tree-cfg.c.diff?cvsroot=gcc&only_with_tag=apple-local-200502-branch&r1=2.149.4.2&r2=2.149.4.3
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/tree-gimple.c.diff?cvsroot=gcc&only_with_tag=apple-local-200502-branch&r1=2.35&r2=2.35.8.1
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/fortran/trans-intrinsic.c.diff?cvsroot=gcc&only_with_tag=apple-local-200502-branch&r1=1.43.6.1&r2=1.43.6.2



-- 


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


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

* [Bug tree-optimization/21293] [4.0 Regression] ICE in set_value_handle
  2005-04-29 23:13 [Bug tree-optimization/21293] New: ICE on valid dalej at gcc dot gnu dot org
                   ` (9 preceding siblings ...)
  2005-05-02 17:15 ` cvs-commit at gcc dot gnu dot org
@ 2005-05-10 16:27 ` pinskia at gcc dot gnu dot org
  2005-05-16  0:29 ` pinskia at gcc dot gnu dot org
                   ` (3 subsequent siblings)
  14 siblings, 0 replies; 16+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-05-10 16:27 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2005-05-10 16:27 -------
*** Bug 21497 has been marked as a duplicate of this bug. ***

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |doko at debian dot org


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


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

* [Bug tree-optimization/21293] [4.0 Regression] ICE in set_value_handle
  2005-04-29 23:13 [Bug tree-optimization/21293] New: ICE on valid dalej at gcc dot gnu dot org
                   ` (10 preceding siblings ...)
  2005-05-10 16:27 ` pinskia at gcc dot gnu dot org
@ 2005-05-16  0:29 ` pinskia at gcc dot gnu dot org
  2005-05-21 16:57 ` cvs-commit at gcc dot gnu dot org
                   ` (2 subsequent siblings)
  14 siblings, 0 replies; 16+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-05-16  0:29 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2005-05-16 00:29 -------
Mine, patch posted.

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
         AssignedTo|unassigned at gcc dot gnu   |pinskia at gcc dot gnu dot
                   |dot org                     |org
                URL|                            |http://gcc.gnu.org/ml/gcc-
                   |                            |patches/2005-
                   |                            |05/msg01485.html
             Status|NEW                         |ASSIGNED
           Keywords|                            |patch


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


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

* [Bug tree-optimization/21293] [4.0 Regression] ICE in set_value_handle
  2005-04-29 23:13 [Bug tree-optimization/21293] New: ICE on valid dalej at gcc dot gnu dot org
                   ` (11 preceding siblings ...)
  2005-05-16  0:29 ` pinskia at gcc dot gnu dot org
@ 2005-05-21 16:57 ` cvs-commit at gcc dot gnu dot org
  2005-05-21 16:58 ` pinskia at gcc dot gnu dot org
  2005-05-21 16:59 ` cvs-commit at gcc dot gnu dot org
  14 siblings, 0 replies; 16+ messages in thread
From: cvs-commit at gcc dot gnu dot org @ 2005-05-21 16:57 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From cvs-commit at gcc dot gnu dot org  2005-05-21 16:57 -------
Subject: Bug 21293

CVSROOT:	/cvs/gcc
Module name:	gcc
Changes by:	pinskia@gcc.gnu.org	2005-05-21 16:57:25

Modified files:
	gcc/testsuite  : ChangeLog 
Added files:
	gcc/testsuite/gcc.c-torture/compile: pr21293.c 
	gcc/testsuite/gcc.c-torture/execute: pr21331.c 

Log message:
	2004-05-21  Andrew Pinski  <pinskia@physics.uc.edu>
	
	PR middle-end/21331
	PR tree-opt/21293
	* gcc.c-torture/compile/pr21293.c: New test.
	* gcc.c-torture/execute/pr21331.c: New test.

Patches:
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/ChangeLog.diff?cvsroot=gcc&r1=1.5504&r2=1.5505
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/gcc.c-torture/compile/pr21293.c.diff?cvsroot=gcc&r1=NONE&r2=1.1
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/gcc.c-torture/execute/pr21331.c.diff?cvsroot=gcc&r1=NONE&r2=1.1



-- 


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


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

* [Bug tree-optimization/21293] [4.0 Regression] ICE in set_value_handle
  2005-04-29 23:13 [Bug tree-optimization/21293] New: ICE on valid dalej at gcc dot gnu dot org
                   ` (12 preceding siblings ...)
  2005-05-21 16:57 ` cvs-commit at gcc dot gnu dot org
@ 2005-05-21 16:58 ` pinskia at gcc dot gnu dot org
  2005-05-21 16:59 ` cvs-commit at gcc dot gnu dot org
  14 siblings, 0 replies; 16+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-05-21 16:58 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2005-05-21 16:58 -------
Fixed.

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


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


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

* [Bug tree-optimization/21293] [4.0 Regression] ICE in set_value_handle
  2005-04-29 23:13 [Bug tree-optimization/21293] New: ICE on valid dalej at gcc dot gnu dot org
                   ` (13 preceding siblings ...)
  2005-05-21 16:58 ` pinskia at gcc dot gnu dot org
@ 2005-05-21 16:59 ` cvs-commit at gcc dot gnu dot org
  14 siblings, 0 replies; 16+ messages in thread
From: cvs-commit at gcc dot gnu dot org @ 2005-05-21 16:59 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From cvs-commit at gcc dot gnu dot org  2005-05-21 16:59 -------
Subject: Bug 21293

CVSROOT:	/cvs/gcc
Module name:	gcc
Branch: 	gcc-4_0-branch
Changes by:	pinskia@gcc.gnu.org	2005-05-21 16:58:46

Modified files:
	gcc            : ChangeLog tree-cfg.c tree-gimple.c 
	gcc/fortran    : ChangeLog trans-intrinsic.c 
	gcc/testsuite  : ChangeLog 
Added files:
	gcc/testsuite/gcc.c-torture/compile: pr21293.c 
	gcc/testsuite/gcc.c-torture/execute: pr21331.c 

Log message:
	2005-05-21  Andrew Pinski
	
	Backport from the mainline:
	2005-03-14  Zdenek Dvorak  <dvorakz@suse.cz>
	* fortran/trans-intrinsic.c (gfc_conv_intrinsic_ishft): Convert
	the argument of the shift to the unsigned type.
	
	2005-05-21  Andrew Pinski  <pinskia@physics.uc.edu>
	
	PR middle-end/21331
	PR tree-opt/21293
	Backport from the mainline:
	2005-03-14  Zdenek Dvorak  <dvorakz@suse.cz>
	* tree-cfg.c (find_taken_edge_cond_expr): Use zero_p instead of
	integer_zerop.
	* tree-gimple.c (is_gimple_min_invariant): Consider overflowed
	constants invariant.
	2004-05-21  Andrew Pinski  <pinskia@physics.uc.edu>
	
	PR middle-end/21331
	PR tree-opt/21293
	* gcc.c-torture/compile/pr21293.c: New test.
	* gcc.c-torture/execute/pr21331.c: New test.

Patches:
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/ChangeLog.diff?cvsroot=gcc&only_with_tag=gcc-4_0-branch&r1=2.7592.2.256&r2=2.7592.2.257
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/tree-cfg.c.diff?cvsroot=gcc&only_with_tag=gcc-4_0-branch&r1=2.151&r2=2.151.2.1
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/tree-gimple.c.diff?cvsroot=gcc&only_with_tag=gcc-4_0-branch&r1=2.35&r2=2.35.12.1
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/fortran/ChangeLog.diff?cvsroot=gcc&only_with_tag=gcc-4_0-branch&r1=1.335.2.53&r2=1.335.2.54
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/fortran/trans-intrinsic.c.diff?cvsroot=gcc&only_with_tag=gcc-4_0-branch&r1=1.43.10.4&r2=1.43.10.5
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/ChangeLog.diff?cvsroot=gcc&only_with_tag=gcc-4_0-branch&r1=1.5084.2.191&r2=1.5084.2.192
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/gcc.c-torture/compile/pr21293.c.diff?cvsroot=gcc&only_with_tag=gcc-4_0-branch&r1=NONE&r2=1.1.2.1
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/gcc.c-torture/execute/pr21331.c.diff?cvsroot=gcc&only_with_tag=gcc-4_0-branch&r1=NONE&r2=1.1.2.1



-- 


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


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

end of thread, other threads:[~2005-05-21 16:59 UTC | newest]

Thread overview: 16+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-04-29 23:13 [Bug tree-optimization/21293] New: ICE on valid dalej at gcc dot gnu dot org
2005-04-30  0:17 ` [Bug tree-optimization/21293] " dberlin at gcc dot gnu dot org
2005-04-30  0:46 ` pinskia at gcc dot gnu dot org
2005-04-30  1:10 ` [Bug tree-optimization/21293] [4.0 Regression] ICE in set_value_handle pinskia at gcc dot gnu dot org
2005-04-30  1:17 ` pinskia at gcc dot gnu dot org
2005-04-30  1:29 ` pinskia at gcc dot gnu dot org
2005-04-30  1:56 ` dalej at gcc dot gnu dot org
2005-04-30  1:58 ` dberlin at gcc dot gnu dot org
2005-04-30  2:45 ` dalej at gcc dot gnu dot org
2005-04-30  3:06 ` dberlin at gcc dot gnu dot org
2005-05-02 17:15 ` cvs-commit at gcc dot gnu dot org
2005-05-10 16:27 ` pinskia at gcc dot gnu dot org
2005-05-16  0:29 ` pinskia at gcc dot gnu dot org
2005-05-21 16:57 ` cvs-commit at gcc dot gnu dot org
2005-05-21 16:58 ` pinskia at gcc dot gnu dot org
2005-05-21 16:59 ` 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).