From: Andreas Schwab <schwab@linux-m68k.org>
To: Eduard Sanou <eduardsanou@openmailbox.org>
Cc: Jakub Jelinek <jakub@redhat.com>, Dhole <dhole@openmailbox.org>,
Bernd Schmidt <bschmidt@redhat.com>,
Matthias Klose <doko@ubuntu.com>,
gcc-patches@gcc.gnu.org
Subject: Re: Allow embedded timestamps by C/C++ macros to be set externally (3)
Date: Fri, 06 May 2016 06:26:00 -0000 [thread overview]
Message-ID: <m21t5fd7nk.fsf@linux-m68k.org> (raw)
In-Reply-To: <20160505232654.GW21574@panther> (Eduard Sanou's message of "Fri, 6 May 2016 01:26:54 +0200")
Eduard Sanou <eduardsanou@openmailbox.org> writes:
> diff --git a/gcc/c-family/c-common.h b/gcc/c-family/c-common.h
> index 1714284..dea2900 100644
> --- a/gcc/c-family/c-common.h
> +++ b/gcc/c-family/c-common.h
> @@ -1086,6 +1086,16 @@ extern vec<tree, va_gc> *make_tree_vector_copy (const vec<tree, va_gc> *);
> c_register_builtin_type. */
> extern GTY(()) tree registered_builtin_types;
>
> +/* Read SOURCE_DATE_EPOCH from environment to have a deterministic
> + timestamp to replace embedded current dates to get reproducible
> + results. Returns -1 if SOURCE_DATE_EPOCH is not defined. */
> +extern time_t cb_get_source_date_epoch (cpp_reader *pfile);
> +
> +/* The value (as a unix timestamp) corresponds to date
> + "Dec 31 9999 23:59:59 UTC", which is the latest date that __DATE__ and
> + __TIME__ can store. */
> +#define MAX_SOURCE_DATE_EPOCH 253402300799
This is bigger than INT_MAX, doesn't it trigger a warning that breaks
bootstrap?
Andreas.
--
Andreas Schwab, schwab@linux-m68k.org
GPG Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5
"And now for something completely different."
next prev parent reply other threads:[~2016-05-06 6:26 UTC|newest]
Thread overview: 48+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-04-18 12:28 Dhole
2016-04-18 13:05 ` Markus Trippelsdorf
2016-05-03 14:44 ` Dhole
2016-05-03 14:53 ` Markus Trippelsdorf
2016-04-25 10:16 ` Bernd Schmidt
2016-04-26 21:29 ` Dhole
2016-04-26 23:33 ` Bernd Schmidt
2016-04-27 15:57 ` Dhole
2016-04-28 9:20 ` Matthias Klose
2016-04-28 9:22 ` Bernd Schmidt
2016-04-28 10:08 ` Jakub Jelinek
2016-04-28 10:31 ` Bernd Schmidt
2016-04-28 10:35 ` Jakub Jelinek
2016-04-28 13:10 ` Bernd Schmidt
2016-04-28 13:14 ` Jakub Jelinek
2016-04-28 18:31 ` Dhole
2016-04-29 7:17 ` Jakub Jelinek
2016-05-05 23:28 ` Eduard Sanou
2016-05-06 6:26 ` Andreas Schwab [this message]
2016-05-10 11:14 ` Dhole
2016-05-10 11:24 ` Andreas Schwab
2016-05-10 11:32 ` Bernd Schmidt
2016-05-10 15:51 ` Joseph Myers
2016-05-12 0:38 ` Dhole
2016-05-12 9:17 ` Bernd Schmidt
2016-05-13 17:11 ` Dhole
2016-05-23 23:00 ` Dhole
2016-05-24 16:45 ` Jeff Law
2016-06-01 16:29 ` Bernd Schmidt
2016-06-01 16:59 ` Matthias Klose
2016-06-02 13:01 ` Christophe Lyon
2016-06-02 13:05 ` Jakub Jelinek
2016-06-02 13:21 ` Christophe Lyon
2016-06-02 13:24 ` Jakub Jelinek
2016-06-02 14:50 ` Christophe Lyon
2016-06-02 15:04 ` Jakub Jelinek
2016-06-02 15:27 ` Bernd Schmidt
2016-06-02 15:30 ` Christophe Lyon
2016-06-02 12:19 ` Fix up dg-set-compiler-env-var Jakub Jelinek
2016-06-02 12:26 ` Bernd Schmidt
2016-06-02 12:33 ` Jakub Jelinek
2016-05-05 23:39 ` Allow embedded timestamps by C/C++ macros to be set externally (3) Dhole
2016-05-09 10:24 ` Bernd Schmidt
2016-05-09 10:38 ` Bernd Schmidt
2016-05-09 10:42 ` Jakub Jelinek
2016-05-09 11:01 ` Bernd Schmidt
2016-05-10 11:18 ` Dhole
2016-04-28 18:57 ` Martin Sebor
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=m21t5fd7nk.fsf@linux-m68k.org \
--to=schwab@linux-m68k.org \
--cc=bschmidt@redhat.com \
--cc=dhole@openmailbox.org \
--cc=doko@ubuntu.com \
--cc=eduardsanou@openmailbox.org \
--cc=gcc-patches@gcc.gnu.org \
--cc=jakub@redhat.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).