From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 13712 invoked by alias); 2 Jun 2004 04:33:18 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Received: (qmail 13697 invoked by uid 48); 2 Jun 2004 04:33:17 -0000 Date: Wed, 02 Jun 2004 04:33:00 -0000 Message-ID: <20040602043317.13696.qmail@sourceware.org> From: "pinskia at gcc dot gnu dot org" To: gcc-bugs@gcc.gnu.org In-Reply-To: <20040325231958.14736.dann@godzilla.ics.uci.edu> References: <20040325231958.14736.dann@godzilla.ics.uci.edu> Reply-To: gcc-bugzilla@gcc.gnu.org Subject: [Bug tree-optimization/14736] [tree-ssa] code quality regression X-Bugzilla-Reason: CC X-SW-Source: 2004-06/txt/msg00159.txt.bz2 List-Id: ------- Additional Comments From pinskia at gcc dot gnu dot org 2004-06-02 04:33 ------- Here is the patch: Index: tree-ssa.c =============================================================== ==== RCS file: /cvs/gcc/gcc/gcc/tree-ssa.c,v retrieving revision 2.3 diff -u -p -r2.3 tree-ssa.c --- tree-ssa.c 14 May 2004 02:29:23 -0000 2.3 +++ tree-ssa.c 2 Jun 2004 04:32:50 -0000 @@ -555,7 +555,8 @@ tree_ssa_useless_type_conversion_1 (tree so strip conversions that just switch between them. */ else if (POINTER_TYPE_P (inner_type) && POINTER_TYPE_P (outer_type) - && lang_hooks.types_compatible_p (inner_type, outer_type)) + && lang_hooks.types_compatible_p (TREE_TYPE (inner_type), + TREE_TYPE (outer_type))) return true; /* If both the inner and outer types are integral types, then the -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=14736