Re: [pushed] c++: Make references to __cxa_pure_virtual weak.

2020-05-12 Thread Christophe Lyon via Gcc-patches
On Tue, 12 May 2020 at 10:28, Andreas Schwab wrote: > > On Mai 11 2020, Jason Merrill via Gcc-patches wrote: > > > If a program has no other dependencies on libstdc++, we shouldn't require it > > just for __cxa_pure_virtual, which is only there to give a prettier > > diagnostic before crashing

Re: [pushed] c++: Make references to __cxa_pure_virtual weak.

2020-05-12 Thread Andreas Schwab
On Mai 11 2020, Jason Merrill via Gcc-patches wrote: > If a program has no other dependencies on libstdc++, we shouldn't require it > just for __cxa_pure_virtual, which is only there to give a prettier > diagnostic before crashing the program; resolving the reference to NULL will > also crash,

[pushed] c++: Make references to __cxa_pure_virtual weak.

2020-05-11 Thread Jason Merrill via Gcc-patches
If a program has no other dependencies on libstdc++, we shouldn't require it just for __cxa_pure_virtual, which is only there to give a prettier diagnostic before crashing the program; resolving the reference to NULL will also crash, just without the diagnostic. Tested x86_64-pc-linux-gnu,