From patchwork Mon May 30 23:19:54 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Marcin_Baczy=C5=84ski?= X-Patchwork-Id: 627964 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.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 3rJXf837Z6z9sCY for ; Tue, 31 May 2016 09:20:15 +1000 (AEST) Authentication-Results: ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=gcc.gnu.org header.i=@gcc.gnu.org header.b=YPQ0TUXE; dkim-atps=neutral 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:cc:subject:date:message-id:mime-version:content-type :content-transfer-encoding; q=dns; s=default; b=q/IBy87+aJcCYJRo qFCChN10E6UDMw8HeunHL6QAJcMCmfhU8HL/apUTDMevMxfBUKygV3XAVfnEj6Li b1Ujg05a6KTWVsO8OwN6SnlRUuljYvgqAMYNKhBuZTFck7a7PCPQOncXTJlYMhn/ rwYYWfxthEtP0JwDyATgqhMT3sk= 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:cc:subject:date:message-id:mime-version:content-type :content-transfer-encoding; s=default; bh=tlXNBqUHNGJvNzCslAEwfd qSalQ=; b=YPQ0TUXEXu+qauMTgGCFqU24Xz+zU3ww0y6hsq/hPNYc5lZYqqzfn2 FcE/J+57yiD8F7Tcja9xjTKhPb4c5v6tJaAcpJ49RVzg/82ORSB9AWWPEjb50rsW pV28QvMka9VSpC11chSIB8BZxecIdqQvtlcmqwHYalJQStGPmI3aE= Received: (qmail 111906 invoked by alias); 30 May 2016 23:20:08 -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 111892 invoked by uid 89); 30 May 2016 23:20:07 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-2.6 required=5.0 tests=BAYES_00, FREEMAIL_FROM, RCVD_IN_DNSWL_LOW, SPF_PASS autolearn=ham version=3.3.2 spammy=20160531, 2016-05-31, bear, ski X-HELO: mail-lf0-f68.google.com Received: from mail-lf0-f68.google.com (HELO mail-lf0-f68.google.com) (209.85.215.68) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES128-GCM-SHA256 encrypted) ESMTPS; Mon, 30 May 2016 23:20:06 +0000 Received: by mail-lf0-f68.google.com with SMTP id 65so15257463lfq.1 for ; Mon, 30 May 2016 16:20:05 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=HQ9v+rbrrlZSJRK34uYunAAIaCunoO3c8GhRlxe5CDI=; b=GELd/U7SCmLhgr/fpgaV4yOhk60PsVFaI2jzNGydKaCsWalKDFGvVYUSReCA9iduuY DqU6OhF4YlLngMdd+Q9LErE+/X0TlxWpYHb25S1LOIRiG0Tu0kEqE8rkIYZ95To3J7dP doX8u6BOinU5T+CMu/a14d4CInxAZmfqWGMAHF/nz4RGBrs/j+eh7GrJpQkOSibTvt0+ /U9p6iY/o0b2aB/0wHYqPTEs4Ys2xZKlQm7H5oit7LIm9TGs4K5/R3sXHzUDfhaTGgNa TqC6BtdJl2c7Ff+dQ2HaOx56ACMcPlSwR9KQaiKAOdiz6yDlwC7oIEOj2wM0C8hNDsEO SaQg== X-Gm-Message-State: ALyK8tKIHvF41biVfvlx+awa1MFghecToy4SACase7jZ8sI7R8k898mIjAF0pshfHJeSqA== X-Received: by 10.25.15.68 with SMTP id e65mr6668851lfi.202.1464650402543; Mon, 30 May 2016 16:20:02 -0700 (PDT) Received: from localhost.localdomain (89-74-110-56.dynamic.chello.pl. [89.74.110.56]) by smtp.googlemail.com with ESMTPSA id g72sm2627013lji.22.2016.05.30.16.20.01 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 30 May 2016 16:20:01 -0700 (PDT) From: =?UTF-8?q?Marcin=20Baczy=C5=84ski?= To: gcc-patches@gcc.gnu.org Cc: =?UTF-8?q?Marcin=20Baczy=C5=84ski?= Subject: [PATCH] Remove old diagnostic macros. Date: Tue, 31 May 2016 01:19:54 +0200 Message-Id: <20160530231954.126536-1-marbacz@gmail.com> MIME-Version: 1.0 Hi, this is my first GCC patch, so please bear with me if something is wrong with it in an obvious way. I've found two unused macros in gcc/diagnostic.h. Is the patch okay as is? Bootstrapped on x86_64-pc-linux-gnu. 2016-05-31 Marcin BaczyƄski * gcc/diagnostic.h (diagnostic_line_cutoff, diagnostic_flush_buffer): delete. --- gcc/diagnostic.h | 6 ------ 1 file changed, 6 deletions(-) diff --git a/gcc/diagnostic.h b/gcc/diagnostic.h index 48ae50d..58d77df 100644 --- a/gcc/diagnostic.h +++ b/gcc/diagnostic.h @@ -231,12 +231,6 @@ diagnostic_inhibit_notes (diagnostic_context * context) /* Same as output_prefixing_rule. Works on 'diagnostic_context *'. */ #define diagnostic_prefixing_rule(DC) ((DC)->printer->wrapping.rule) -/* Maximum characters per line in automatic line wrapping mode. - Zero means don't wrap lines. */ -#define diagnostic_line_cutoff(DC) ((DC)->printer->wrapping.line_cutoff) - -#define diagnostic_flush_buffer(DC) pp_flush ((DC)->printer) - /* True if the last module or file in which a diagnostic was reported is different from the current one. */ #define diagnostic_last_module_changed(DC, MAP) \