https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61371

Andrew Pinski <pinskia at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|---                         |FIXED
   Target Milestone|---                         |7.0

--- Comment #8 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
Fixed by:
2016-06-01  Eduard Sanou  <dh...@openmailbox.org>

        * c-common.c (get_source_date_epoch): Rename to
        cb_get_source_date_epoch.
        * c-common.c (cb_get_source_date_epoch): Use a single generic erorr
        message when the parsing fails.  Use error_at instead of fatal_error.
        * c-common.h (get_source_date_epoch): Rename to
        cb_get_source_date_epoch.
        * c-common.h (cb_get_source_date_epoch): Prototype.
        * c-common.h (MAX_SOURCE_DATE_EPOCH): Define.
        * c-common.h (c_omp_region_type): Remove trailing comma.
        * c-lex.c (init_c_lex): Set cb->get_source_date_epoch callback.
        * c-lex.c (c_lex_with_flags): Remove initialization of
        pfile->source_date_epoch.


....
2016-04-28  Eduard Sanou  <dh...@openmailbox.org>
            Matthias Klose  <d...@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-28  Eduard Sanou  <dh...@openmailbox.org>
            Matthias Klose  <d...@debian.org>

        * c-common.c (get_source_date_epoch): New function, gets the
environment
        variable SOURCE_DATE_EPOCH and parses it as long long with error
        handling.
        * c-common.h (get_source_date_epoch): Prototype.
        * c-lex.c (c_lex_with_flags): set parse_in->source_date_epoch.
--- CUT ---
You sent the env SOURCE_DATE_EPOCH and it will be stay that time.

Reply via email to