[patch] Implement Ada support for DragonFly, improve it for FreeBSD

Thomas Quinot quinot@adacore.com
Wed Jun 3 11:17:00 GMT 2015


* John Marino, 2015-06-03 :

> I have this fixed in an interesting way on gnat-aux.  I found that
> setting TARGET_96_ROUND_53_LONG_DOUBLE affects other front ends, so you
> have to choose which one you want to be correct, GNAT or the C (or
> whatever, can't remember which ones were affected now)

Right.

> My solution was to create two common backends, one for gnat and one for
> the others.  An example of the main patch is here:
> 
> https://raw.githubusercontent.com/jrmarino/draco/master/misc/flux5/patch-gcc_Makefile.in
> 
> (note the new s-modes-ada target)
> 
> and then this patch is needed:
> 
> https://raw.githubusercontent.com/jrmarino/draco/master/misc/flux5/patch-gcc_ada_gcc-interface_Make-lang.in
> 
> 
> With those modifications, all the ACATS tests pass on i386 and the other
> front ends work as expected.

Interesting approach. However if we aim for integration in GCC, then
maybe a more straightforward approach (replacing the macro with a
variable that would be initialized by some back-end-specific startup
routine?) is in order.

-- 
Thomas Quinot, Ph.D. ** quinot@adacore.com ** Senior Software Engineer
               AdaCore -- Paris, France -- New York, USA



More information about the Gcc-patches mailing list