From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 30513 invoked by alias); 27 Aug 2004 20:55:55 -0000 Mailing-List: contact java-prs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: java-prs-owner@gcc.gnu.org Received: (qmail 30491 invoked by uid 48); 27 Aug 2004 20:55:55 -0000 Date: Fri, 27 Aug 2004 20:55:00 -0000 Message-ID: <20040827205555.30490.qmail@sourceware.org> From: "tromey at gcc dot gnu dot org" To: java-prs@gcc.gnu.org In-Reply-To: <20040518204228.15525.tromey@gcc.gnu.org> References: <20040518204228.15525.tromey@gcc.gnu.org> Reply-To: gcc-bugzilla@gcc.gnu.org Subject: [Bug java/15525] suggestion to enable cast elimination X-Bugzilla-Reason: CC X-SW-Source: 2004-q3/txt/msg00344.txt.bz2 List-Id: ------- Additional Comments From tromey at gcc dot gnu dot org 2004-08-27 20:55 ------- Another approach is not to call _Jv_CheckCast but to instead turn that into explicit calls to _Jv_IsInstanceOf and a call to something to throw the correct exception. Then if we mark _Jv_IsInstanceOf as "pure", the optimizers should be able to eliminate the redundant call. I have a patch to do this somewhere, I'll upload it later. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=15525