From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 10015 invoked by alias); 12 Mar 2008 15:50:18 -0000 Received: (qmail 10005 invoked by uid 22791); 12 Mar 2008 15:50:17 -0000 X-Spam-Check-By: sourceware.org Received: from nf-out-0910.google.com (HELO nf-out-0910.google.com) (64.233.182.189) by sourceware.org (qpsmtpd/0.31) with ESMTP; Wed, 12 Mar 2008 15:49:51 +0000 Received: by nf-out-0910.google.com with SMTP id h3so2095248nfh.6 for ; Wed, 12 Mar 2008 08:49:48 -0700 (PDT) Received: by 10.78.172.20 with SMTP id u20mr22234388hue.12.1205336987707; Wed, 12 Mar 2008 08:49:47 -0700 (PDT) Received: from scientist-2.local ( [195.176.178.209]) by mx.google.com with ESMTPS id u9sm4705749muf.4.2008.03.12.08.49.42 (version=TLSv1/SSLv3 cipher=RC4-MD5); Wed, 12 Mar 2008 08:49:43 -0700 (PDT) Message-ID: <47D7FB95.3050507@gnu.org> Date: Wed, 12 Mar 2008 15:50:00 -0000 From: Paolo Bonzini User-Agent: Thunderbird 2.0.0.12 (Macintosh/20080213) MIME-Version: 1.0 To: GCC Patches , Tom Tromey Subject: [PATCH] Remove 2 dead lines from java_mangle_decl Content-Type: multipart/mixed; boundary="------------040007090002010104050301" Mailing-List: contact gcc-patches-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-patches-owner@gcc.gnu.org X-SW-Source: 2008-03/txt/msg00741.txt.bz2 This is a multi-part message in MIME format. --------------040007090002010104050301 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-length: 168 If these two lines were ever executed, GCC would die soon after with an assertion failure (I created the patch with big context for making this evident). Ok? Paolo --------------040007090002010104050301 Content-Type: text/plain; x-mac-type="0"; x-mac-creator="0"; name="java-mangle-decl.patch" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="java-mangle-decl.patch" Content-length: 896 2008-03-12 Paolo Bonzini * mangle.c (java_mangle_decl): Remove dead code. Index: mangle.c =================================================================== *** mangle.c (revision 133143) --- mangle.c (working copy) *************** cxx_keyword_p (const char *name, int len *** 239,254 **** void java_mangle_decl (tree decl) { - if (TREE_CODE (decl) == RECORD_TYPE) - mangle_type (decl); - /* A copy of the check from the beginning of lhd_set_decl_assembler_name. Only FUNCTION_DECLs and VAR_DECLs for variables with static storage duration need a real DECL_ASSEMBLER_NAME. */ gcc_assert (TREE_CODE (decl) == FUNCTION_DECL || (TREE_CODE (decl) == VAR_DECL && (TREE_STATIC (decl) || DECL_EXTERNAL (decl) || TREE_PUBLIC (decl)))); /* Mangling only applies to class members. */ --- 232,251 ---- --------------040007090002010104050301--