]> git.ipfire.org Git - thirdparty/gcc.git/blobdiff - libcpp/ChangeLog
c-common.c (get_source_date_epoch): New function...
[thirdparty/gcc.git] / libcpp / ChangeLog
index acb8d75dccfe5f79863b1657034da778714f5170..1dc1c73bff23d3316ab77405f096dd8bf7bc03d3 100644 (file)
@@ -1,3 +1,15 @@
+2016-04-28  Eduard Sanou  <dhole@openmailbox.org>
+           Matthias Klose  <doko@debian.org>
+
+       * include/cpplib.h (cpp_init_source_date_epoch): Prototype.
+       * init.c (cpp_init_source_date_epoch): New function.
+       * internal.h: Added source_date_epoch variable to struct
+       cpp_reader to store a reproducible date.
+       * macro.c (_cpp_builtin_macro_text): Set pfile->date timestamp from 
+       pfile->source_date_epoch instead of localtime if source_date_epoch is 
+       set, to be used for __DATE__ and __TIME__ macros to help reproducible 
+       builds.
+
 2016-04-13  Bernd Schmidt  <bschmidt@redhat.com>
 
        Patch from Roger Orr <rogero@howzatt.demon.co.uk>