RE: genattrtab regression: infinite loop

2013-02-11 Thread Paulo Matos
> -Original Message- > From: Michael Matz [mailto:m...@suse.de] > Sent: 11 February 2013 15:25 > To: Paulo Matos > Cc: Richard Biener; gcc@gcc.gnu.org > Subject: RE: genattrtab regression: infinite loop > > Only by giving a nicer error message than an infinite loo

RE: genattrtab regression: infinite loop

2013-02-11 Thread Michael Matz
Hi, On Mon, 11 Feb 2013, Paulo Matos wrote: > The following self-contained md file generates an infinite loop in genattrtab: > (define_attr "fpsize" "short,long" (const_string "short")) > > (define_attr "fplength" "" > (if_then_else > (eq_attr "fpsize" "long") > (const_int

RE: genattrtab regression: infinite loop

2013-02-11 Thread Paulo Matos
at 4, so calculating the value of fpsize should be straightforward. It feels like this could be improved. Do you agree? Paulo Matos > -Original Message- > From: Richard Biener [mailto:richard.guent...@gmail.com] > Sent: 11 February 2013 12:49 > To: Paulo Matos > Cc: gcc@gcc.

Re: genattrtab regression: infinite loop

2013-02-11 Thread Richard Biener
On Mon, Feb 11, 2013 at 1:36 PM, Paulo Matos wrote: >> -Original Message- >> From: Richard Biener [mailto:richard.guent...@gmail.com] >> Sent: 11 February 2013 10:56 >> To: Paulo Matos >> Cc: gcc@gcc.gnu.org >> Subject: Re: genattrtab regression: infi

RE: genattrtab regression: infinite loop

2013-02-11 Thread Paulo Matos
> -Original Message- > From: Richard Biener [mailto:richard.guent...@gmail.com] > Sent: 11 February 2013 10:56 > To: Paulo Matos > Cc: gcc@gcc.gnu.org > Subject: Re: genattrtab regression: infinite loop > > > Does it work with -fno-aggressive-loop-optimizat

Re: genattrtab regression: infinite loop

2013-02-11 Thread Richard Biener
On Mon, Feb 11, 2013 at 11:29 AM, Paulo Matos wrote: > Hello, > > I just noticed when moving port from 4.7.2 to HEAD that genattrtab gets into > an infinite loop with: > (define_insn "br_pred" > [(set (pc) > (if_then_else > (match_operator 2 "easy_comparison" > [(matc

genattrtab regression: infinite loop

2013-02-11 Thread Paulo Matos
Hello, I just noticed when moving port from 4.7.2 to HEAD that genattrtab gets into an infinite loop with: (define_insn "br_pred" [(set (pc) (if_then_else (match_operator 2 "easy_comparison" [(match_operand:BI 0 "register_operand" "c") (const_int 0)])