https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119977

--- Comment #7 from Sam James <sjames at gcc dot gnu.org> ---
OK, if I run:
```
/home/sam/build/gcc-after/./stage2-gcc/xg++
-B/home/sam/build/gcc-after/./stage2-gcc/
-B/home/sam/prefix/gcc-after/x86_64-pc-linux-gnu/bin/ -nostdinc++
-B/home/sam/build/gcc-after/stage2-x86_64-pc-linux-gnu/libstdc++-v3/src/.libs
-B/home/sam/build/gcc-after/stage2-x86_64-pc-linux-gnu/libstdc++-v3/libsupc++/.libs
 -fno-PIE -c   -O2 -pipe -march=znver4 -ggdb3 -fno-checking -fcf-protection
-flto=jobserver -frandom-seed=1 -DIN_GCC    -fno-exceptions -fno-rtti
-fasynchronous-unwind-tables -W -Wall -Wno-error=narrowing -Wwrite-strings
-Wcast-qual -Wmissing-format-attribute -Wconditionally-supported
-Woverloaded-virtual -pedantic -Wno-long-long -Wno-variadic-macros
-Wno-overlength-strings  -fno-PIE gimple-match-6-stage2.ii -o b -fchecking=1
```
and
```
/home/sam/build/gcc-after/./stage2-gcc/xg++
-B/home/sam/build/gcc-after/./stage2-gcc/
-B/home/sam/prefix/gcc-after/x86_64-pc-linux-gnu/bin/ -nostdinc++
-B/home/sam/build/gcc-after/stage2-x86_64-pc-linux-gnu/libstdc++-v3/src/.libs
-B/home/sam/build/gcc-after/stage2-x86_64-pc-linux-gnu/libstdc++-v3/libsupc++/.libs
 -fno-PIE -c   -O2 -pipe -march=znver4 -ggdb3 -fno-checking -fcf-protection
-flto=jobserver -frandom-seed=1 -DIN_GCC    -fno-exceptions -fno-rtti
-fasynchronous-unwind-tables -W -Wall -Wno-error=narrowing -Wwrite-strings
-Wcast-qual -Wmissing-format-attribute -Wconditionally-supported
-Woverloaded-virtual -pedantic -Wno-long-long -Wno-variadic-macros
-Wno-overlength-strings  -fno-PIE gimple-match-6-stage2.ii -o b -fchecking=1
```

then 
```
~/git/gcc/contrib/compare-lto -p a b
```

I get:
```
$ git diff --no-index --word-diff
<(/home/sam/build/gcc-after/stage2-gcc/lto-dump -demangle -list a.stripped
-objects) <(/home/sam/build/gcc-after/stage2-gcc/lto-dump -demangle -list
b.stripped -objects)
--- a/dev/fd/63
+++ b/dev/fd/62
@@ -1,240 +1,240 @@

    LTO Object Name: [-a.stripped-]{+b.stripped+}

No.    Offset    Size       Section Name

 1   [-663832   211714-]{+663837   211715+}   .gnu.lto_.odr_types.1
 2   [-875546-]{+875552+}      122   .gnu.lto_.profile.1
 3   [-875668-]{+875674+}     8147   .gnu.lto_.icf.1
 4   [-883815-]{+883821+}     6179   .gnu.lto_.ipa_sra.1
 5   [-889994-]{+890000+}    18958   .gnu.lto_.inline.1
 6   [-908952-]{+908958+}    19955   .gnu.lto_.jmpfuncs.1
 7   [-928907-]{+928913+}      559   .gnu.lto_.pureconst.1
 8   [-929466-]{+929472+}     3301   .gnu.lto_.ipa_modref.1
 9   [-932767-]{+932773+}        8   .gnu.lto_.lto.1
10   [-932775      553-]{+932781      555+}  
.gnu.lto__ZN16wide_int_storageC2ERKS_.0.1
11   [-933328      862-]{+933336      863+}  
.gnu.lto__ZN16wide_int_storageaSERKS_.2.1
12   [-934190-]{+934199+}      820  
.gnu.lto__ZN16wide_int_storage6createEj.3.1
[...]
``

so, I'll cvise based on that and pray?

Reply via email to