* [Bug optimization/14187] [tree-ssa] restricted pointers should not alias
2004-02-18 8:20 [Bug optimization/14187] New: [tree-ssa] restricted pointers should not alias dann at godzilla dot ics dot uci dot edu
@ 2004-02-18 11:04 ` falk at debian dot org
2004-02-18 13:06 ` [Bug optimization/14187] [tree-ssa] restricted pointers should not alias on the tree level pinskia at gcc dot gnu dot org
` (4 subsequent siblings)
5 siblings, 0 replies; 18+ messages in thread
From: falk at debian dot org @ 2004-02-18 11:04 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From falk at debian dot org 2004-02-18 11:04 -------
Works for me with GNU C version 3.5-tree-ssa 20040217 (merged
20040211) (alphaev68-unknown-linux-gnu):
0000000000000000 <bar0>:
0: 01 00 3f 20 lda t0,1
4: 00 00 31 b0 stl t0,0(a1)
8: 00 00 30 b0 stl t0,0(a0)
c: 01 80 fa 6b ret
Which version and target are you seeing this problem for?
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=14187
^ permalink raw reply [flat|nested] 18+ messages in thread
* [Bug optimization/14187] [tree-ssa] restricted pointers should not alias on the tree level
2004-02-18 8:20 [Bug optimization/14187] New: [tree-ssa] restricted pointers should not alias dann at godzilla dot ics dot uci dot edu
2004-02-18 11:04 ` [Bug optimization/14187] " falk at debian dot org
@ 2004-02-18 13:06 ` pinskia at gcc dot gnu dot org
2004-02-18 13:43 ` dnovillo at gcc dot gnu dot org
` (3 subsequent siblings)
5 siblings, 0 replies; 18+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-02-18 13:06 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From pinskia at gcc dot gnu dot org 2004-02-18 13:06 -------
Confirmed.
--
What |Removed |Added
----------------------------------------------------------------------------
Severity|normal |enhancement
Status|UNCONFIRMED |NEW
Ever Confirmed| |1
Keywords| |pessimizes-code
Last reconfirmed|0000-00-00 00:00:00 |2004-02-18 13:06:02
date| |
Summary|[tree-ssa] restricted |[tree-ssa] restricted
|pointers should not alias |pointers should not alias on
| |the tree level
Target Milestone|--- |tree-ssa
Version|unknown |tree-ssa
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=14187
^ permalink raw reply [flat|nested] 18+ messages in thread
* [Bug optimization/14187] [tree-ssa] restricted pointers should not alias on the tree level
2004-02-18 8:20 [Bug optimization/14187] New: [tree-ssa] restricted pointers should not alias dann at godzilla dot ics dot uci dot edu
2004-02-18 11:04 ` [Bug optimization/14187] " falk at debian dot org
2004-02-18 13:06 ` [Bug optimization/14187] [tree-ssa] restricted pointers should not alias on the tree level pinskia at gcc dot gnu dot org
@ 2004-02-18 13:43 ` dnovillo at gcc dot gnu dot org
2004-03-12 17:15 ` dann at godzilla dot ics dot uci dot edu
` (2 subsequent siblings)
5 siblings, 0 replies; 18+ messages in thread
From: dnovillo at gcc dot gnu dot org @ 2004-02-18 13:43 UTC (permalink / raw)
To: gcc-bugs
--
What |Removed |Added
----------------------------------------------------------------------------
AssignedTo|unassigned at gcc dot gnu |dnovillo at gcc dot gnu dot
|dot org |org
Status|NEW |ASSIGNED
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=14187
^ permalink raw reply [flat|nested] 18+ messages in thread
* [Bug optimization/14187] [tree-ssa] restricted pointers should not alias on the tree level
2004-02-18 8:20 [Bug optimization/14187] New: [tree-ssa] restricted pointers should not alias dann at godzilla dot ics dot uci dot edu
` (2 preceding siblings ...)
2004-02-18 13:43 ` dnovillo at gcc dot gnu dot org
@ 2004-03-12 17:15 ` dann at godzilla dot ics dot uci dot edu
2004-05-24 16:44 ` [Bug tree-optimization/14187] " pinskia at gcc dot gnu dot org
2004-07-02 0:19 ` pinskia at gcc dot gnu dot org
5 siblings, 0 replies; 18+ messages in thread
From: dann at godzilla dot ics dot uci dot edu @ 2004-03-12 17:15 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From dann at godzilla dot ics dot uci dot edu 2004-03-12 17:15 -------
Interestingly the following code is optimized:
#include <stdlib.h>
extern int foo (int * , int *);
void bar1 (void)
{
int * arr1 = malloc (12);
int * arr2 = malloc (12);
arr1[0] = 1;
arr2[0] = 1;
if (arr1[0] != 1)
link_error ();
foo (arr1, arr2);
}
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=14187
^ permalink raw reply [flat|nested] 18+ messages in thread
* [Bug tree-optimization/14187] [tree-ssa] restricted pointers should not alias on the tree level
2004-02-18 8:20 [Bug optimization/14187] New: [tree-ssa] restricted pointers should not alias dann at godzilla dot ics dot uci dot edu
` (3 preceding siblings ...)
2004-03-12 17:15 ` dann at godzilla dot ics dot uci dot edu
@ 2004-05-24 16:44 ` pinskia at gcc dot gnu dot org
2004-07-02 0:19 ` pinskia at gcc dot gnu dot org
5 siblings, 0 replies; 18+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-05-24 16:44 UTC (permalink / raw)
To: gcc-bugs
--
What |Removed |Added
----------------------------------------------------------------------------
Target Milestone|3.5.0 |---
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=14187
^ permalink raw reply [flat|nested] 18+ messages in thread
* [Bug tree-optimization/14187] [tree-ssa] restricted pointers should not alias on the tree level
2004-02-18 8:20 [Bug optimization/14187] New: [tree-ssa] restricted pointers should not alias dann at godzilla dot ics dot uci dot edu
` (4 preceding siblings ...)
2004-05-24 16:44 ` [Bug tree-optimization/14187] " pinskia at gcc dot gnu dot org
@ 2004-07-02 0:19 ` pinskia at gcc dot gnu dot org
5 siblings, 0 replies; 18+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-07-02 0:19 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From pinskia at gcc dot gnu dot org 2004-07-02 00:19 -------
Patch here: <http://gcc.gnu.org/ml/gcc-patches/2004-07/msg00116.html>.
--
What |Removed |Added
----------------------------------------------------------------------------
Keywords| |patch
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=14187
^ permalink raw reply [flat|nested] 18+ messages in thread
* [Bug tree-optimization/14187] [tree-ssa] restricted pointers should not alias on the tree level
[not found] <bug-14187-1008@http.gcc.gnu.org/bugzilla/>
@ 2006-03-10 15:34 ` dnovillo at gcc dot gnu dot org
2007-06-11 0:48 ` pinskia at gcc dot gnu dot org
` (9 subsequent siblings)
10 siblings, 0 replies; 18+ messages in thread
From: dnovillo at gcc dot gnu dot org @ 2006-03-10 15:34 UTC (permalink / raw)
To: gcc-bugs
--
dnovillo at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |dnovillo at gcc dot gnu dot
| |org
AssignedTo|dnovillo at gcc dot gnu dot |unassigned at gcc dot gnu
|org |dot org
Status|ASSIGNED |NEW
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=14187
^ permalink raw reply [flat|nested] 18+ messages in thread
* [Bug tree-optimization/14187] [tree-ssa] restricted pointers should not alias on the tree level
[not found] <bug-14187-1008@http.gcc.gnu.org/bugzilla/>
2006-03-10 15:34 ` dnovillo at gcc dot gnu dot org
@ 2007-06-11 0:48 ` pinskia at gcc dot gnu dot org
2008-10-01 14:29 ` rguenth at gcc dot gnu dot org
` (8 subsequent siblings)
10 siblings, 0 replies; 18+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2007-06-11 0:48 UTC (permalink / raw)
To: gcc-bugs
------- Comment #5 from pinskia at gcc dot gnu dot org 2007-06-11 00:48 -------
(In reply to comment #3)
> Interestingly the following code is optimized:
That is because we create a new may_alias variable for malloc to point to so we
know that it cannot alias anything.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=14187
^ permalink raw reply [flat|nested] 18+ messages in thread
* [Bug tree-optimization/14187] [tree-ssa] restricted pointers should not alias on the tree level
[not found] <bug-14187-1008@http.gcc.gnu.org/bugzilla/>
2006-03-10 15:34 ` dnovillo at gcc dot gnu dot org
2007-06-11 0:48 ` pinskia at gcc dot gnu dot org
@ 2008-10-01 14:29 ` rguenth at gcc dot gnu dot org
2008-10-01 14:31 ` rguenth at gcc dot gnu dot org
` (7 subsequent siblings)
10 siblings, 0 replies; 18+ messages in thread
From: rguenth at gcc dot gnu dot org @ 2008-10-01 14:29 UTC (permalink / raw)
To: gcc-bugs
------- Comment #6 from rguenth at gcc dot gnu dot org 2008-10-01 14:28 -------
*** Bug 14192 has been marked as a duplicate of this bug. ***
--
rguenth at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |hoogerbrugge at hotmail dot
| |com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=14187
^ permalink raw reply [flat|nested] 18+ messages in thread
* [Bug tree-optimization/14187] [tree-ssa] restricted pointers should not alias on the tree level
[not found] <bug-14187-1008@http.gcc.gnu.org/bugzilla/>
` (2 preceding siblings ...)
2008-10-01 14:29 ` rguenth at gcc dot gnu dot org
@ 2008-10-01 14:31 ` rguenth at gcc dot gnu dot org
2008-10-01 14:33 ` rguenth at gcc dot gnu dot org
` (6 subsequent siblings)
10 siblings, 0 replies; 18+ messages in thread
From: rguenth at gcc dot gnu dot org @ 2008-10-01 14:31 UTC (permalink / raw)
To: gcc-bugs
------- Comment #7 from rguenth at gcc dot gnu dot org 2008-10-01 14:30 -------
Note that C restrict semantics make it necessary to properly track what
pointer is based on what other pointer. For this we miss both annotations
and a (simple) propagator that propagates this information, maybe as part
of PTA analysis.
Note that the current implementation has both missed-optimization and latent
wrong-code issues.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=14187
^ permalink raw reply [flat|nested] 18+ messages in thread
* [Bug tree-optimization/14187] [tree-ssa] restricted pointers should not alias on the tree level
[not found] <bug-14187-1008@http.gcc.gnu.org/bugzilla/>
` (3 preceding siblings ...)
2008-10-01 14:31 ` rguenth at gcc dot gnu dot org
@ 2008-10-01 14:33 ` rguenth at gcc dot gnu dot org
2008-10-01 14:35 ` rguenth at gcc dot gnu dot org
` (5 subsequent siblings)
10 siblings, 0 replies; 18+ messages in thread
From: rguenth at gcc dot gnu dot org @ 2008-10-01 14:33 UTC (permalink / raw)
To: gcc-bugs
------- Comment #8 from rguenth at gcc dot gnu dot org 2008-10-01 14:32 -------
*** Bug 16306 has been marked as a duplicate of this bug. ***
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=14187
^ permalink raw reply [flat|nested] 18+ messages in thread
* [Bug tree-optimization/14187] [tree-ssa] restricted pointers should not alias on the tree level
[not found] <bug-14187-1008@http.gcc.gnu.org/bugzilla/>
` (4 preceding siblings ...)
2008-10-01 14:33 ` rguenth at gcc dot gnu dot org
@ 2008-10-01 14:35 ` rguenth at gcc dot gnu dot org
2008-10-01 14:35 ` rguenth at gcc dot gnu dot org
` (4 subsequent siblings)
10 siblings, 0 replies; 18+ messages in thread
From: rguenth at gcc dot gnu dot org @ 2008-10-01 14:35 UTC (permalink / raw)
To: gcc-bugs
------- Comment #10 from rguenth at gcc dot gnu dot org 2008-10-01 14:34 -------
*** Bug 28030 has been marked as a duplicate of this bug. ***
--
rguenth at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |gcc at pdoerfler dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=14187
^ permalink raw reply [flat|nested] 18+ messages in thread
* [Bug tree-optimization/14187] [tree-ssa] restricted pointers should not alias on the tree level
[not found] <bug-14187-1008@http.gcc.gnu.org/bugzilla/>
` (5 preceding siblings ...)
2008-10-01 14:35 ` rguenth at gcc dot gnu dot org
@ 2008-10-01 14:35 ` rguenth at gcc dot gnu dot org
2008-10-01 14:36 ` rguenth at gcc dot gnu dot org
` (3 subsequent siblings)
10 siblings, 0 replies; 18+ messages in thread
From: rguenth at gcc dot gnu dot org @ 2008-10-01 14:35 UTC (permalink / raw)
To: gcc-bugs
------- Comment #9 from rguenth at gcc dot gnu dot org 2008-10-01 14:33 -------
*** Bug 16913 has been marked as a duplicate of this bug. ***
--
rguenth at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |martin at mpa-garching dot
| |mpg dot de
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=14187
^ permalink raw reply [flat|nested] 18+ messages in thread
* [Bug tree-optimization/14187] [tree-ssa] restricted pointers should not alias on the tree level
[not found] <bug-14187-1008@http.gcc.gnu.org/bugzilla/>
` (6 preceding siblings ...)
2008-10-01 14:35 ` rguenth at gcc dot gnu dot org
@ 2008-10-01 14:36 ` rguenth at gcc dot gnu dot org
2008-10-01 14:37 ` rguenth at gcc dot gnu dot org
` (2 subsequent siblings)
10 siblings, 0 replies; 18+ messages in thread
From: rguenth at gcc dot gnu dot org @ 2008-10-01 14:36 UTC (permalink / raw)
To: gcc-bugs
------- Comment #11 from rguenth at gcc dot gnu dot org 2008-10-01 14:35 -------
*** Bug 29239 has been marked as a duplicate of this bug. ***
--
rguenth at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |acahalan at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=14187
^ permalink raw reply [flat|nested] 18+ messages in thread
* [Bug tree-optimization/14187] [tree-ssa] restricted pointers should not alias on the tree level
[not found] <bug-14187-1008@http.gcc.gnu.org/bugzilla/>
` (7 preceding siblings ...)
2008-10-01 14:36 ` rguenth at gcc dot gnu dot org
@ 2008-10-01 14:37 ` rguenth at gcc dot gnu dot org
2008-10-01 14:39 ` rguenth at gcc dot gnu dot org
2008-10-01 14:41 ` rguenth at gcc dot gnu dot org
10 siblings, 0 replies; 18+ messages in thread
From: rguenth at gcc dot gnu dot org @ 2008-10-01 14:37 UTC (permalink / raw)
To: gcc-bugs
------- Comment #12 from rguenth at gcc dot gnu dot org 2008-10-01 14:35 -------
*** Bug 32273 has been marked as a duplicate of this bug. ***
--
rguenth at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |tomash dot brechko at gmail
| |dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=14187
^ permalink raw reply [flat|nested] 18+ messages in thread
* [Bug tree-optimization/14187] [tree-ssa] restricted pointers should not alias on the tree level
[not found] <bug-14187-1008@http.gcc.gnu.org/bugzilla/>
` (8 preceding siblings ...)
2008-10-01 14:37 ` rguenth at gcc dot gnu dot org
@ 2008-10-01 14:39 ` rguenth at gcc dot gnu dot org
2008-10-01 14:41 ` rguenth at gcc dot gnu dot org
10 siblings, 0 replies; 18+ messages in thread
From: rguenth at gcc dot gnu dot org @ 2008-10-01 14:39 UTC (permalink / raw)
To: gcc-bugs
------- Comment #13 from rguenth at gcc dot gnu dot org 2008-10-01 14:38 -------
*** Bug 33272 has been marked as a duplicate of this bug. ***
--
rguenth at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |mmitchel at gcc dot gnu dot
| |org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=14187
^ permalink raw reply [flat|nested] 18+ messages in thread
* [Bug tree-optimization/14187] [tree-ssa] restricted pointers should not alias on the tree level
[not found] <bug-14187-1008@http.gcc.gnu.org/bugzilla/>
` (9 preceding siblings ...)
2008-10-01 14:39 ` rguenth at gcc dot gnu dot org
@ 2008-10-01 14:41 ` rguenth at gcc dot gnu dot org
10 siblings, 0 replies; 18+ messages in thread
From: rguenth at gcc dot gnu dot org @ 2008-10-01 14:41 UTC (permalink / raw)
To: gcc-bugs
------- Comment #14 from rguenth at gcc dot gnu dot org 2008-10-01 14:40 -------
*** Bug 33705 has been marked as a duplicate of this bug. ***
--
rguenth at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |astrange at ithinksw dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=14187
^ permalink raw reply [flat|nested] 18+ messages in thread