From patchwork Sat Nov 29 10:58:09 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Tobias Burnus X-Patchwork-Id: 415987 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 406691401DD for ; Sat, 29 Nov 2014 21:58:24 +1100 (AEDT) DomainKey-Signature: a=rsa-sha1; c=nofws; d=gcc.gnu.org; h=list-id :list-unsubscribe:list-archive:list-post:list-help:sender :message-id:date:from:mime-version:to:subject:content-type; q= dns; s=default; b=OuBnZHmoe5p+KmOIOvjusVp9T3HxaOduubD7cGRHNwIhdU oHs15mGkaDsCTuNQdBdZYaLsm4IMXGTkWha1Rx5tVPWWhncA6xRIQGmQLf8IibTR nnPAxrWgXqqoCvUyeFxCQdvL2ldYij5u7xTgRgnPjwbfpYWzDSIJxehSCe7x4= 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 :message-id:date:from:mime-version:to:subject:content-type; s= default; bh=tNkAQL9TS7CX0ERnlGGfFzhys8U=; b=MlRm6thpNocU0+Zce2Ol ATSP989rBLH10wcRUV8W2VINk/fNFe5WfNwgWnTb83/TE+2hERCYldoLhCANoOb7 nzEkLfPT7aU9GdVVwbwzM8vyTRJGcPaarYv/siN75IEubo8If5KXQBInw0GYIP2b ZbOPHxNkCeNAKkIWWg+TFyM= Received: (qmail 22917 invoked by alias); 29 Nov 2014 10:58:18 -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 22900 invoked by uid 89); 29 Nov 2014 10:58:17 -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, RCVD_IN_DNSWL_LOW autolearn=ham version=3.3.2 X-Spam-User: qpsmtpd, 2 recipients X-HELO: mx02.qsc.de Received: from mx02.qsc.de (HELO mx02.qsc.de) (213.148.130.14) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES256-SHA encrypted) ESMTPS; Sat, 29 Nov 2014 10:58:13 +0000 Received: from tux.net-b.de (port-92-194-114-130.dynamic.qsc.de [92.194.114.130]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mx02.qsc.de (Postfix) with ESMTPSA id 0ABB424DF7; Sat, 29 Nov 2014 11:58:09 +0100 (CET) Message-ID: <5479A6C1.4040000@net-b.de> Date: Sat, 29 Nov 2014 11:58:09 +0100 From: Tobias Burnus User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.2.0 MIME-Version: 1.0 To: gcc-patches , gfortran Subject: [Patch, Fortran, committed] Change two gfc_warning_now_1 to common diagnostics It turned out that those two could be converted. At least two of the remaining three gfc_warning_now_1 currently can't (they lead to ICEs). Committed as Rev. 218180. Tobias Index: gcc/fortran/ChangeLog =================================================================== --- gcc/fortran/ChangeLog (Revision 218179) +++ gcc/fortran/ChangeLog (Arbeitskopie) @@ -1,4 +1,9 @@ 2014-11-29 Tobias Burnus + + * scanner.c (skip_free_comments, gfc_gobble_whitespace): Use + gfc_warning_now instead of ..._now_1. + +2014-11-29 Tobias Burnus Manuel López-Ibáñez * lang.opt (Wtabs): Combine duplicated item into a single Index: gcc/fortran/scanner.c =================================================================== --- gcc/fortran/scanner.c (Revision 218179) +++ gcc/fortran/scanner.c (Arbeitskopie) @@ -775,10 +775,10 @@ skip_free_comments (void) } } else - gfc_warning_now_1 ("!$OMP at %C starts a commented " - "line as it neither is followed " - "by a space nor is a " - "continuation line"); + gfc_warning_now ("!$OMP at %C starts a commented " + "line as it neither is followed " + "by a space nor is a " + "continuation line"); } gfc_current_locus = old_loc; next_char (); @@ -1388,7 +1388,7 @@ gfc_gobble_whitespace (void) if (cur_linenum != linenum) { linenum = cur_linenum; - gfc_warning_now_1 ("Nonconforming tab character at %C"); + gfc_warning_now (OPT_Wtabs, "Nonconforming tab character at %C"); } } }