On Wed, Feb 23, 2005 at 12:38:46AM +1100, Paul Hampson wrote: > Why not? Is there something non-deterministic in the compilation > process? > > Ideally, version x of gcc should produce the same output natively > as when cross-compiling. > > Or have I missed something important?
-frandom-seed=string This option provides a seed that GCC uses when it would otherwise use random numbers. At present, this is used to generate certain symbol names that have to be different in every compiled file. The string should be different for every file you compile. -fno-guess-branch-probability Do not guess branch probabilities using a randomized model. Sometimes gcc will opt to use a randomized model to guess branch probabilities, when none are available from either profiling feedback (-fprofile-arcs) or __builtin_expect. This means that different runs of the compiler on the same program may produce different object code. Also, the first 16 bytes will differ in an ELF format .o, see http://lists.debian.org/debian-devel/2004/09/msg00201.html -- Petri Latvala
signature.asc
Description: Digital signature