Unlike bootstrap-debug, bootstrap-debug-lean used to pass compare using the traditional compare command, because it compiled both stage2 and stage3 with options that used to generate identical output (-fcompare-debug= in stage2 vs -fcompare-debug in stage3). Since we started adding relevant command-line flags to DW_AT_producer, this is no longer the case, and stages 2 and 3 object files that differ in nothing but the DW_AT_producer strings. -fcompare-debug is short for -fcompare-debug=-gtoggle, so stage3 compiles twice, once with the normal options, once with toggled -g, to then compare the temporary final dumps. When enabled, both compilations get from the driver an additional -frandom-seed flag (if none is given explicitly). -fcompare-debug= is short for -fno-compare-debug, disabling the second compilation. The difference between the DW_AT_producer lines are the different -fcompare-debug flags, and the presence of the -frandom-seed flag in the stage3 compilation. It is easy and sensible enough to filter the -fcompare-debug flags out of the DW_AT_producer string. This option should never affect the compilation output, it just determines whether or not to perform an additional compilation that should produce the same executable output. However, dropping -frandom-seed is not quite correct, in that it might have other consequences on the compilation. So, it makes little sense to make the effort to drop it when it's implicit; for those comparing compiler output differences, it might even hint at what causes, and could fix, difficult to explain differences, namely, explicitly supplying -frandom-seed options. They don't seem to matter for compiler bootstraps, though, at least for now, so we can safely refrain from issuing -frandom-seed (or maybe we already issue it where needed :-), and then, for bootstrap-debug-lean, use the compare-debug script, that strips out debug information before comparing the object files. for config/ChangeLog * bootstrap-debug-lean.mk (do-compare): Use the contrib/compare-debug script. for gcc/ChangeLog * dwarf2out.c (gen_producer_string): Discard OPT_fcompare_debug. From-SVN: r254750
Name |
Last commit
|
Last update |
---|---|---|
.. | ||
ChangeLog | Loading commit data... | |
acinclude.m4 | Loading commit data... | |
acx.m4 | Loading commit data... | |
asmcfi.m4 | Loading commit data... | |
ax_check_define.m4 | Loading commit data... | |
bitfields.m4 | Loading commit data... | |
bootstrap-O1.mk | Loading commit data... | |
bootstrap-O3.mk | Loading commit data... | |
bootstrap-asan.mk | Loading commit data... | |
bootstrap-cet.mk | Loading commit data... | |
bootstrap-debug-big.mk | Loading commit data... | |
bootstrap-debug-ckovw.mk | Loading commit data... | |
bootstrap-debug-lean.mk | Loading commit data... | |
bootstrap-debug-lib.mk | Loading commit data... | |
bootstrap-debug.mk | Loading commit data... | |
bootstrap-lto-noplugin.mk | Loading commit data... | |
bootstrap-lto.mk | Loading commit data... | |
bootstrap-mpx.mk | Loading commit data... | |
bootstrap-time.mk | Loading commit data... | |
bootstrap-ubsan.mk | Loading commit data... | |
codeset.m4 | Loading commit data... | |
depstand.m4 | Loading commit data... | |
dfp.m4 | Loading commit data... | |
elf.m4 | Loading commit data... | |
enable.m4 | Loading commit data... | |
extensions.m4 | Loading commit data... | |
futex.m4 | Loading commit data... | |
gc++filt.m4 | Loading commit data... | |
gcc-plugin.m4 | Loading commit data... | |
gettext-sister.m4 | Loading commit data... | |
gettext.m4 | Loading commit data... | |
glibc21.m4 | Loading commit data... | |
gthr.m4 | Loading commit data... | |
gxx-include-dir.m4 | Loading commit data... | |
hwcaps.m4 | Loading commit data... | |
iconv.m4 | Loading commit data... | |
intdiv0.m4 | Loading commit data... | |
inttypes-pri.m4 | Loading commit data... | |
inttypes.m4 | Loading commit data... | |
inttypes_h.m4 | Loading commit data... | |
isl.m4 | Loading commit data... | |
largefile.m4 | Loading commit data... | |
lcmessage.m4 | Loading commit data... | |
ld-symbolic.m4 | Loading commit data... | |
lead-dot.m4 | Loading commit data... | |
lib-ld.m4 | Loading commit data... | |
lib-link.m4 | Loading commit data... | |
lib-prefix.m4 | Loading commit data... | |
libstdc++-raw-cxx.m4 | Loading commit data... | |
lthostflags.m4 | Loading commit data... | |
math.m4 | Loading commit data... | |
mh-alpha-linux | Loading commit data... | |
mh-cygwin | Loading commit data... | |
mh-darwin | Loading commit data... | |
mh-djgpp | Loading commit data... | |
mh-mingw | Loading commit data... | |
mh-pa | Loading commit data... | |
mh-pa-hpux10 | Loading commit data... | |
mh-ppc-aix | Loading commit data... | |
mmap.m4 | Loading commit data... | |
mt-alphaieee | Loading commit data... | |
mt-android | Loading commit data... | |
mt-d30v | Loading commit data... | |
mt-gnu | Loading commit data... | |
mt-mips-elfoabi | Loading commit data... | |
mt-mips-gnu | Loading commit data... | |
mt-mips16-compat | Loading commit data... | |
mt-nios2-elf | Loading commit data... | |
mt-ospace | Loading commit data... | |
mt-sde | Loading commit data... | |
mt-spu | Loading commit data... | |
multi.m4 | Loading commit data... | |
nls.m4 | Loading commit data... | |
no-executables.m4 | Loading commit data... | |
override.m4 | Loading commit data... | |
picflag.m4 | Loading commit data... | |
plugins.m4 | Loading commit data... | |
po.m4 | Loading commit data... | |
proginstall.m4 | Loading commit data... | |
progtest.m4 | Loading commit data... | |
sjlj.m4 | Loading commit data... | |
stdint.m4 | Loading commit data... | |
stdint_h.m4 | Loading commit data... | |
target-posix | Loading commit data... | |
tcl.m4 | Loading commit data... | |
tls.m4 | Loading commit data... | |
uintmax_t.m4 | Loading commit data... | |
ulonglong.m4 | Loading commit data... | |
unwind_ipinfo.m4 | Loading commit data... | |
warnings.m4 | Loading commit data... | |
weakref.m4 | Loading commit data... | |
zlib.m4 | Loading commit data... |