Ada and NTPL
Geert Bosch
bosch@gnat.com
Thu Apr 24 17:32:00 GMT 2003
On Thursday, Apr 24, 2003, at 03:12 America/New_York, Laurent Guerby
wrote:
> I did succeed at get tasking working on Red Hat 9 x86 and NTPL
> using the ACT tree (HEAD + gcc-head as of 23Apr2003 around 20:00 GMT)
> and GCC mainline. The resulting compiler gets much better results than
> 3.2 and results in line with the ACT 5.00 release
> except for a miscompilation of a-calend.adb that gives 17 failures.
>
> For the record here is a reduced test case:
>
> with Ada.Calendar;
> procedure P1 is
> Some_Time : Ada.Calendar.Time;
> begin
> Some_Time := Ada.Calendar.Time_Of (Month => 9, Day => 16, Year =>
> 1993);
> end P1;
> $ gnatmake p1
> $ ./p1
>
> raised CONSTRAINT_ERROR : a-calend.adb:418 explicit raise
> $
>
> The code failing in Ada.Calendar is:
>
> if not Year 'Valid
> or else not Month 'Valid
> or else not Day 'Valid
> or else not Seconds'Valid
> then
> raise Constraint_Error;
> end if;
>
There is already a GNATS bug filed for this. I looked at it and
this is a bug triggered by a change in the GCC back end and is not
related to front end changes. This is a regression compared to 3.2.
-Geert
More information about the Gcc
mailing list