From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 128173 invoked by alias); 29 Jan 2017 18:07:15 -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 128158 invoked by uid 89); 29 Jan 2017 18:07:15 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.3 required=5.0 tests=AWL,BAYES_00,FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,RCVD_IN_SORBS_SPAM,SPF_PASS autolearn=no version=3.3.2 spammy= X-HELO: mail-wm0-f53.google.com Received: from mail-wm0-f53.google.com (HELO mail-wm0-f53.google.com) (74.125.82.53) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Sun, 29 Jan 2017 18:07:13 +0000 Received: by mail-wm0-f53.google.com with SMTP id c85so184577675wmi.1 for ; Sun, 29 Jan 2017 10:07:13 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=ivQPXYHq5ohvMOowteNJ2t9O/XV0HEhc9RgREP03GpA=; b=IHeX2r6Ze8zW7WBE3J7r+6KDA/cU5etP2j6W5AgOZXCqT9StuRr4DksW/dwKEoRgFY L+QiIppPAhudl7d7QEq3W9rKyUEDG6Qu1QMHBQLsPq3EaP8CCoxmc6bw+LK4QHedU29u JkeK9IonL1hRCmD9fJ9Zc4YylY7Vxfsieh0APF/gt4T7OHg/Gpl3vAFs2lYid3t3n7iQ Owi0R58jIO2kbmAmzkOtmHpUKFIQr8eH6CXbg1HXwXlBqU2GDbcr+4gHorL+lh6eDzi5 OdI8dhsuhit7CvMDzSyf179P3nz155knJfCch7DRrqbog5f3DDRz/Td3yRAY4yMf2Ia2 SDDQ== X-Gm-Message-State: AIkVDXKg6vgyLdOotQfr1G2YGb3ne4rweC/2gi/ODPeASrOWGOQaAxsfHO+IGXryo8uLB5ZUk4IkTDUHelkBKw== X-Received: by 10.28.45.213 with SMTP id t204mr8447524wmt.113.1485713231735; Sun, 29 Jan 2017 10:07:11 -0800 (PST) MIME-Version: 1.0 Received: by 10.28.183.68 with HTTP; Sun, 29 Jan 2017 10:07:11 -0800 (PST) In-Reply-To: References: From: Cary Coutant Date: Sun, 29 Jan 2017 18:55:00 -0000 Message-ID: Subject: Re: [PR63238] output alignment debug information To: Alexandre Oliva Cc: GCC Patches , Jason Merrill Content-Type: text/plain; charset=UTF-8 X-IsSubscribed: yes X-SW-Source: 2017-01/txt/msg02249.txt.bz2 > for gcc/ChangeLog > > PR debug/63238 > * dwarf2out.c (clone_as_declaration): Drop DW_AT_alignment. > (add_alignment_attribute): New. > (base_type_die): Add alignment attribute. > (subrange_type_die): Likewise. > (modified_type_die): Likewise. > (gen_array_type_die): Likewise. > (gen_descr_array_type_die: Likewise. > (gen_enumeration_type_die): Likewise. > (gen_subprogram_die): Likewise. > (gen_variable_die): Likewise. > (gen_field_die): Likewise. > (gen_ptr_to_mbr_type_die): Likewise. > (gen_struct_or_union_type_die): Likewise. > (gen_subroutine_type_die): Likewise. > (gen_typedef_die): Likewise. > (base_type_cmp): Compare alignment attribute. This is OK so far, but the DW_AT_alignment attribute also needs to be added to the checksum computation in die_checksum and die_checksum_ordered. -cary