Re: [PING] genattrab.c generate switch

2016-04-17 Thread Jeff Law
On 03/04/2016 08:13 AM, Bernd Schmidt wrote: On 03/04/2016 03:27 PM, Patrick Palka wrote: I still suggest to try making write_test_expr() avoid emitting redundant parentheses for chains of || or &&, which would fix the original issue all the same. Previously you claimed that such a change would

Re: [PING] genattrab.c generate switch

2016-03-04 Thread Patrick Palka
On Fri, Mar 4, 2016 at 12:49 PM, Bernd Schmidt wrote: > On 03/04/2016 06:27 PM, Bernd Schmidt wrote: >> >> On 03/04/2016 06:14 PM, Patrick Palka wrote: >> >>> I just quickly tested building the generated insn-attrtab.c with and >>> without the patch using my host gcc 5.3 compiler and the .s output

Re: [PING] genattrab.c generate switch

2016-03-04 Thread Jakub Jelinek
On Fri, Mar 04, 2016 at 07:01:10PM +0100, Bernd Schmidt wrote: > On 03/04/2016 06:56 PM, Jakub Jelinek wrote: > >I think we don't need to guarantee identical assembly, the reason I've > >suggested that was if it passed, it would be much easier to verify. > >Without that, I think it should be bootst

Re: [PING] genattrab.c generate switch

2016-03-04 Thread Bernd Schmidt
On 03/04/2016 06:56 PM, Jakub Jelinek wrote: I think we don't need to guarantee identical assembly, the reason I've suggested that was if it passed, it would be much easier to verify. Without that, I think it should be bootstrapped at least on one other target. Note the cases you remove the pare

Re: [PING] genattrab.c generate switch

2016-03-04 Thread Jakub Jelinek
On Fri, Mar 04, 2016 at 06:49:58PM +0100, Bernd Schmidt wrote: > On 03/04/2016 06:27 PM, Bernd Schmidt wrote: > >On 03/04/2016 06:14 PM, Patrick Palka wrote: > > > >>I just quickly tested building the generated insn-attrtab.c with and > >>without the patch using my host gcc 5.3 compiler and the .s

Re: [PING] genattrab.c generate switch

2016-03-04 Thread Bernd Schmidt
On 03/04/2016 06:27 PM, Bernd Schmidt wrote: On 03/04/2016 06:14 PM, Patrick Palka wrote: I just quickly tested building the generated insn-attrtab.c with and without the patch using my host gcc 5.3 compiler and the .s output is not the same. Hmm, looking at the 003t.original dump it looks li

Re: [PING] genattrab.c generate switch

2016-03-04 Thread Bernd Schmidt
On 03/04/2016 05:03 PM, Jesper Broge Jørgensen wrote: I can look into that if you deem it worth it, or would you rather just go with Patriks suppressed parenthesis? For the moment (in stage4) we'll at most go with Patrick's patch. Whether we do anything beyond that depends on whether we can d

Re: [PING] genattrab.c generate switch

2016-03-04 Thread Bernd Schmidt
On 03/04/2016 06:14 PM, Patrick Palka wrote: I just quickly tested building the generated insn-attrtab.c with and without the patch using my host gcc 5.3 compiler and the .s output is not the same. Hmm, looking at the 003t.original dump it looks like there are differences in SAVE_EXPRs. Indee

Re: [PING] genattrab.c generate switch

2016-03-04 Thread Patrick Palka
On Fri, Mar 4, 2016 at 11:42 AM, Jakub Jelinek wrote: > On Fri, Mar 04, 2016 at 11:34:06AM -0500, Patrick Palka wrote: >> * genattrtab.c (write_test_expr): New parameter EMIT_PARENS >> which defaults to true. Emit an outer pair of parentheses only if >> EMIT_PARENS. When contin

Re: [PING] genattrab.c generate switch

2016-03-04 Thread Jakub Jelinek
On Fri, Mar 04, 2016 at 11:34:06AM -0500, Patrick Palka wrote: > * genattrtab.c (write_test_expr): New parameter EMIT_PARENS > which defaults to true. Emit an outer pair of parentheses only if > EMIT_PARENS. When continuing a chain of && or ||, don't emit > parentheses for

Re: [PING] genattrab.c generate switch

2016-03-04 Thread Patrick Palka
On Fri, 4 Mar 2016, Jakub Jelinek wrote: > On Fri, Mar 04, 2016 at 04:13:41PM +0100, Bernd Schmidt wrote: > > On 03/04/2016 03:27 PM, Patrick Palka wrote: > > >>>I still suggest to try making write_test_expr() avoid emitting > > >>>redundant parentheses for chains of || or &&, which would fix the

Re: [PING] genattrab.c generate switch

2016-03-04 Thread Jesper Broge Jørgensen
On 04/03/16 16:13, Bernd Schmidt wrote: On 03/04/2016 03:27 PM, Patrick Palka wrote: I still suggest to try making write_test_expr() avoid emitting redundant parentheses for chains of || or &&, which would fix the original issue all the same. Previously you claimed that such a change would not

Re: [PING] genattrab.c generate switch

2016-03-04 Thread Jakub Jelinek
On Fri, Mar 04, 2016 at 04:13:41PM +0100, Bernd Schmidt wrote: > On 03/04/2016 03:27 PM, Patrick Palka wrote: > >>>I still suggest to try making write_test_expr() avoid emitting > >>>redundant parentheses for chains of || or &&, which would fix the > >>>original issue all the same. Previously you

