[Bug tree-optimization/28807] [4.2 Regression] wrong code with may_alias and structs

2006-08-25 Thread pinskia at gcc dot gnu dot org
--- Comment #9 from pinskia at gcc dot gnu dot org 2006-08-25 07:14 --- Fixed. --- Comment #10 from pinskia at gcc dot gnu dot org 2006-08-25 07:14 --- Subject: Bug 28807 Author: pinskia Date: Fri Aug 25 07:13:48 2006 New Revision: 116393 URL: http://gcc.gnu.org/viewcvs?roo

[Bug tree-optimization/28807] [4.2 Regression] wrong code with may_alias and structs

2006-08-25 Thread pinskia at gcc dot gnu dot org
--- Comment #9 from pinskia at gcc dot gnu dot org 2006-08-25 07:14 --- Fixed. -- pinskia at gcc dot gnu dot org changed: What|Removed |Added Status|ASSIGNED

[Bug tree-optimization/28807] [4.2 Regression] wrong code with may_alias and structs

2006-08-24 Thread patchapp at dberlin dot org
--- Comment #8 from patchapp at dberlin dot org 2006-08-24 15:18 --- Subject: Bug number PR 28807 A patch for this bug has been added to the patch tracker. The mailing list url for the patch is http://gcc.gnu.org/ml/gcc-patches/2006-08/msg00878.html -- http://gcc.gnu.org/bugzilla/s

[Bug tree-optimization/28807] [4.2 Regression] wrong code with may_alias and structs

2006-08-24 Thread pinskia at gcc dot gnu dot org
--- Comment #7 from pinskia at gcc dot gnu dot org 2006-08-24 15:16 --- Mine, all mine. -- pinskia at gcc dot gnu dot org changed: What|Removed |Added AssignedTo|

[Bug tree-optimization/28807] [4.2 Regression] wrong code with may_alias and structs

2006-08-23 Thread pinskia at gcc dot gnu dot org
--- Comment #6 from pinskia at gcc dot gnu dot org 2006-08-23 08:11 --- This patch fixes the problem without causing the missed optimization to happen:Index: tree-ssa-operands.c === --- tree-ssa-operands.c (revision 116342)

[Bug tree-optimization/28807] [4.2 Regression] wrong code with may_alias and structs

2006-08-23 Thread pinskia at gcc dot gnu dot org
--- Comment #5 from pinskia at gcc dot gnu dot org 2006-08-23 08:06 --- (In reply to comment #4) > This is a hard nut to crack, my *guess* is that if you just check the > alias set of the type of the access, we are going to end up claiming any > access to a structure containing a char va

[Bug tree-optimization/28807] [4.2 Regression] wrong code with may_alias and structs

2006-08-22 Thread dberlin at dberlin dot org
--- Comment #4 from dberlin at gcc dot gnu dot org 2006-08-23 01:40 --- Subject: Re: [4.2 Regression] wrong code with may_alias and structs pinskia at gcc dot gnu dot org wrote: > --- Comment #3 from pinskia at gcc dot gnu dot org 2006-08-22 21:50 > --- > Created an attachme

[Bug tree-optimization/28807] [4.2 Regression] wrong code with may_alias and structs

2006-08-22 Thread pinskia at gcc dot gnu dot org
--- Comment #3 from pinskia at gcc dot gnu dot org 2006-08-22 21:50 --- Created an attachment (id=12116) --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=12116&action=view) aliasing dump aliasing dump for the newest testcase. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28807

[Bug tree-optimization/28807] [4.2 Regression] wrong code with may_alias and structs

2006-08-22 Thread pinskia at gcc dot gnu dot org
--- Comment #2 from pinskia at gcc dot gnu dot org 2006-08-22 21:49 --- Better testcase which shows the problem before SRA: struct S { short x; }; typedef struct S __attribute__((__may_alias__)) test; int f() { int a=10; test *p=(test *)&a; p->x = 1; return a; } int main() {

[Bug tree-optimization/28807] [4.2 Regression] wrong code with may_alias and structs

2006-08-22 Thread dberlin at gcc dot gnu dot org
--- Comment #1 from dberlin at gcc dot gnu dot org 2006-08-22 18:18 --- Add an alias dump so we can see what things think of all this? -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28807

[Bug tree-optimization/28807] [4.2 Regression] wrong code with may_alias and structs

2006-08-22 Thread pinskia at gcc dot gnu dot org
-- pinskia at gcc dot gnu dot org changed: What|Removed |Added Known to fail||4.2.0 Known to work||4.1.2 Target