CVSROOT:        /cvs
Module name:    ports
Changes by:     tobi...@cvs.openbsd.org 2014/02/06 18:27:21

Modified files:
        lang/gcc/4.6   : Makefile distinfo 
        lang/gcc/4.6/patches: patch-gcc_ada_adaint_c 
                              patch-gcc_ada_s-osinte-openbsd_ads 
Added files:
        lang/gcc/4.6/patches: patch-gcc_ada_a-calend_adb 
                              patch-gcc_ada_adaint_h 
                              patch-gcc_ada_g-calend_ads 
                              patch-gcc_ada_s-osprim-posix_adb 
                              patch-gcc_ada_sysdep_c 

Log message:
Repair time/delay/duration time_t issues in gnat. All direct imports of
C functions have been modified to use same-size types on both sides.
There are no checks in gcc to make sure the types match, and it happily
trashes the stack or reads bogus data without this fix.

The C shim in gnatlib is still casting down to long (by design), thus
gnat is not 2038-proof on 32 bit architectures. Fixing this is an
ongoing project, but I'm running out of time for this release.

Getting the timezone offset is now supported; the unused usleep
procedure that snuck in from FreeBSD support got removed.

Tested on all supported architectures, plus new bootstraps due to the
stack trashing, just in case...

Conceptually fine with brad@
deraadt@ is unhappy with the partial solution, fixing this remains a
high priority todo

Reply via email to