Re: PATCH: copy_addr_to_reg: Convert to Pmode if needed

2011-04-01 Thread H.J. Lu
On Mon, Mar 21, 2011 at 9:05 AM, Richard Sandiford wrote: > "H.J. Lu" writes: >> diff --git a/gcc/explow.c b/gcc/explow.c >> index 460af1f..9b3c082 100644 >> --- a/gcc/explow.c >> +++ b/gcc/explow.c >> @@ -611,6 +611,8 @@ copy_to_reg (rtx x) >>  rtx >>  copy_addr_to_reg (rtx x) >>  { >> +  if (GE

Re: PATCH: copy_addr_to_reg: Convert to Pmode if needed

2011-03-21 Thread Richard Sandiford
"H.J. Lu" writes: > diff --git a/gcc/explow.c b/gcc/explow.c > index 460af1f..9b3c082 100644 > --- a/gcc/explow.c > +++ b/gcc/explow.c > @@ -611,6 +611,8 @@ copy_to_reg (rtx x) > rtx > copy_addr_to_reg (rtx x) > { > + if (GET_MODE (x) != VOIDmode && GET_MODE (x) != Pmode) > +x = convert_to

PATCH: copy_addr_to_reg: Convert to Pmode if needed

2011-03-12 Thread H.J. Lu
Hi, copy_addr_to_reg doesn't check of mode is valid before copy it to Pmode. This patch converts to Pmode if needed. OK for 4.7? Thanks. H.J. -- diff --git a/gcc/ChangeLog.x32 b/gcc/ChangeLog.x32 index b85956c..3405300 100644 --- a/gcc/ChangeLog.x32 +++ b/gcc/ChangeLog.x32 @@ -1,5 +1,10 @@ 2