From patchwork Tue May 14 16:58:46 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Easwaran Raman X-Patchwork-Id: 243790 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from sourceware.org (server1.sourceware.org [209.132.180.131]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client CN "localhost", Issuer "www.qmailtoaster.com" (not verified)) by ozlabs.org (Postfix) with ESMTPS id 3F0DE2C00B9 for ; Wed, 15 May 2013 02:58:59 +1000 (EST) DomainKey-Signature: a=rsa-sha1; c=nofws; d=gcc.gnu.org; h=list-id :list-unsubscribe:list-archive:list-post:list-help:sender :mime-version:date:message-id:subject:from:to:content-type; q= dns; s=default; b=jh7YD+yTTlsT0DiRbamcrijCdC/q6gtWo+J62HKXKL6a5G 0SEVQ8FE+/+i+b9GVS2Gwy7JZdbVRxymUCZbIpPq4b/d53L65pOg1+uiIiQlxINu sVOoN5x36SnjnceynTs9HLHfx7Rrnl3q/rc/SrN9BlGFht409jNcwQwWRT0KA= 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 :mime-version:date:message-id:subject:from:to:content-type; s= default; bh=E1HE4CJDB/1eamWn+4dQaX1qzXo=; b=K1T7WxSInG/bQCAiNrgt MRuO/J8cXZt+745H0fqSiZmEFIFmTQw3sJCiDub+JVjWD9n514WGP+NAa2wMsovZ 1G8ba6AvtZ2E1IZ6/z4aw4gs8PlMskZpgYt6krAwPgRIPXCtXzHhZy58LjoYYAf3 ArL3WFUgZt1lc4Owz0Id+Oc= Received: (qmail 32240 invoked by alias); 14 May 2013 16:58:49 -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 32204 invoked by uid 89); 14 May 2013 16:58:48 -0000 X-Spam-SWARE-Status: No, score=-3.8 required=5.0 tests=AWL, BAYES_00, RCVD_IN_DNSWL_LOW, RCVD_IN_HOSTKARMA_YE, RP_MATCHES_RCVD, SPF_PASS autolearn=ham version=3.3.1 Received: from mail-oa0-f42.google.com (HELO mail-oa0-f42.google.com) (209.85.219.42) by sourceware.org (qpsmtpd/0.84/v0.84-167-ge50287c) with ESMTP; Tue, 14 May 2013 16:58:48 +0000 Received: by mail-oa0-f42.google.com with SMTP id i10so935939oag.29 for ; Tue, 14 May 2013 09:58:47 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=mime-version:x-received:date:message-id:subject:from:to :content-type:x-gm-message-state; bh=cTYw2+sS1kLnpSxHUrUCPWnx1k0HrTBBiUkbgtv/rak=; b=aZ1pFCuPFefjBomHPnq7Id/W6JEp+VXNqZKDTtnsbegLoVdVSweO3NDKKO8X7Xj1HE S1lC/MDK6ckEY5PGz4m2hjxkWe5LYUbAew8FwnUNUiZebOPhGYbrJfoVlUqI8RGKbOg7 KzrjJl0pkFuky/27N3MBEZwco5wFlcR6e/ZLwhv74s+ImwPKt47TM15LGF7cNOfb6U+Y ISviVQbfsM1J18eexrcn2pP4Kws5hCvmtLsEVvDqjrHbb7RDifFXGTD5AMewMU/hs2gm TBoHU8BlLsX///nnaa2zr5bHWxlzoVjm50gyKpl94f1BNhqno1PYMrePj42pujv/nOQP cyhQ== MIME-Version: 1.0 X-Received: by 10.60.93.67 with SMTP id cs3mr16584094oeb.88.1368550726644; Tue, 14 May 2013 09:58:46 -0700 (PDT) Received: by 10.76.90.234 with HTTP; Tue, 14 May 2013 09:58:46 -0700 (PDT) Date: Tue, 14 May 2013 09:58:46 -0700 Message-ID: Subject: Print column information in dump_loc From: Easwaran Raman To: gcc-patches@gcc.gnu.org X-Gm-Message-State: ALoCoQnbfk7A3bsXaNPXnEsCePxst3etdpaXfdwvTDdLiHLB5bejYIFzKxt4wwtOnC2efxJYHzvlpFuXtgoUskUsMYzJFrvdR88/8ExfB4jc8ehL+/mXyAq3djgeaDUuLgxgcj3S4TAfngtbjLLcH+b5pa8eirPckacDbzaof6GZ75ORrQ9KQPjUiGmysIei8s9rYZPRr/AX This patch dumps the column number as part of dump_loc making the output similar to inform(). This allows these messages to be pattern matched by dg_message. Bootstraps with this change. Ok for trunk? - Easwaran --------- 2013-05-14 Easwaran Raman * dumpfile.c (dump_loc): Print column number. Index: gcc/dumpfile.c =================================================================== --- gcc/dumpfile.c (revision 198852) +++ gcc/dumpfile.c (working copy) @@ -261,12 +261,13 @@ dump_loc (int dump_kind, FILE *dfile, source_locat if (dump_kind) { if (LOCATION_LOCUS (loc) > BUILTINS_LOCATION) - fprintf (dfile, "\n%s:%d: note: ", LOCATION_FILE (loc), - LOCATION_LINE (loc)); + fprintf (dfile, "\n%s:%d:%d: note: ", LOCATION_FILE (loc), + LOCATION_LINE (loc), LOCATION_COLUMN (loc)); else if (current_function_decl) - fprintf (dfile, "\n%s:%d: note: ", + fprintf (dfile, "\n%s:%d:%d: note: ", DECL_SOURCE_FILE (current_function_decl), - DECL_SOURCE_LINE (current_function_decl)); + DECL_SOURCE_LINE (current_function_decl), + DECL_SOURCE_COLUMN (current_function_decl)); } }