Re: [patch] Add support for FP bit fields in varasm.c

2012-04-02 Thread Richard Guenther
On Mon, Apr 2, 2012 at 12:57 PM, Eric Botcazou wrote: >> You should be able to use fold_unary instead of fold_build1. >> make_signed_type should also not be used, but >> build_nonstandard_integer_type (or even better, get an integer mode of the >> same size of the float mode and then use type_for_

Re: [patch] Add support for FP bit fields in varasm.c

2012-04-02 Thread Eric Botcazou
> You should be able to use fold_unary instead of fold_build1. > make_signed_type should also not be used, but > build_nonstandard_integer_type (or even better, get an integer mode of the > same size of the float mode and then use type_for_mode). Using the mode size wouldn't work directly for XFm

Re: [patch] Add support for FP bit fields in varasm.c

2012-03-29 Thread Richard Guenther
On Wed, Mar 28, 2012 at 4:53 PM, Eric Botcazou wrote: > Hi, > > another kind of bit fields supported in Ada are floating-point bit fields. > They work fine, except that varasm.c rejects static constants (CONSTRUCTORs) > containing them.  The attached patch plugs this hole. > > Tested on x86_64-sus

[patch] Add support for FP bit fields in varasm.c

2012-03-28 Thread Eric Botcazou
Hi, another kind of bit fields supported in Ada are floating-point bit fields. They work fine, except that varasm.c rejects static constants (CONSTRUCTORs) containing them. The attached patch plugs this hole. Tested on x86_64-suse-linux, OK for mainline? 2012-03-28 Eric Botcazou *