[ping][patch] Fixed-point patch 5/10
Fu, Chao-Ying
fu@mips.com
Sun Aug 26 02:59:00 GMT 2007
Rask Ingemann Lambertsen wrote:
> > > > Hi,
> > > >
> > > > Here is the patch #5. Please review it. Thanks!
> > >
> > > > gcc/ChangeLog
> > > > 2007-08-01 Chao-ying Fu <fu@mips.com>
> > > >
> > > > * rtl.c (rtx_code_size): Check CONST_FIXED to calcualte
> > > correct sizes
> > > > in DEF_RTL_EXPR.
> > > > (copy_rtx): Handle CONST_FIXED
> > > ...
> > >
> > > This is OK, thanks.
> >
> > This patch is applied. Thanks a lot!
>
> Bootstrap of revision 127725 fails on x86_64-unknown-linux-gnu:
>
> /home/rask/src/gcc/gcc/cse.c: In function hash_rtx:
> /home/rask/src/gcc/gcc/cse.c:2165: warning: initialization discards
qualifiers from pointer target type
> /home/rask/src/gcc/gcc/emit-rtl.c: In function const_fixed_htab_hash:
> /home/rask/src/gcc/gcc/emit-rtl.c:265: warning: initialization
discards qualifiers from pointer target type
> /home/rask/src/gcc/gcc/emit-rtl.c: In function const_fixed_htab_eq:
> /home/rask/src/gcc/gcc/emit-rtl.c:281: warning: initialization
discards qualifiers from pointer target type
> /home/rask/src/gcc/gcc/emit-rtl.c:281: warning: initialization
discards qualifiers from pointer target type
> /home/rask/src/gcc/gcc/sched-vis.c: In function print_value:
/home/rask/src/gcc/gcc/sched-vis.c:451: warning: initialization discards
qualifiers from pointer target type
> Revision 127724 gets to at least stage 3.
Please try this patch to see if it works. Thanks a lot!
Regards,
Chao-ying
Index: rtl.h
===================================================================
--- rtl.h (revision 127802)
+++ rtl.h (working copy)
@@ -533,7 +533,7 @@
&_rtx->u.rv; })
#define XCNMPFV(RTX, C, M) __extension__
\
-({ rtx const _rtx = (RTX);
\
+({ __typeof (RTX) const _rtx = (RTX);
\
if (GET_CODE (_rtx) != (C) || GET_MODE (_rtx) == (M))
\
rtl_check_failed_code_mode (_rtx, (C), (M), true, __FILE__,
\
__LINE__, __FUNCTION__);
\
More information about the Gcc-patches
mailing list