This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[patch, Ada] GNAT for Mac OS X (Darwin) Tasking Support


My copyright assignment arrived in the mail today so here is the promised run-time support for Darwin.

Tested with gcc HEAD as of the date of the ChangeLog entry with patch for PR-14985.

2004-04-22 Andrew W. Reynolds <awreynolds@mac.com>

* Makefile.in: Added target pairs for powerpc-*-darwin* tasking
support.

* a-intnam-darwin.ads, s-osinte-darwin.ads, s-osinte-darwin.adb:
New files.

The names of the new files have been recommended by ACT.

Here is the result of the check-ada:

pbg4:~/Developer/Compiler/fsf-gcc-obj/gcc drew$ make check-ada
test -d testsuite/ada/acats || mkdir -p testsuite/ada/acats
testdir=`cd ../../fsf-gcc-head/gcc/testsuite/ada/acats; ${PWDCMD-pwd}`; \
export testdir; cd testsuite/ada/acats; ${testdir}/run_acats
=== acats configuration ===
target gcc is /Users/drew/Developer/Compiler/fsf-gcc-obj/gcc/xgcc -B/Users/drew/Developer/Compiler/fsf-gcc-obj/gcc/
Reading specs from /Users/drew/Developer/Compiler/fsf-gcc-obj/gcc/specs Configured with: ../fsf-gcc-head/configure --enable-languages=ada Thread model: posix gcc version 3.5.0 20040423 (experimental)
host=ppc-darwin
target=powerpc-apple-darwin7.3.0
gnatmake is /Users/drew/Developer/Compiler/fsf-gcc-obj/gcc/gnatmake

=== acats support ===
Generating support files... done.
Compiling support files... done.

=== acats tests ===
Running chapter a ...
Running chapter c2 ...
FAIL: c250002
Running chapter c3 ...
Running chapter c4 ...
Running chapter c5 ...
Running chapter c6 ...
Running chapter c7 ...
Running chapter c8 ...
Running chapter c9 ...
Running chapter ca ...
Running chapter cb ...
Running chapter cc ...
Running chapter cd ...
Running chapter ce ...
Running chapter cxa ...
Running chapter cxb ...
Running chapter cxf ...
Running chapter cxg ...
Running chapter cxh ...
FAIL: cxh3002
Running chapter cz ...
Running chapter d ...
Running chapter e ...
Running chapter gcc ...
Running chapter l ...
=== acats Summary ===
# of expected passes 2320
# of unexpected failures 2
*** FAILURES: c250002 cxh3002

Andrew W. Reynolds
GNAT for Mac OS X Development Team
Compiler/Run-Time System/Bindings/Sample Code

Index: Makefile.in
===================================================================
RCS file: /cvs/gcc/gcc/gcc/ada/Makefile.in,v
retrieving revision 1.79
diff -c -3 -p -r1.79 Makefile.in
*** Makefile.in 21 Apr 2004 10:10:31 -0000 1.79
--- Makefile.in 23 Apr 2004 01:22:08 -0000
*************** ifeq ($(strip $(filter-out %x86_64 linux
*** 1313,1318 ****
--- 1313,1332 ----


endif


+ ifeq ($(strip $(filter-out powerpc % darwin%,$(targ))),)
+ LIBGNAT_TARGET_PAIRS = \
+ a-intnam.ads<a-intnam-darwin.ads \
+ s-inmaop.adb<7sinmaop.adb \
+ s-intman.adb<7sintman.adb \
+ s-osinte.adb<s-osinte-darwin.adb \
+ s-osinte.ads<s-osinte-darwin.ads \
+ s-osprim.adb<7sosprim.adb \
+ s-taprop.adb<7staprop.adb \
+ s-taspri.ads<7staspri.ads \
+ s-tpopsp.adb<5atpopsp.adb \
+ g-soccon.ads<3bsoccon.ads
+ endif
+
# The runtime library for gnat comprises two directories. One contains the
# Ada source files that the compiler (gnat1) needs -- these files are listed
# by ADA_INCLUDE_SRCS -- and the other contains the object files and their

Attachment: darwin-new-files.tgz
Description: GNU Zip compressed data




Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]