[Monetdb-developers] [Monetdb-checkins] MonetDB/src/gdk gdk_scanselect.mx, , 1.50, 1.51

Sjoerd Mullender sjoerd at acm.org
Mon Apr 14 22:06:38 CEST 2008


On 2008-04-14 21:08, Niels Nes wrote:
> Update of /cvsroot/monetdb/MonetDB/src/gdk
> In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv3941
> 
> Modified Files:
> 	gdk_scanselect.mx 
> Log Message:
> don't typemap dbl/flt to lng/int  in scanselect bunfastins
> (this is an attempt to fix the compilation problems with gcc 4.3 and up
>  which have very strict c99 aliasing rules )
> 
> 
> U gdk_scanselect.mx
> Index: gdk_scanselect.mx
> ===================================================================
> RCS file: /cvsroot/monetdb/MonetDB/src/gdk/gdk_scanselect.mx,v
> retrieving revision 1.50
> retrieving revision 1.51
> diff -u -d -r1.50 -r1.51
> --- gdk_scanselect.mx	6 Mar 2008 08:25:38 -0000	1.50
> +++ gdk_scanselect.mx	14 Apr 2008 19:08:34 -0000	1.51
> @@ -271,6 +271,8 @@
>  	@:T_BUNfastins(@1, at 2, at 3,sht,SIMPLE,sht)@
>  	@:T_BUNfastins(@1, at 2, at 3,int,SIMPLE,int)@
>  	@:T_BUNfastins(@1, at 2, at 3,lng,SIMPLE,lng)@
> +	@:T_BUNfastins(@1, at 2, at 3,flt,SIMPLE,flt)@
> +	@:T_BUNfastins(@1, at 2, at 3,dbl,SIMPLE,dbl)@
>  	@:T_BUNfastins(@1, at 2, at 3,fix,FIXEDATOM,(b)->ttype)@
>  	@:T_BUNfastins(@1, at 2, at 3,var,VARATOM,(b)->ttype)@
>  @-
> @@ -282,6 +284,8 @@
>  @:H_BUNfastins(sht,SIMPLE,sht)@
>  @:H_BUNfastins(int,SIMPLE,int)@
>  @:H_BUNfastins(lng,SIMPLE,lng)@
> +@:H_BUNfastins(flt,SIMPLE,flt)@
> +@:H_BUNfastins(dbl,SIMPLE,dbl)@
>  @:H_BUNfastins(vid,VID,vid)@
>  @:H_BUNfastins(fix,FIXEDATOM,(b)->htype)@
>  @:H_BUNfastins(var,VARATOM,(b)->htype)@
> @@ -296,21 +300,6 @@
>  #define @2 at 1_bunfastins_nocheck(b, p, h, t, hs, ts)    @3 at 1_bunfastins_nocheck(b, p, h, t, hs, ts)
>  #define @2 at 1_bunfastins(b, h, t)                  @3 at 1_bunfastins(b, h, t)
>  @h
> -@:HT_bunfastins_typemap(void,flt,int)@
> -@:HT_bunfastins_typemap(chr,flt,int)@
> -@:HT_bunfastins_typemap(sht,flt,int)@
> -@:HT_bunfastins_typemap(int,flt,int)@
> -@:HT_bunfastins_typemap(lng,flt,int)@
> -@:HT_bunfastins_typemap(fix,flt,int)@
> -@:HT_bunfastins_typemap(var,flt,int)@
> -@:HT_bunfastins_typemap(void,dbl,lng)@
> -@:HT_bunfastins_typemap(chr,dbl,lng)@
> -@:HT_bunfastins_typemap(sht,dbl,lng)@
> -@:HT_bunfastins_typemap(int,dbl,lng)@
> -@:HT_bunfastins_typemap(lng,dbl,lng)@
> -@:HT_bunfastins_typemap(fix,dbl,lng)@
> -@:HT_bunfastins_typemap(var,dbl,lng)@
> -
>  #if SIZEOF_OID == SIZEOF_INT
>  @:HT_bunfastins_typemap(void,oid,int)@
>  @:HT_bunfastins_typemap(chr,oid,int)@
> 
> 
> -------------------------------------------------------------------------
> This SF.net email is sponsored by the 2008 JavaOne(SM) Conference 
> Don't miss this year's exciting event. There's still time to save $100. 
> Use priority code J8TL2D2. 
> http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
> _______________________________________________
> Monetdb-checkins mailing list
> Monetdb-checkins at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/monetdb-checkins

I came up with the same fix today which I hadn't checked in yet.  But I 
went one further: I also did oid and wrd.  They may well cause the same 
warning/error.

-- 
Sjoerd Mullender




More information about the developers-list mailing list