From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 66382 invoked by alias); 13 Jul 2017 08:10:37 -0000 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 Received: (qmail 65869 invoked by uid 89); 13 Jul 2017 08:10:36 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-26.9 required=5.0 tests=BAYES_00,GIT_PATCH_0,GIT_PATCH_1,GIT_PATCH_2,GIT_PATCH_3,SPF_PASS autolearn=ham version=3.3.2 spammy=someday X-HELO: mx1.suse.de Received: from mx2.suse.de (HELO mx1.suse.de) (195.135.220.15) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Thu, 13 Jul 2017 08:10:31 +0000 Received: from relay1.suse.de (charybdis-ext.suse.de [195.135.220.254]) by mx1.suse.de (Postfix) with ESMTP id 755BEAC16; Thu, 13 Jul 2017 08:10:29 +0000 (UTC) Subject: [PATCH] Cleanup #2 of Pascal references. To: Jason Merrill Cc: gcc-patches List , Jakub Jelinek References: <5c4321de-8b19-e26d-c5c8-ed63abf010ba@suse.cz> From: =?UTF-8?Q?Martin_Li=c5=a1ka?= Message-ID: <430e7605-e428-3358-b344-e8e1d4c151be@suse.cz> Date: Thu, 13 Jul 2017 08:10:00 -0000 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.2.1 MIME-Version: 1.0 In-Reply-To: Content-Type: multipart/mixed; boundary="------------78C920B61574B96DA6A8691E" X-IsSubscribed: yes X-SW-Source: 2017-07/txt/msg00637.txt.bz2 This is a multi-part message in MIME format. --------------78C920B61574B96DA6A8691E Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Content-length: 61 Thanks Jason, I'm sending patch #2. Ready for trunk? Martin --------------78C920B61574B96DA6A8691E Content-Type: text/x-patch; name="0001-Cleanup-2-of-Pascal-references.patch" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="0001-Cleanup-2-of-Pascal-references.patch" Content-length: 3039 >From 2fa6d00cc6686e8bf081d736de44c22ecf61a795 Mon Sep 17 00:00:00 2001 From: marxin Date: Thu, 13 Jul 2017 10:08:14 +0200 Subject: [PATCH] Cleanup #2 of Pascal references. gcc/ChangeLog: 2017-07-13 Martin Liska * dwarf2out.c (gen_pointer_type_die): Remove dead code. (gen_reference_type_die): Likewise. * stor-layout.c: Remove Pascal-related comment. --- gcc/dwarf2out.c | 40 ---------------------------------------- gcc/stor-layout.c | 3 +-- 2 files changed, 1 insertion(+), 42 deletions(-) diff --git a/gcc/dwarf2out.c b/gcc/dwarf2out.c index 9357a100f6a..e50428e4e31 100644 --- a/gcc/dwarf2out.c +++ b/gcc/dwarf2out.c @@ -23293,46 +23293,6 @@ gen_field_die (tree decl, struct vlr_context *ctx, dw_die_ref context_die) equate_decl_number_to_die (decl, decl_die); } -#if 0 -/* Don't generate either pointer_type DIEs or reference_type DIEs here. - Use modified_type_die instead. - We keep this code here just in case these types of DIEs may be needed to - represent certain things in other languages (e.g. Pascal) someday. */ - -static void -gen_pointer_type_die (tree type, dw_die_ref context_die) -{ - dw_die_ref ptr_die - = new_die (DW_TAG_pointer_type, scope_die_for (type, context_die), type); - - equate_type_number_to_die (type, ptr_die); - add_type_attribute (ptr_die, TREE_TYPE (type), TYPE_UNQUALIFIED, false, - context_die); - add_AT_unsigned (mod_type_die, DW_AT_byte_size, PTR_SIZE); -} - -/* Don't generate either pointer_type DIEs or reference_type DIEs here. - Use modified_type_die instead. - We keep this code here just in case these types of DIEs may be needed to - represent certain things in other languages (e.g. Pascal) someday. */ - -static void -gen_reference_type_die (tree type, dw_die_ref context_die) -{ - dw_die_ref ref_die, scope_die = scope_die_for (type, context_die); - - if (TYPE_REF_IS_RVALUE (type) && dwarf_version >= 4) - ref_die = new_die (DW_TAG_rvalue_reference_type, scope_die, type); - else - ref_die = new_die (DW_TAG_reference_type, scope_die, type); - - equate_type_number_to_die (type, ref_die); - add_type_attribute (ref_die, TREE_TYPE (type), TYPE_UNQUALIFIED, false, - context_die); - add_AT_unsigned (mod_type_die, DW_AT_byte_size, PTR_SIZE); -} -#endif - /* Generate a DIE for a pointer to a member type. TYPE can be an OFFSET_TYPE, for a pointer to data member, or a RECORD_TYPE, for a pointer to member function. */ diff --git a/gcc/stor-layout.c b/gcc/stor-layout.c index 1574e4383e8..f733b1e4609 100644 --- a/gcc/stor-layout.c +++ b/gcc/stor-layout.c @@ -2647,8 +2647,7 @@ set_min_and_max_values_for_integral_type (tree type, /* Set the extreme values of TYPE based on its precision in bits, then lay it out. Used when make_signed_type won't do - because the tree code is not INTEGER_TYPE. - E.g. for Pascal, when the -fsigned-char option is given. */ + because the tree code is not INTEGER_TYPE. */ void fixup_signed_type (tree type) -- 2.13.2 --------------78C920B61574B96DA6A8691E--