title: How to produce deterministic binary output with g++?
body: <p>I work in a very regulated environment where we need to be able to produce identical binary input give the same source code every time be build out products.  We currently use an ancient version of g++ that has been patched to not write anything like a date/time in the resulting binaries that would change from build to build, but I would like to update to g++ 4.7.2.  Does anyone know of a patch, or have suggestions of what I need to look for to take two identical pieces of source code and produce identical binary outputs?</p>