This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH 1/2] Fix LTO bootstrap documentation


On 10-08-31 06:33 , Andi Kleen wrote:

@@ -2108,6 +2108,13 @@ to work around this, by choosing @code{BOOT_CFLAGS} to avoid the parts
  of the stage1 compiler that were miscompiled, or by using @samp{make
  bootstrap4} to increase the number of stages of bootstrap.

+You can also use @code{BOOT_CFLAGS} to force an LTO bootstrap with
+@samp{BOOT_CFLAGS='-O2 -fwhopr=jobserver -fuse-linker-plugin -frandom-seed=1'}.
+Configure the compiler with @samp{--enable-stage1-languages=c,lto}. This
+will only work with the @command{gold} linker and if linker plugins are
+correctly configured.  The @option{-frandom-seed=1} is needed to avoid
+bootstrap comparison failures.

Could you add an explanation on why frandom-seed avoids the comparison failures? It's not immediately obvious.


OK with that change.


Diego.



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]