Re: [PATCH 7/7] Move SYMBOL_REF_FLAGS to rtx header

2014-05-29 Thread Jeff Law
On 05/29/14 06:07, Richard Sandiford wrote: Can't really approve it, but it looks obviously correct to me. Thanks for the fix. Is that something you'd like to see changed? Jeff

Re: [PATCH 7/7] Move SYMBOL_REF_FLAGS to rtx header

2014-05-29 Thread Jeff Law
) \ this information to avoid recomputing it. Finally, this allows space for the target to store more than one bit of information, as with SYMBOL_REF_FLAG. */ -#define SYMBOL_REF_FLAGS(RTX)X0INT ((RTX), 1) +#define SYMBOL_REF_FLAGS(RTX) \ + (RTL_FLAG_CHECK1 ("SYMBOL_REF_FLAGS&q

Re: [PATCH 7/7] Move SYMBOL_REF_FLAGS to rtx header

2014-05-29 Thread Richard Sandiford
ine SYMBOL_REF_CONSTANT(RTX) \ >> this information to avoid recomputing it. Finally, this allows space >> for >> the target to store more than one bit of information, as with >> SYMBOL_REF_FLAG. */ >> -#define SYMBOL_REF_FLAGS(RTX) X0INT ((RTX), 1) &

Re: [PATCH 7/7] Move SYMBOL_REF_FLAGS to rtx header

2014-05-29 Thread Tom de Vries
recomputing it. Finally, this allows space for the target to store more than one bit of information, as with SYMBOL_REF_FLAG. */ -#define SYMBOL_REF_FLAGS(RTX) X0INT ((RTX), 1) +#define SYMBOL_REF_FLAGS(RTX) \ + (RTL_FLAG_CHECK1 ("SYMBOL_REF_FLAGS", (RTX), SYMBOL_REF) \ + ->u2.sym

Re: SYMBOL_REF_FLAGS

2014-05-15 Thread David Edelsohn
I think you would have seen the same failure before the patch with > --enable-checking=yes,rtl. > > The reason my patch broke the bootstrap is that SYMBOL_REF_FLAGS now > checks based on ENABLE_RTL_FLAG_CHECKING rather than ENABLE_RTL_CHECKING. > I'd done that because u2 is part

Re: SYMBOL_REF_FLAGS

2014-05-14 Thread Richard Sandiford
David Edelsohn writes: > Richard, > > Your SYMBOL_REF_FLAGS RTX patches broke bootstrap on AIX. > > - David > > /nasfarm/edelsohn/src/src/libgcc/libgcc2.c: In function '__eprintf': > /nasfarm/edelsohn/src/src/libgcc/libgcc2.c:2126:1: internal compiler error: &g

Re: SYMBOL_REF_FLAGS

2014-05-14 Thread David Edelsohn
Richard, Your SYMBOL_REF_FLAGS RTX patches broke bootstrap on AIX. - David /nasfarm/edelsohn/src/src/libgcc/libgcc2.c: In function '__eprintf': /nasfarm/edelsohn/src/src/libgcc/libgcc2.c:2126:1: internal compiler error: RTL flag check: SYMBOL_REF_FLAGS used with unexpected rtx code

Re: [PATCH 7/7] Move SYMBOL_REF_FLAGS to rtx header

2014-05-12 Thread Jeff Law
/ * rtl.def (SYMBOL_REF): Remove middle "0" field. * rtl.h (block_symbol): Reduce number of fields to 2. (rtx_def): Add u2.symbol_ref_flags. (SYMBOL_REF_FLAGS): Use it. (SYMBOL_REF_DATA, SET_SYMBOL_REF_DECL, SYMBOL_REF_DECL) (SET_SYMBOL_RE

Re: [PATCH 7/7] Move SYMBOL_REF_FLAGS to rtx header

2014-05-12 Thread Jeff Law
On 05/12/14 05:00, Richard Sandiford wrote: Michael Matz writes: Hi, On Sat, 10 May 2014, Richard Sandiford wrote: @@ -362,6 +362,9 @@ struct GTY((chain_next ("RTX_NEXT (&%h)" /* The INSN_UID of an RTX_INSN-class code. */ int insn_uid; +/* The SYMBOL_

Re: [PATCH 7/7] Move SYMBOL_REF_FLAGS to rtx header

2014-05-12 Thread Michael Matz
Hi, On Mon, 12 May 2014, Richard Sandiford wrote: > > Also I'm idly wondering if the explicit sizing of > > the fields via a bit-field as originally would be better here or just > > confusing. I guess unsigned and enums are 32bit for all hosts we care > > about, but if we ever have one where

Re: [PATCH 7/7] Move SYMBOL_REF_FLAGS to rtx header

2014-05-12 Thread Richard Sandiford
Michael Matz writes: > Hi, > > On Sat, 10 May 2014, Richard Sandiford wrote: > >> @@ -362,6 +362,9 @@ struct GTY((chain_next ("RTX_NEXT (&%h)" >> /* The INSN_UID of an RTX_INSN-class code. */ >> int insn_uid; >> >> +/* Th

Re: [PATCH 7/7] Move SYMBOL_REF_FLAGS to rtx header

2014-05-12 Thread Michael Matz
Hi, On Sat, 10 May 2014, Richard Sandiford wrote: > @@ -362,6 +362,9 @@ struct GTY((chain_next ("RTX_NEXT (&%h)" > /* The INSN_UID of an RTX_INSN-class code. */ > int insn_uid; > > +/* The SYMBOL_REF_FLAGS of a SYMBOL_REF. */ > + unsigned in

[PATCH 7/7] Move SYMBOL_REF_FLAGS to rtx header

2014-05-10 Thread Richard Sandiford
uot; field. * rtl.h (block_symbol): Reduce number of fields to 2. (rtx_def): Add u2.symbol_ref_flags. (SYMBOL_REF_FLAGS): Use it. (SYMBOL_REF_DATA, SET_SYMBOL_REF_DECL, SYMBOL_REF_DECL) (SET_SYMBOL_REF_CONSTANT, SYMBOL_REF_CONSTANT): Lower index. *