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: [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__);
\ 


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