public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
* [COMMITTED] Fix two accidentally emptied test cases
@ 2016-10-20 19:37 Bernd Edlinger
  0 siblings, 0 replies; only message in thread
From: Bernd Edlinger @ 2016-10-20 19:37 UTC (permalink / raw)
  To: gcc-patches

[-- Attachment #1: Type: text/plain, Size: 2529 bytes --]

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  <manu@gcc.gnu.org>

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  <manu@gcc.gnu.org>

	* 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 
<manu@gcc.gnu.org>

	* 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.

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: patch-testsuite.diff --]
[-- Type: text/x-patch; name="patch-testsuite.diff", Size: 774 bytes --]

2016-10-20  Bernd Edlinger  <bernd.edlinger@hotmail.de>

	* 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" }  */

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2016-10-20 19:37 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-10-20 19:37 [COMMITTED] Fix two accidentally emptied test cases Bernd Edlinger

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).