From patchwork Thu Sep 14 08:33:37 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Eric Botcazou X-Patchwork-Id: 813742 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (mailfrom) smtp.mailfrom=gcc.gnu.org (client-ip=209.132.180.131; helo=sourceware.org; envelope-from=gcc-patches-return-462108-incoming=patchwork.ozlabs.org@gcc.gnu.org; receiver=) Authentication-Results: ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=gcc.gnu.org header.i=@gcc.gnu.org header.b="eLnC0iE2"; dkim-atps=neutral Received: from sourceware.org (server1.sourceware.org [209.132.180.131]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 3xtBfL6b3Cz9sMN for ; Thu, 14 Sep 2017 18:34:32 +1000 (AEST) DomainKey-Signature: a=rsa-sha1; c=nofws; d=gcc.gnu.org; h=list-id :list-unsubscribe:list-archive:list-post:list-help:sender:from :to:subject:date:message-id:mime-version:content-type :content-transfer-encoding; q=dns; s=default; b=HvvqBB8X7ZVa3ZSn fAPbGKc7OUtfligGqp+yfvyrLie6BcPeIqOghbZTN4VrG88taQN9VvabCnhJ8pzQ pPlRY204IKN0a/4W1mZlnYUQ1MMZpf+PevgKGoD5sxNNUbeFH38LJopdG8qMugmK YQXMxfDqC0M66hKOaYnusqcdhxE= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=gcc.gnu.org; h=list-id :list-unsubscribe:list-archive:list-post:list-help:sender:from :to:subject:date:message-id:mime-version:content-type :content-transfer-encoding; s=default; bh=FQBxZogZIZKLq1POS587VA GoXUU=; b=eLnC0iE2csu3RsJ/0vQ8O82cUAuZRJ/tK+Pg8x4emxb2QYIPvvo/1b PLMxak0EGHw38h8Pacprz+umexsghMfl2fwzGhD3mDCGsqWD7qxHQpzDTcmU5BoP +WcJvX0wvJOz2J8HfXOz7IgtWPVwoLsPG07CNOqD8elsTLjmBqkUQ= Received: (qmail 83886 invoked by alias); 14 Sep 2017 08:34:24 -0000 Mailing-List: contact gcc-patches-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Archive: List-Post: List-Help: Sender: gcc-patches-owner@gcc.gnu.org Delivered-To: mailing list gcc-patches@gcc.gnu.org Received: (qmail 83638 invoked by uid 89); 14 Sep 2017 08:34:24 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-10.9 required=5.0 tests=AWL, BAYES_00, GIT_PATCH_2, GIT_PATCH_3, RCVD_IN_DNSWL_NONE, SPF_PASS autolearn=ham version=3.3.2 spammy= X-HELO: smtp.eu.adacore.com Received: from mel.act-europe.fr (HELO smtp.eu.adacore.com) (194.98.77.210) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Thu, 14 Sep 2017 08:34:22 +0000 Received: from localhost (localhost [127.0.0.1]) by filtered-smtp.eu.adacore.com (Postfix) with ESMTP id 06EF78241E for ; Thu, 14 Sep 2017 10:34:20 +0200 (CEST) Received: from smtp.eu.adacore.com ([127.0.0.1]) by localhost (smtp.eu.adacore.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 3gQLciamkik6 for ; Thu, 14 Sep 2017 10:34:19 +0200 (CEST) Received: from polaris.localnet (bon31-6-88-161-99-133.fbx.proxad.net [88.161.99.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.eu.adacore.com (Postfix) with ESMTPSA id D9BB98136D for ; Thu, 14 Sep 2017 10:34:19 +0200 (CEST) From: Eric Botcazou To: gcc-patches@gcc.gnu.org Subject: Minor tweak to dwarf2out_source_line Date: Thu, 14 Sep 2017 10:33:37 +0200 Message-ID: <3664826.DgEP2CqRvV@polaris> User-Agent: KMail/4.14.10 (Linux/3.16.7-53-desktop; KDE/4.14.9; x86_64; ; ) MIME-Version: 1.0 The function contains these lines: if (debug_column_info) fprint_ul (asm_out_file, column); else putc ('0', asm_out_file); but they are dominated by: if (!debug_column_info) column = 0; Bootstrapped/regtested on x86_64-suse-linux, applied on mainline as obvious. 2017-09-14 Eric Botcazou * dwarf2out.c (dwarf2out_source_line): Remove superfluous test. Index: dwarf2out.c =================================================================== --- dwarf2out.c (revision 252749) +++ dwarf2out.c (working copy) @@ -26645,10 +26645,7 @@ dwarf2out_source_line (unsigned int line putc (' ', asm_out_file); fprint_ul (asm_out_file, line); putc (' ', asm_out_file); - if (debug_column_info) - fprint_ul (asm_out_file, column); - else - putc ('0', asm_out_file); + fprint_ul (asm_out_file, column); if (is_stmt != table->is_stmt) {