Re: [PATCH 1/2] Come up with function_decl_type and use it in tree_function_decl.

2019-07-08 Thread Jason Merrill
On Mon, Jul 8, 2019 at 8:51 AM Martin Liška wrote: > > On 7/5/19 12:09 AM, Marc Glisse wrote: > > On Wed, 3 Jul 2019, Richard Biener wrote: > > > >> On July 3, 2019 4:53:30 PM GMT+02:00, "Martin Liška" > >> wrote: > >>> On 7/2/19 7:15 PM, Marc Glisse wrote: > On Tue, 2 Jul 2019, Martin Lišk

[PATCH 2/3] change class-key of PODs to struct and others to class (PR 61339)

2019-07-08 Thread Martin Sebor
The attached patch changes the class-key of class definitions that satisfy the requirements on a POD struct to 'struct', and that of struct definitions that aren't POD to class, according to the GCC coding convention. The patch is also prerequisite for GCC being able to compile cleanly with -Wmis

Re: [PATCH] Add generic support for "noinit" attribute

2019-07-08 Thread Martin Sebor
On 7/8/19 5:10 AM, Christophe Lyon wrote: On Sat, 6 Jul 2019 at 19:57, Martin Sebor wrote: On 7/4/19 9:27 AM, Christophe Lyon wrote: Hi, Similar to what already exists for TI msp430 or in TI compilers for arm, this patch adds support for the "noinit" attribute. It is convenient for embedded

Re: [patch, c++ openmp] Improve diagnostics for unmappable types

2019-07-08 Thread Jakub Jelinek
On Thu, Jul 04, 2019 at 12:44:32PM +0100, Andrew Stubbs wrote: > On 03/07/2019 18:58, Jason Merrill wrote: > > OK, thanks. > > Committed. This broke following testcase. error_mark_node type isn't really incomplete, it is errorneous, doesn't have TYPE_MAIN_DECL and we should have diagnosed it earl

[PATCH] Improve scan_operand_equal_p

2019-07-08 Thread Jakub Jelinek
Hi! The 4 testcases below weren't vectorized, because while tree-vect-data-refs.c now allows more forms of simd lane access, scan_operand_equal_p didn't allow combining them together. Fixed thusly, bootstrapped/regtested on x86_64-linux and i686-linux, committed to trunk. 2019-07-08 Jakub Jelin

Re: [PATCH 2/3] change class-key of PODs to struct and others to class (PR 61339)

2019-07-08 Thread Martin Sebor
Hopefully with the right patch this time (thanks Jon). On 7/8/19 4:00 PM, Martin Sebor wrote: The attached patch changes the class-key of class definitions that satisfy the requirements on a POD struct to 'struct', and that of struct definitions that aren't POD to class, according to the GCC cod

Re: [PATCH 1/2] Come up with function_decl_type and use it in tree_function_decl.

2019-07-08 Thread Marc Glisse
On Mon, 8 Jul 2019, Martin Liška wrote: The patch apparently has DECL_IS_OPERATOR_DELETE only on the replaceable global deallocation functions, not all delete operators, contrary to DECL_IS_OPERATOR_NEW, so the name is misleading. On the other hand, those seem to be the ones for which the opti

Re: [PATCH V4] PR88497 - Extend reassoc for vector bit_field_ref

2019-07-08 Thread Kewen.Lin
Hi Segher, on 2019/7/9 上午12:32, Segher Boessenkool wrote: > Hi Kewen, > > On Mon, Jul 08, 2019 at 04:07:00PM +0800, Kewen.Lin wrote: >> gcc/ChangeLog > > (You have trailing spaces in the changelog, fwiw). > Thanks for catching! >> --- /dev/null >> +++ b/gcc/testsuite/gcc.dg/tree-ssa/pr88497-1

[PING][PATCH] constrain one character optimization to one character stores (PR 90989)

2019-07-08 Thread Martin Sebor
Ping: https://gcc.gnu.org/ml/gcc-patches/2019-06/msg01506.html Jeff (et al.), do you have any outstanding questions/concerns about the patch? Martin On 6/27/19 4:30 PM, Jeff Law wrote: On 6/27/19 12:40 PM, Richard Biener wrote: On June 27, 2019 7:04:32 PM GMT+02:00, Jakub Jelinek wrote: On

Re: [PATCH, Modula-2 (C/C++/D/F/Go/Jit)] (Register spec fn) (v2)

2019-07-08 Thread Matthias Klose
On 08.07.19 23:19, Matthias Klose wrote: > On 14.06.19 15:09, Gaius Mulley wrote: >> >> Hello, >> >> here is version two of the patches which introduce Modula-2 into the >> GCC trunk. The patches include: >> >> (*) a patch to allow all front ends to register a lang spec function. >>(inc

PR90723

2019-07-08 Thread Prathamesh Kulkarni
Hi, For following test-case: typedef double v4df __attribute__ ((vector_size (32))); void foo(v4df); int main () { volatile v4df x1; x1 = (v4df) { 10.0, 20.0, 30.0, 40.0 }; foo (x1); return 0; } Compiling with -msve-vector-bits=256, the compiler goes into infinite recursion and eventuall

<    1   2