From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 67602 invoked by alias); 21 Sep 2015 00:29:08 -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 67589 invoked by uid 89); 21 Sep 2015 00:29:07 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-2.5 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_LOW,SPF_PASS autolearn=ham version=3.3.2 X-HELO: mail-qg0-f41.google.com Received: from mail-qg0-f41.google.com (HELO mail-qg0-f41.google.com) (209.85.192.41) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES128-GCM-SHA256 encrypted) ESMTPS; Mon, 21 Sep 2015 00:29:06 +0000 Received: by qgt47 with SMTP id 47so78163220qgt.2 for ; Sun, 20 Sep 2015 17:29:04 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:date :message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=jA/+KvjyvC7TSKFbivcu5KEDNmrvSUfQUBxES+Nd06c=; b=d0l9bIOh5L3HYWlbnQ2zDdDus+7z/wU4BXnNABopaF5uwM5kQh/MQaG00sdz3OuZmh JQEv+asPMC/qj1S7/Q0rD9mjMd1jyDnfkXn5VoeqxmWMqGwDDQ6t0YSRA3dMuNPlDJH5 VSImqg1Zyy3zGBoXzJJ49QeWnKB5zJrJGdmOs+KNSCXkKqnINmyk+zStfv9hnC0pVvaL uvvoYjkJiXBR0vc6EdBvDOuFMJ/vYYE1UW0ttRCUquktAtI733IH4nIVwdU/d3SNLWJG Mi3ZyVTto8GMogiLfOUTSwRypC10fzisyeoF4QtDrOlXUwHkr+dMnn7Cg4rXDOssncGV JMmQ== X-Gm-Message-State: ALoCoQlzLEmjIMJGG2KPJGhukYnsqhL+eoXmmeQstne/qi52QP5iSQaIkhLm8xJ/ODag0FMUCbSb MIME-Version: 1.0 X-Received: by 10.140.150.4 with SMTP id 4mr19300224qhw.35.1442795344579; Sun, 20 Sep 2015 17:29:04 -0700 (PDT) Received: by 10.140.44.10 with HTTP; Sun, 20 Sep 2015 17:29:04 -0700 (PDT) In-Reply-To: References: <20150525195650.GY27320@redhat.com> Date: Mon, 21 Sep 2015 00:33:00 -0000 Message-ID: Subject: Re: [PATCH c/c++] use explicit locations for some warnings in c-pragma.c From: Christophe Lyon To: =?UTF-8?B?TWFudWVsIEzDs3Blei1JYsOhw7Fleg==?= Cc: Marek Polacek , Gcc Patch List , "Joseph S. Myers" , Jason Merrill Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-IsSubscribed: yes X-SW-Source: 2015-09/txt/msg01513.txt.bz2 On 21 September 2015 at 02:24, Manuel L=C3=B3pez-Ib=C3=A1=C3=B1ez wrote: > On 21 September 2015 at 02:22, Christophe Lyon > wrote: >> It works for me if I replace 24 by 62. > > Wierd. What is the actual output of the compiler? Here is what I have in gcc.log: /home/christophe.lyon/src/GCC/sources/gcc-fsf/trunk/gcc/testsuite/gcc.dg/pr= agma-diag-5.c:2:62: warning: missing [error|warning|ignored|push|pop] after '#pragma GCC diagnostic' [-Wpragmas]^M /home/christophe.lyon/src/GCC/sources/gcc-fsf/trunk/gcc/testsuite/gcc.dg/pr= agma-diag-5.c:5:24: warning: expected [error|warning|ignored|push|pop] after '#pragma GCC diagnostic' [-Wpragmas]^M /home/christophe.lyon/src/GCC/sources/gcc-fsf/trunk/gcc/testsuite/gcc.dg/pr= agma-diag-5.c:7:32: warning: unknown option after '#pragma GCC diagnostic' kind [-Wpragmas]^M XPASS: gcc.dg/pragma-diag-5.c missing (test for warnings, line 2) PASS: gcc.dg/pragma-diag-5.c (test for warnings, line 5) PASS: gcc.dg/pragma-diag-5.c (test for warnings, line 7) PASS: gcc.dg/pragma-diag-5.c (test for excess errors)