From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wr1-x434.google.com (mail-wr1-x434.google.com [IPv6:2a00:1450:4864:20::434]) by sourceware.org (Postfix) with ESMTPS id A84633857817 for ; Tue, 22 Feb 2022 16:14:15 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org A84633857817 Received: by mail-wr1-x434.google.com with SMTP id f17so9452139wrh.7 for ; Tue, 22 Feb 2022 08:14:15 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=48eb3BTeGMvQNX7+/oagIyB0za+uo4+EIsnF2X6jUis=; b=561MutdxsiOnN9JC8hTPqiJxG5GzXzGFms/uAYWvYs2vBGUcLTXvKRoSjwP4KLzGSo 4JQyMAvZCz6Ir2j8q2CPdJKqnexSW5EZYa1h0rwajgWtt/dYTCdfrJHBEeWLjJHg3t4o cgT74Qhay8ak4G2ywwXhpLLOXprVpMRqkZ5pUPrcM6AxAkulZorcOpdrtpUGV3dNaw/j i2AUPbKEUgCUyh3ntbrqxV92RWvEbMNJQPHZ5TTLvwBFT+33myWBFqhBGqx656HVQiez 0hDJvnlO3PawcArvHeZRhc4q5zUhCIgxVAv2GimYKZ5yX6gIMGFVhZwWbaGD4LS3TTLc kTlA== X-Gm-Message-State: AOAM5304XTPon+2cHlFrb01nR/5elwdqwzEzTq7yRBpRQUj/Ua6Wd0JS PRSsKfww8RcW/mxe2xR1Rpe+cTo5EZoVBxrwbY4= X-Google-Smtp-Source: ABdhPJxJTdRWkBBK4G8JW1eG5+joRPpJgrHpahV5aULCE0eN4WSSXsVhBB0RAg6kfdXD3isUeWAZP5Qb+7UXJYVlazs= X-Received: by 2002:adf:d1e9:0:b0:1ea:7fc0:6625 with SMTP id g9-20020adfd1e9000000b001ea7fc06625mr4323260wrd.152.1645546454676; Tue, 22 Feb 2022 08:14:14 -0800 (PST) MIME-Version: 1.0 References: In-Reply-To: From: Jonathan Wakely Date: Tue, 22 Feb 2022 16:14:03 +0000 Message-ID: Subject: Re: Doubt regarding dg-directives To: Krishna Narayanan Cc: gcc-help X-Spam-Status: No, score=-1.0 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, FREEMAIL_FROM, HTML_MESSAGE, RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_PASS, TXREP, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.4 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on server2.sourceware.org Content-Type: text/plain; charset="UTF-8" X-Content-Filtered-By: Mailman/MimeDel 2.1.29 X-BeenThere: gcc-help@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-help mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 22 Feb 2022 16:14:16 -0000 On Tue, 22 Feb 2022 at 15:38, Krishna Narayanan wrote: > Yes, it does. > I used dg-warning and not dg warning (that was a sheer typing mistake). > The warning is about the uninitialized variable being used in the > testcase yet there is no warning on that line and the test results in > FAIL. > I used /* { dg-warning "uninitialized" } */ on that particular line.I > used the test in gcc.dg, with other directive /* { dg-options "-O2" } > */ . > Can you help me where I went wrong? > Don't you need -Wuninitialized in the dg-options as well? Like Segher said, show us the test. Asking us to debug your test without seeing it is going to be slow.