https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114790
--- Comment #10 from Andrew Pinski ---
(In reply to Andrew Pinski from comment #9)
> Created attachment 58003 [details]
> t2.cc
>
> `gcc -Wfatal-errors -fvisibility=hidden -shared t1.cc t2.cc -o t.so -fPIC
> -O2 -flto=1 -flto-partition=1to1 -w`
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114790
--- Comment #9 from Andrew Pinski ---
Created attachment 58003
--> https://gcc.gnu.org/bugzilla/attachment.cgi?id=58003&action=edit
t2.cc
`gcc -Wfatal-errors -fvisibility=hidden -shared t1.cc t2.cc -o t.so -fPIC -O2
-flto=1 -flto-partition=1t
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114790
--- Comment #8 from Andrew Pinski ---
Created attachment 58002
--> https://gcc.gnu.org/bugzilla/attachment.cgi?id=58002&action=edit
t1.cc
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114790
--- Comment #7 from Sam James ---
`g++-14 -fPIC -O2 -flto -flto-partition=1to1 -shared
-Wl,--version-script=ze.exports reduced-a.ii reduced-b.ii`
it violates ODR though:
```
/usr/lib/gcc/x86_64-pc-linux-gnu/14/../../../../x86_64-pc-linux-gnu/bi
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114790
--- Comment #6 from Sam James ---
Created attachment 58001
--> https://gcc.gnu.org/bugzilla/attachment.cgi?id=58001&action=edit
reduced-b.ii
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114790
--- Comment #5 from Sam James ---
Created attachment 58000
--> https://gcc.gnu.org/bugzilla/attachment.cgi?id=58000&action=edit
reduced-a.b
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114790
--- Comment #4 from Sam James ---
I'm going to kick off a reduction but don't count on me either, as I hate doing
LTO ones.