[Bug tree-optimization/22486] Upcasts are not folded away

2005-07-26 Thread rguenth at gcc dot gnu dot org
--- Additional Comments From rguenth at gcc dot gnu dot org 2005-07-26 07:37 --- In principle this is fixed. Of course we either need a tree-combiner or forwprop on steroids to catch all cases. Which would make this bug a duplicate. Closed Fixed. -- What|Removed

[Bug tree-optimization/22486] Upcasts are not folded away

2005-07-26 Thread cvs-commit at gcc dot gnu dot org
--- Additional Comments From cvs-commit at gcc dot gnu dot org 2005-07-26 07:35 --- Subject: Bug 22486 CVSROOT:/cvs/gcc Module name:gcc Changes by: [EMAIL PROTECTED] 2005-07-26 07:34:58 Modified files: gcc: ChangeLog fold-const.c gcc/t

[Bug tree-optimization/22486] Upcasts are not folded away

2005-07-15 Thread rguenth at gcc dot gnu dot org
--- Additional Comments From rguenth at gcc dot gnu dot org 2005-07-15 09:39 --- Patch ready. The C++ testcase presented here needs the tree-combiner to do the folding though. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=22486

[Bug tree-optimization/22486] Upcasts are not folded away

2005-07-14 Thread rguenth at gcc dot gnu dot org
--- Additional Comments From rguenth at gcc dot gnu dot org 2005-07-14 16:58 --- I'm looking at this myself and have a patch that helps for the cases I care. -- What|Removed |Added --

[Bug tree-optimization/22486] Upcasts are not folded away

2005-07-14 Thread pinskia at gcc dot gnu dot org
-- What|Removed |Added Severity|normal |enhancement http://gcc.gnu.org/bugzilla/show_bug.cgi?id=22486

[Bug tree-optimization/22486] Upcasts are not folded away

2005-07-14 Thread rguenth at gcc dot gnu dot org
--- Additional Comments From rguenth at gcc dot gnu dot org 2005-07-14 13:26 --- Or even simple C: typedef struct { int i; } Foo; Foo foo; Foo *bar(void) { return (Foo *)&foo.i; } here, in bar() fold (or whoever) should fold (Foo *)&foo.i to &foo. Because i is at offset zero and foo is