gcc/libcpp
Tobias Burnus e8ff5196a8 c.opt (-Wdate-time): New option
2013-11-05  Tobias Burnus  <burnus@net-b.de>

gcc/c-family/
        * c.opt (-Wdate-time): New option
        * c-opts.c (sanitize_cpp_opts): Pass on to libcpp.

gcc/
        * doc/invoke.texi (-Wdate-time): Document.

gcc/fortran
        * lang.opt (-Wdate-time): New option
        * cpp.c (gfc_cpp_option_data): Add warn_date_time.
        (gfc_cpp_init_options, gfc_cpp_handle_option,
        gfc_cpp_post_options): Handle it and pass on to libcpp.

gcc/testsuite/
        * g++.dg/warn/wdate-time.C: New.
        * gcc.dg/wdate-time.c: New.
        * gfortran.dg/wdate-time.F90: New.

libcpp/
        * include/cpplib.h (CPP_W_DATE_TIME): Added.
        (cpp_options): Add warn_date_time.
        * init.c (cpp_create_reader): Init it.
        * macro.c (_cpp_builtin_macro_text): Warn when
        __DATE__/__TIME__/__TIMESTAMP__ is used.

From-SVN: r204420
2013-11-05 21:27:22 +01:00
..
include c.opt (-Wdate-time): New option 2013-11-05 21:27:22 +01:00
po * tr.po: Update. 2013-11-01 22:26:30 +00:00
aclocal.m4
ChangeLog c.opt (-Wdate-time): New option 2013-11-05 21:27:22 +01:00
charset.c Update copyright years in libcpp. 2013-01-14 18:13:59 +00:00
config.in configure.ac: Don't define ENABLE_CHECKING whenever --enable-checking is seen... 2013-02-28 10:58:47 +01:00
configure Add --enable-host-shared configuration option 2013-10-15 20:33:55 +00:00
configure.ac Add --enable-host-shared configuration option 2013-10-15 20:33:55 +00:00
directives-only.c Update copyright years in libcpp. 2013-01-14 18:13:59 +00:00
directives.c re PR middle-end/56461 (GCC is leaking lots of memory) 2013-03-06 17:18:40 +01:00
errors.c Update copyright years in libcpp. 2013-01-14 18:13:59 +00:00
expr.c Implement C++14 digit separators. 2013-10-31 14:01:23 +00:00
files.c files.c (_cpp_stack_include): Fix the highest_location when header file is guarded by #ifndef and is included... 2013-06-24 17:31:45 +00:00
identifiers.c Update copyright years in libcpp. 2013-01-14 18:13:59 +00:00
init.c c.opt (-Wdate-time): New option 2013-11-05 21:27:22 +01:00
internal.h Implement C++14 digit separators. 2013-10-31 14:01:23 +00:00
lex.c Implement C++14 digit separators. 2013-10-31 14:01:23 +00:00
line-map.c Update copyright years in libcpp. 2013-01-14 18:13:59 +00:00
macro.c c.opt (-Wdate-time): New option 2013-11-05 21:27:22 +01:00
Makefile.in Add --enable-host-shared configuration option 2013-10-15 20:33:55 +00:00
makeucnid.c Update copyright years in libcpp. 2013-01-14 18:13:59 +00:00
mkdeps.c Update copyright years in libcpp. 2013-01-14 18:13:59 +00:00
pch.c re PR middle-end/56461 (GCC is leaking lots of memory) 2013-03-01 22:06:04 +01:00
symtab.c Update copyright years in libcpp. 2013-01-14 18:13:59 +00:00
system.h Update copyright years in libcpp. 2013-01-14 18:13:59 +00:00
traditional.c Update copyright years in libcpp. 2013-01-14 18:13:59 +00:00
ucnid.h Update copyright years in libcpp. 2013-01-14 18:13:59 +00:00
ucnid.tab Update copyright years in libcpp. 2013-01-14 18:13:59 +00:00