This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: GCC file timestamp
- From: Ian Lance Taylor <iant at google dot com>
- To: Hacker <Roger dot Williams at Trans dot ge dot com>
- Cc: gcc-help at gcc dot gnu dot org
- Date: 14 May 2007 11:25:53 -0700
- Subject: Re: GCC file timestamp
- References: <10607696.post@talk.nabble.com>
Hacker <Roger.Williams@Trans.ge.com> writes:
> GCC inserts a timestamp in the executables it creates. Is there a way to
> turn off this feature? We want our executables to have the same exact cksum
> from make to make.
gcc does not insert a timestamp. Unless you explicitly use the
preprocessor macro __TIMESTAMP__ in some way that affects the source
code.
I would guess that your assembler is inserting the timestamp when it
creates the object file. It's hard to say for sure since you didn't
mention which operating system you are using.
Ian