This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
RE: [ping][patch] Fixed-point patch 5/10
- From: "Fu, Chao-Ying" <fu at mips dot com>
- To: "Rask Ingemann Lambertsen" <rask at sygehus dot dk>, <gcc-patches at gcc dot gnu dot org>
- Cc: "Mark Mitchell" <mark at codesourcery dot com>, "Thekkath, Radhika" <radhika at mips dot com>, "Stephens, Nigel" <nigel at mips dot com>
- Date: Sat, 25 Aug 2007 17:15:26 -0700
- Subject: RE: [ping][patch] Fixed-point patch 5/10
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__);
\