Re: [PING] genattrab.c generate switch

2016-03-04 Thread Bernd Schmidt
On 03/04/2016 03:27 PM, Patrick Palka wrote: I still suggest to try making write_test_expr() avoid emitting redundant parentheses for chains of || or &&, which would fix the original issue all the same. Previously you claimed that such a change would not be simpler than your current patch, but I

Re: [PING] genattrab.c generate switch

2016-03-04 Thread Patrick Palka
On Fri, 4 Mar 2016, David Malcolm wrote: On Thu, 2016-03-03 at 17:36 -0500, Patrick Palka wrote: On Thu, Mar 3, 2016 at 4:29 PM, Jesper Broge Jørgensen wrote: On 18/02/16 13:22, Bernd Schmidt wrote: On 01/19/2016 12:47 PM, Jesper Broge Jørgensen wrote: Here is the reformatted patch: T

Re: [PING] genattrab.c generate switch

2016-03-04 Thread David Malcolm
On Thu, 2016-03-03 at 17:36 -0500, Patrick Palka wrote: > On Thu, Mar 3, 2016 at 4:29 PM, Jesper Broge Jørgensen > wrote: > > > > On 18/02/16 13:22, Bernd Schmidt wrote: > > > > > > On 01/19/2016 12:47 PM, Jesper Broge Jørgensen wrote: > > > > > > > > Here is the reformatted patch: > > > > > >

Re: [PING] genattrab.c generate switch

2016-03-03 Thread Patrick Palka
On Thu, Mar 3, 2016 at 4:29 PM, Jesper Broge Jørgensen wrote: > > On 18/02/16 13:22, Bernd Schmidt wrote: >> >> On 01/19/2016 12:47 PM, Jesper Broge Jørgensen wrote: >>> >>> Here is the reformatted patch: >> >> >> This will probably have to wait until stage1. >> >>> + const int code = GET_COD

Re: [PING] genattrab.c generate switch

2016-03-03 Thread Jesper Broge Jørgensen
On 18/02/16 13:22, Bernd Schmidt wrote: On 01/19/2016 12:47 PM, Jesper Broge Jørgensen wrote: Here is the reformatted patch: This will probably have to wait until stage1. + const int code = GET_CODE (op2); + if (code != IOR) +{ + if (code == EQ_ATTR) All the formatting

Re: [PING] genattrab.c generate switch

2016-02-18 Thread Jesper Broge Jørgensen
On 18/02/16 13:22, Bernd Schmidt wrote: On 01/19/2016 12:47 PM, Jesper Broge Jørgensen wrote: Here is the reformatted patch: This will probably have to wait until stage1. + const int code = GET_CODE (op2); + if (code != IOR) +{ + if (code == EQ_ATTR) All the formatting

Re: [PING] genattrab.c generate switch

2016-02-18 Thread Bernd Schmidt
On 01/19/2016 12:47 PM, Jesper Broge Jørgensen wrote: Here is the reformatted patch: This will probably have to wait until stage1. + const int code = GET_CODE (op2); + if (code != IOR) +{ + if (code == EQ_ATTR) All the formatting still looks completely mangled. This was p

Re: [PING] genattrab.c generate switch

2016-02-17 Thread Jesper Broge Jørgensen
On 19/01/16 10:44, Richard Biener wrote: On Mon, Jan 18, 2016 at 7:48 PM, Jeff Law wrote: On 01/18/2016 07:09 AM, Jesper Broge Jørgensen wrote: Ping patch: https://gcc.gnu.org/ml/gcc-patches/2016-01/msg00784.html I'd put it in my gcc-7 queue. But if Richard, Bernd, Richi or someone else wa

Re: [PING] genattrab.c generate switch

2016-01-19 Thread Jesper Broge Jørgensen
On 19/01/16 10:44, Richard Biener wrote: On Mon, Jan 18, 2016 at 7:48 PM, Jeff Law wrote: On 01/18/2016 07:09 AM, Jesper Broge Jørgensen wrote: Ping patch: https://gcc.gnu.org/ml/gcc-patches/2016-01/msg00784.html I'd put it in my gcc-7 queue. But if Richard, Bernd, Richi or someone else wa

Re: [PING] genattrab.c generate switch

2016-01-19 Thread Richard Biener
On Mon, Jan 18, 2016 at 7:48 PM, Jeff Law wrote: > On 01/18/2016 07:09 AM, Jesper Broge Jørgensen wrote: >> >> Ping patch: >> >> https://gcc.gnu.org/ml/gcc-patches/2016-01/msg00784.html > > I'd put it in my gcc-7 queue. But if Richard, Bernd, Richi or someone else > wants to work though the chang

Re: [PING] genattrab.c generate switch

2016-01-18 Thread Jeff Law
On 01/18/2016 07:09 AM, Jesper Broge Jørgensen wrote: Ping patch: https://gcc.gnu.org/ml/gcc-patches/2016-01/msg00784.html I'd put it in my gcc-7 queue. But if Richard, Bernd, Richi or someone else wants to work though the changes as a bugfix for bootstrapping on platforms with crippled compi

[PING] genattrab.c generate switch

2016-01-18 Thread Jesper Broge Jørgensen
Ping patch: https://gcc.gnu.org/ml/gcc-patches/2016-01/msg00784.html thanks