Ada runtime of gcc trunk (r131371) does not have OpenBSD specific sections, so
the pthreads library and related features are not used/enabled on OpenBSD.

Patch at http://iki.fi/tero.koskinen/gcc/gcc-ada-gnattools-tasking.diff adds
files a-intnam-openbsd.ads, g-soccon-openbsd.ads, s-osinte-openbsd.adb,
s-osinte-openbsd.ads and system-openbsd-x86.ads, and modifies the build system
to use them on OpenBSD/x86. (gcc/ada/gsocket.h is also modified to avoid some
build errors.)

After the patch, configure option "--with-threads=gnat" enables tasking for
OpenBSD on x86 platform.

Mentioned *openbsd*.ad[bs] files are almost direct copies of FreeBSD
equivalents. Only few magic numbers/constants are changed.

The patch is tested on OpenBSD/x86 4.2-current.

Earlier version of this patch (for gcc 4.2) was joint work with Markus
Hennecke.
(See http://marc.info/?l=openbsd-ports&m=117679065130354&w=2 for details.)


-- 
           Summary: Ada runtime improvements for OpenBSD to enable tasking
                    and related features
           Product: gcc
           Version: unknown
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: ada
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: tero dot koskinen at iki dot fi


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=34717

Reply via email to