Re: Function attribute for optimization level

2017-06-05 Thread Jilles Tjoelker
On Mon, Jun 05, 2017 at 02:09:11PM +0300, Konstantin Belousov wrote: > On Mon, Jun 05, 2017 at 01:03:24PM +0300, Konstantin Belousov wrote: > > I think that toolchain@ is more suitable list for the discussion. > > On Sun, Jun 04, 2017 at 05:44:31PM -0500, Eric van Gyzen wrote: > > > _thr_rtld_init

Re: Function attribute for optimization level

2017-06-05 Thread Dimitry Andric
On 5 Jun 2017, at 13:09, Konstantin Belousov wrote: > > On Mon, Jun 05, 2017 at 01:03:24PM +0300, Konstantin Belousov wrote: >> I think that toolchain@ is more suitable list for the discussion. >> >> On Sun, Jun 04, 2017 at 05:44:31PM -0500, Eric van Gyzen wrote: >>> _thr_rtld_init() calls memcp

Re: Function attribute for optimization level

2017-06-05 Thread Konstantin Belousov
On Mon, Jun 05, 2017 at 01:03:24PM +0300, Konstantin Belousov wrote: > I think that toolchain@ is more suitable list for the discussion. > > On Sun, Jun 04, 2017 at 05:44:31PM -0500, Eric van Gyzen wrote: > > _thr_rtld_init() calls memcpy() for the sole purpose of resolving its > > PLT entry. With

Re: Function attribute for optimization level

2017-06-05 Thread Konstantin Belousov
I think that toolchain@ is more suitable list for the discussion. On Sun, Jun 04, 2017 at 05:44:31PM -0500, Eric van Gyzen wrote: > _thr_rtld_init() calls memcpy() for the sole purpose of resolving its > PLT entry. With clang 4.0 and the current code, compiler optimization > defeats this attempt b