[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Cross-compiling and dist-cc (Was: Let's remove mips, mipsel, s390, ... (Was: [Fwd: Re: GTK+2.0 2.6.2-3 and buildds running out of space]))

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?

           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.

           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

Attachment: signature.asc
Description: Digital signature

Reply to: