This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [patch] pa.md fix typos in prefetch_64 and prefetch_32 patterns


Graham,

> While building a x86 -> hppa cross I noticed a couple of  "cast from
> pointer to integer of different size" warnings when compiling insn-recog.c
> 
> The problem here is in a couple of places in pa.md VAL_5_BITS_P is being
> passed a CONST_INT rtx and not it's INTVAL value which results in the warning.

Thanks for spotting this.  Instead of explicitly adding INTVAL,
I'd prefer changing `VAL_5_BITS_P' to `INT_5_BITS'.  Keeps the
lines a bit shorter.

If you don't have time, I'll install the fix later today.

Dave
-- 
J. David Anglin                                  dave.anglin@nrc-cnrc.gc.ca
National Research Council of Canada              (613) 990-0752 (FAX: 952-6602)


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]