From patchwork Thu Oct 20 19:36:49 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Bernd Edlinger X-Patchwork-Id: 684764 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 3t0Jwp4rVRz9sR9 for ; Fri, 21 Oct 2016 06:37:14 +1100 (AEDT) Authentication-Results: ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=gcc.gnu.org header.i=@gcc.gnu.org header.b=nFpbHByu; 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:subject:date:message-id:content-type:mime-version; q=dns; s= default; b=kQChLswIEOAyqjZqTT2S5h3BbDvwxTibZFMd1d/cxSEKdELUVuaGq HFlyOuZuY8Tw37EXhPHEUzL4XG+8dFGdQDbpMfmDxz4bdFXxcwlCWim2B1Bq5cP/ pyoLF2HVzxfHuelDKvRwVGWrAr9HXQglS4H83f6QKQJsQpHceAM0qE= 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:subject:date:message-id:content-type:mime-version; s= default; bh=8sjDYbaMon5lQDwt/iPjSg81G4w=; b=nFpbHByu+gFsmKUXxlzw 4NJnMquMLx1HxiqOGm0bZaqQDeewZDSWRx2vgiD+jdw1oSOpbWxKLI3GSUCV0I4k yzxcxq5UuGLXi0Eflo/teCYLBe2Vcl9r3pb9Cjxb0Z2uMqSlxr9alxf6weFbyN+E 6ucv5ZUajh8Wd2fse2pJYLU= Received: (qmail 113364 invoked by alias); 20 Oct 2016 19:37:04 -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 113349 invoked by uid 89); 20 Oct 2016 19:37:03 -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, FREEMAIL_FROM, RCVD_IN_DNSWL_LOW, SPF_PASS autolearn=ham version=3.3.2 spammy=manuel, timestamp, Manuel, accidents X-HELO: BAY004-OMC1S28.hotmail.com Received: from bay004-omc1s28.hotmail.com (HELO BAY004-OMC1S28.hotmail.com) (65.54.190.39) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Thu, 20 Oct 2016 19:36:53 +0000 Received: from EUR03-VE1-obe.outbound.protection.outlook.com ([65.54.190.59]) by BAY004-OMC1S28.hotmail.com over TLS secured channel with Microsoft SMTPSVC(7.5.7601.23008); Thu, 20 Oct 2016 12:36:52 -0700 Received: from AM5EUR03FT040.eop-EUR03.prod.protection.outlook.com (10.152.16.59) by AM5EUR03HT054.eop-EUR03.prod.protection.outlook.com (10.152.17.144) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.669.7; Thu, 20 Oct 2016 19:36:50 +0000 Received: from AM4PR0701MB2162.eurprd07.prod.outlook.com (10.152.16.60) by AM5EUR03FT040.mail.protection.outlook.com (10.152.17.148) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.669.7 via Frontend Transport; Thu, 20 Oct 2016 19:36:50 +0000 Received: from AM4PR0701MB2162.eurprd07.prod.outlook.com ([10.167.132.147]) by AM4PR0701MB2162.eurprd07.prod.outlook.com ([10.167.132.147]) with mapi id 15.01.0679.006; Thu, 20 Oct 2016 19:36:49 +0000 From: Bernd Edlinger To: "gcc-patches@gcc.gnu.org" Subject: [COMMITTED] Fix two accidentally emptied test cases Date: Thu, 20 Oct 2016 19:36:49 +0000 Message-ID: authentication-results: gcc.gnu.org; dkim=none (message not signed) header.d=none; gcc.gnu.org; dmarc=none action=none header.from=hotmail.de; x-ms-exchange-messagesentrepresentingtype: 1 x-eopattributedmessage: 0 x-microsoft-exchange-diagnostics: 1; AM5EUR03HT054; 6:x/n2vojURvnyaeZm0wRGAXqfLYrWnWdtToYsX8OVEhaq6zZub9jNaNll34hwyKz9C12BCfnj4p5suj/2rZCLJKJIVYKQvX1Gjdv732DGqTyh5NL6oSEL2sKTB6P+YI4hMmddtBy8zsFxTHgJqlytMnpov0NtpMY4Cf4WZKKpKoKSxMuwniCn9Z5+os/U1w3aQpZgBz0pg15ef1aK+iaCwrcu0qUtEyNifVYd4okfTq5WzOE2HfvpKKcNb3OgScpBIVdZjDDY4eRVdyMkffrbtnV2cfj7D7R+0nN5JFR2Rh4l9WheXdmG/JLBx7rzl9gX; 5:AYR9LlFoXrgu1vMJ30p1lS8s1H7IHOh+NW+TUhZBfpsNV2fIz2BfkXhKqMoCwaTYu88aZ1P0nPA8flLFKuAqDPmw7OvIbMakuUEFCHksCiBfo2wo53YvGV9vKEhs5+qYgmxLsOmZIRqvhfAex4eAvOgX2z9WE8X2CITE988k2lM=; 24:f7vlmCoAkT2JrFVgN8W1NI4RLxv+W0m9Ag6+rLHYvOrabuS59Pxb2UbdYXFhmwZ7BWC4NpegF3VuZCAJYBjHJk7QNN3Q3UzUmP85eDMnUas=; 7:QdSNQgX5OXixvtA+EwuI3WsfUHBRzp9ieZz/42U07+J/WGqFMUkxQ9KoLGiR+11RtB+9eyPcI1YB+brNXYkG9QGoUGf/5OUPa+rb2LS3+gCtcWZjGOx3M/OzQSsXYvMw6GQ5QnvIgWYmL2/PwE1w6wyZr8qcD6LTmzAuyna6YfPBNZRx212P1U9UNhylgSbiXxT4k+sT7e2bvAW/OgzVQJFEKAcQQy0183M1lI8b7hhi5MKN2BWrDYvVT01KeiLXf6z8+aRExu/IE5sa/jdKQ1xb0LCsuRHO7Hg6FX/a1PrgsP9KC/IUW+ByczccrPmzGByepFhm4BsHXRf4m8cNHOclZqWIRlOgeW7b5eK6INE= x-forefront-antispam-report: EFV:NLI; SFV:NSPM; SFS:(10019020)(98900003); DIR:OUT; SFP:1102; SCL:1; SRVR:AM5EUR03HT054; H:AM4PR0701MB2162.eurprd07.prod.outlook.com; FPR:; SPF:None; LANG:en; x-ms-office365-filtering-correlation-id: 274e8f84-b794-44e1-6fcd-08d3f9206f28 x-microsoft-antispam: UriScan:; BCL:0; PCL:0; RULEID:(1601124038)(1603103081)(1601125047); SRVR:AM5EUR03HT054; x-exchange-antispam-report-cfa-test: BCL:0; PCL:0; RULEID:(432015012)(102415321)(82015046); SRVR:AM5EUR03HT054; BCL:0; PCL:0; RULEID:; SRVR:AM5EUR03HT054; x-forefront-prvs: 01018CB5B3 spamdiagnosticoutput: 1:99 spamdiagnosticmetadata: NSPM MIME-Version: 1.0 X-OriginatorOrg: outlook.com X-MS-Exchange-CrossTenant-originalarrivaltime: 20 Oct 2016 19:36:49.7470 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Internet X-MS-Exchange-CrossTenant-id: 84df9e7f-e9f6-40af-b435-aaaaaaaaaaaa X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM5EUR03HT054 Hi! I became aware that there are two empty files in the test suite that are not intentionally empty: g++.dg/warn/Wconversion-real.C: was intended to be deleted with this commit, but accidentally only set to empty file. r150627 | manu | 2009-08-10 19:10:50 +0200 (Mon, 10 Aug 2009) | 12 lines Changed paths: M /trunk/gcc/testsuite/ChangeLog A /trunk/gcc/testsuite/c-c++-common A /trunk/gcc/testsuite/c-c++-common/Wconversion-real.c (from /trunk/gcc/testsuite/gcc.dg/Wconversion-real.c:150571) M /trunk/gcc/testsuite/g++.dg/dg.exp M /trunk/gcc/testsuite/g++.dg/warn/Wconversion-real.C D /trunk/gcc/testsuite/gcc.dg/Wconversion-real.c M /trunk/gcc/testsuite/gcc.dg/dg.exp M /trunk/gcc/testsuite/lib/target-supports.exp 2009-08-10 Manuel López-Ibáñez testsuite/ * gcc.dg/dg.exp: Test also c-c++-common dir. * g++.dg/dg.exp: Likewise. * g++.dg/warn/Wconversion-real.C: Delete. * gcc.dg/Wconversion-real.c: Move to ... * c-c++-common/Wconversion-real.c: ... here. * lib/target-supports.exp (check_effective_target_c,check_effective_target_c++): New. c-c++-common/wdate-time.c, was intended to be moved to a new location but accidentally checked in as an empty file in this commit: r214350 | manu | 2014-08-22 20:39:16 +0200 (Fri, 22 Aug 2014) | 23 lines Changed paths: M /trunk/gcc/c-family/ChangeLog M /trunk/gcc/c-family/c-opts.c M /trunk/gcc/c-family/c.opt M /trunk/gcc/testsuite/ChangeLog A /trunk/gcc/testsuite/c-c++-common/wdate-time.c (from /trunk/gcc/testsuite/gcc.dg/wdate-time.c:214247) D /trunk/gcc/testsuite/g++.dg/warn/wdate-time.C D /trunk/gcc/testsuite/gcc.dg/wdate-time.c gcc/c-family/ChangeLog 2014-08-22 Manuel López-Ibáñez * c.opt (Wcomment): Use CPP, Var and LangEnabledBy. (Wmultichar): Likewise. (Wdate-time): Use C-family languages instead of Common. Use CPP and Var. * c-opts.c (c_common_handle_option): Do not handle the above options here. (sanitize_cpp_opts): Likewise. gcc/testsuite/ChangeLog: 2014-08-22 Manuel L?\195?\179pez-Ib?\195?\161?\195?\177ez * g++.dg/warn/wdate-time.C: Remove. * gcc.dg/wdate-time.c: Move from here... * c-c++-common/wdate-time.c: ... to here. The attached patch fixes these accidents. Bootstrapped and reg-tested on x86_64-pc-linux-gnu. I think I can apply this as obvious. Thanks Bernd. 2016-10-20 Bernd Edlinger * c-c++-common/wdate-time.c: Restored test case. * g++.dg/warn/Wconversion-real.C: Deleted empty file. Index: gcc/testsuite/c-c++-common/wdate-time.c =================================================================== --- gcc/testsuite/c-c++-common/wdate-time.c (revision 241377) +++ gcc/testsuite/c-c++-common/wdate-time.c (working copy) @@ -0,0 +1,6 @@ +/* { dg-do compile } */ +/* { dg-options "-Wdate-time" } */ + +const char time[] = __TIME__; /* { dg-warning "might prevent reproducible builds" } */ +const char date[] = __DATE__; /* { dg-warning "might prevent reproducible builds" } */ +const char timestamp[] = __TIMESTAMP__; /* { dg-warning "might prevent reproducible builds" } */