Re: C++ PATCH for c++/88548, this accepted in static member functions

2019-01-07 Thread Jason Merrill
On 12/22/18 4:38 PM, Marek Polacek wrote: I noticed that we weren't diagnosing using 'this' in noexcept-specifiers of static member functions, and Jakub pointed out that this is also true for trailing-return-type. cp_parser has local_variables_forbidden_p to detect using local vars and 'this' in

Re: [PATCH] x86: Don't generate vzeroupper if caller is AVX_U128_DIRTY

2019-01-07 Thread Uros Bizjak
On Mon, Jan 7, 2019 at 6:40 PM H.J. Lu wrote: > > There is no need to generate vzeroupper if caller uses upper bits of > AVX/AVX512 registers, We track caller's avx_u128_state and avoid > vzeroupper when caller's avx_u128_state is AVX_U128_DIRTY. > > Tested on i686 and x86-64 with and without --w

Re: [PATCH] Optimize away x86 mem stores of what the mem contains already (PR rtl-optimization/79593)

2019-01-07 Thread Uros Bizjak
On Mon, Jan 7, 2019 at 11:51 PM Jakub Jelinek wrote: > > Hi! > > As mentioned in that PR, we have a SI->DImode zero extension and RA happens > to choose to zero extend from a SImode memory slot which is the low part of > the DImode memory slot into which the zero extension is to be stored. > Unfor

<    1   2