[Bug middle-end/30636] [4.3 Regression] incorrect array bounds warning on multi-dimensional arrays

2007-01-29 Thread pinskia at gcc dot gnu dot org
-- pinskia at gcc dot gnu dot org changed: What|Removed |Added Component|c |middle-end GCC host triplet|powerpc-linux | GCC targ

[Bug middle-end/30636] [4.3 Regression] incorrect array bounds warning on multi-dimensional arrays

2007-01-30 Thread rguenth at gcc dot gnu dot org
--- Comment #2 from rguenth at gcc dot gnu dot org 2007-01-30 09:55 --- Confirmed. -- rguenth at gcc dot gnu dot org changed: What|Removed |Added CC|

[Bug middle-end/30636] [4.3 Regression] incorrect array bounds warning on multi-dimensional arrays

2007-01-30 Thread mueller at gcc dot gnu dot org
--- Comment #3 from mueller at gcc dot gnu dot org 2007-01-30 13:09 --- I'm not flagging this as diagnostic for now, because it is imho still a bug in ccp that could cause other side-effects (aliasing analysis?). if it is clear that the only problem this causes is the warning then I'll

[Bug middle-end/30636] [4.3 Regression] incorrect array bounds warning on multi-dimensional arrays

2007-01-30 Thread pinskia at gcc dot gnu dot org
--- Comment #4 from pinskia at gcc dot gnu dot org 2007-01-30 19:24 --- (In reply to comment #3) > I'm not flagging this as diagnostic for now, because it is imho still a bug in > ccp that could cause other side-effects (aliasing analysis?). The diagnostic part is the only part which is

[Bug middle-end/30636] [4.3 Regression] incorrect array bounds warning on multi-dimensional arrays

2007-01-31 Thread rguenth at gcc dot gnu dot org
--- Comment #5 from rguenth at gcc dot gnu dot org 2007-01-31 13:38 --- Only C++ warns for the testcase, we get C to warn as well if we remove /* For &x[y], return x+y */ if (TREE_CODE (arg) == ARRAY_REF) { tree op0 = TREE_OPERAND (arg, 0); if (!c

[Bug middle-end/30636] [4.3 Regression] incorrect array bounds warning on multi-dimensional arrays

2007-01-31 Thread mueller at gcc dot gnu dot org
-- mueller at gcc dot gnu dot org changed: What|Removed |Added AssignedTo|unassigned at gcc dot gnu |mueller at gcc dot gnu dot |dot org

[Bug middle-end/30636] [4.3 Regression] incorrect array bounds warning on multi-dimensional arrays

2007-01-31 Thread rguenth at gcc dot gnu dot org
--- Comment #6 from rguenth at gcc dot gnu dot org 2007-01-31 13:44 --- Note that replacing D.2440_4 = base_1 + 2048B; with D.2440_4 = &emergency_buffer[0][2048]; as done by ccp1 is not valid as the new index (2048) is outside of the value range of TYPE_DOMAIN there. This may ev

[Bug middle-end/30636] [4.3 Regression] incorrect array bounds warning on multi-dimensional arrays

2007-01-31 Thread rguenth at gcc dot gnu dot org
--- Comment #7 from rguenth at gcc dot gnu dot org 2007-01-31 13:55 --- Actually fold-const.c:try_move_mult_to_index does this transformation. I'll fix it. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=30636

[Bug middle-end/30636] [4.3 Regression] incorrect array bounds warning on multi-dimensional arrays

2007-02-01 Thread mueller at gcc dot gnu dot org
--- Comment #8 from mueller at gcc dot gnu dot org 2007-02-01 13:27 --- removing diagnostic keyword again. This is latent wrong-code. -- mueller at gcc dot gnu dot org changed: What|Removed |Added --

[Bug middle-end/30636] [4.3 Regression] incorrect array bounds warning on multi-dimensional arrays

2007-02-04 Thread rguenth at gcc dot gnu dot org
--- Comment #9 from rguenth at gcc dot gnu dot org 2007-02-04 15:15 --- Subject: Bug 30636 Author: rguenth Date: Sun Feb 4 15:15:38 2007 New Revision: 121575 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=121575 Log: 2007-02-04 Richard Guenther <[EMAIL PROTECTED]> PR

[Bug middle-end/30636] [4.3 Regression] incorrect array bounds warning on multi-dimensional arrays

2007-02-04 Thread rguenth at gcc dot gnu dot org
--- Comment #10 from rguenth at gcc dot gnu dot org 2007-02-04 15:16 --- Fixed. -- rguenth at gcc dot gnu dot org changed: What|Removed |Added Status|ASSIGNE