From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from smtp.CeBiTec.Uni-Bielefeld.DE (smtp.CeBiTec.Uni-Bielefeld.DE [129.70.160.84]) by sourceware.org (Postfix) with ESMTPS id DB0DF3858CDB for ; Mon, 30 Jan 2023 13:24:45 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org DB0DF3858CDB Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=CeBiTec.Uni-Bielefeld.DE Authentication-Results: sourceware.org; spf=none smtp.mailfrom=cebitec.uni-bielefeld.de Received: from localhost (localhost [127.0.0.1]) by smtp.CeBiTec.Uni-Bielefeld.DE (Postfix) with ESMTP id 6A8FD14FE1; Mon, 30 Jan 2023 14:24:44 +0100 (CET) X-Virus-Scanned: amavisd-new at CeBiTec.Uni-Bielefeld.DE Received: from smtp.CeBiTec.Uni-Bielefeld.DE ([127.0.0.1]) by localhost (smtp.cebitec.uni-bielefeld.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id HGCzTJzLXlXU; Mon, 30 Jan 2023 14:24:44 +0100 (CET) Received: from manam.CeBiTec.Uni-Bielefeld.DE (p508548b7.dip0.t-ipconnect.de [80.133.72.183]) (Authenticated sender: ro) by smtp.CeBiTec.Uni-Bielefeld.DE (Postfix) with ESMTPSA id E667914F67; Mon, 30 Jan 2023 14:24:43 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=CeBiTec.Uni-Bielefeld.DE; s=20200306; t=1675085084; bh=A+85FkIPaz/aPkNU7qLtrPAa0FS7O4D76UksTWJOw1A=; h=From:To:Cc:Subject:Date:From; b=mW+q8+dQK+TGGRJHe09gx+IzSysg6rldvkdEFSFEWW6dWuIdVg3LRFItKouxmiY09 cXFfndubJfzVrpkptfJgPPIny8B/z+3wXud9mVqUCoPxXAE9OsGk/ZwU6LqoQ4UrH3 oUuoa42xnzJqY3Ql/vHx1O90TbijlRFsFqkXUfevKwG9qYwo2Swzek6/7biFWc80l2 7urr3iLLbxx+joaRC+/7XGz02wWsaxBj9TN/hXD0tFm0RDJWaaB1QNXcuHDcK5jZNs k/u4emwPF8vAamC+1zS6wU3slTS/zKnS/XXHUq0ncl+M1D57xS+mez8bi0Egp7hx3b TbhnzHIQo3S/A== From: Rainer Orth To: gcc-patches@gcc.gnu.org Cc: Gaius Mulley Subject: [COMMITTED] testsuite: Restore TORTURE_OPTIONS in gm2/warnings/returntype/fail/warnings-returntype-fail.exp Date: Mon, 30 Jan 2023 14:24:43 +0100 Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.1.90 (usg-unix-v) MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" X-Spam-Status: No, score=-3794.5 required=5.0 tests=BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,GIT_PATCH_0,SPF_HELO_NONE,SPF_NONE,TXREP autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org List-Id: --=-=-= Content-Type: text/plain Between 20230126 and 20230127, 1100+ gm2 tests started to FAIL for the non-default multilib, e.g. FAIL: gm2/calling-c/datatypes/unbounded/run/pass/m.mod compilation, {additional_flags= -O0 -g -Werror=return-type } timeout=10 UNRESOLVED: gm2/calling-c/datatypes/unbounded/run/pass/m.mod execution, {additional_flags= -O0 -g -Werror=return-type } timeout=10 FAIL: gm2/case/pass/testcase1.mod, -O0 -g -Werror=return-type [...] cc1gm2: warning: '-Werror=' argument '-Werror=return-type' is not valid for Modula-2 I'm seeing this on all of Solaris/x86, Solaris/SPARC, and Linux/x86_64. I could trace this to gm2/warnings/returntype/fail/warnings-returntype-fail.exp not properly restoring TORTURE_OPTIONS. Tested on i386-pc-solaris2.11 and sparc-sun-solaris2.11. Installed on trunk. Rainer -- ----------------------------------------------------------------------------- Rainer Orth, Center for Biotechnology, Bielefeld University 2023-01-30 Rainer Orth gcc/testsuite: * gm2/warnings/returntype/fail/warnings-returntype-fail.exp: Save, restore TORTURE_OPTIONS. --=-=-= Content-Type: text/x-patch Content-Disposition: inline; filename=wrf.patch diff --git a/gcc/testsuite/gm2/warnings/returntype/fail/warnings-returntype-fail.exp b/gcc/testsuite/gm2/warnings/returntype/fail/warnings-returntype-fail.exp --- a/gcc/testsuite/gm2/warnings/returntype/fail/warnings-returntype-fail.exp +++ b/gcc/testsuite/gm2/warnings/returntype/fail/warnings-returntype-fail.exp @@ -28,6 +28,8 @@ load_lib gm2-torture.exp gm2_init_pim "${srcdir}/gm2/warnings/returntype/fail" global TORTURE_OPTIONS + +set old_options $TORTURE_OPTIONS set TORTURE_OPTIONS { { -O0 -g -Werror=return-type } } foreach testcase [lsort [glob -nocomplain $srcdir/$subdir/*.mod]] { @@ -38,3 +40,5 @@ foreach testcase [lsort [glob -nocomplai gm2-torture-fail $testcase } + +set TORTURE_OPTIONS $old_options --=-=-=--