head	1.9;
access;
symbols
	RELEASE_8_3_0:1.9
	RELEASE_9_0_0:1.9
	RELEASE_7_4_0:1.9
	RELEASE_8_2_0:1.9
	RELEASE_6_EOL:1.9
	RELEASE_8_1_0:1.8
	RELEASE_7_3_0:1.8
	RELEASE_8_0_0:1.8
	RELEASE_7_2_0:1.7
	RELEASE_7_1_0:1.7
	RELEASE_6_4_0:1.7
	RELEASE_5_EOL:1.7
	RELEASE_6_0_0:1.5
	RELEASE_5_4_0:1.5
	RELEASE_4_11_0:1.5
	RELEASE_5_3_0:1.5
	RELEASE_4_10_0:1.5
	RELEASE_5_2_1:1.5
	RELEASE_5_2_0:1.5
	RELEASE_4_9_0:1.5
	RELEASE_5_1_0:1.5
	RELEASE_4_8_0:1.4
	RELEASE_5_0_0:1.4
	RELEASE_4_7_0:1.3
	RELEASE_4_6_2:1.3
	RELEASE_4_6_1:1.3
	RELEASE_4_6_0:1.3
	RELEASE_5_0_DP1:1.3
	RELEASE_4_5_0:1.3
	RELEASE_4_4_0:1.3
	RELEASE_4_3_0:1.3
	RELEASE_4_2_0:1.3
	RELEASE_4_1_1:1.3
	RELEASE_4_1_0:1.3
	RELEASE_3_5_0:1.3
	RELEASE_4_0_0:1.3
	RELEASE_3_4_0:1.3
	RELEASE_3_3_0:1.2
	RELEASE_3_2_0:1.1
	RELEASE_3_1_0:1.1
	RELEASE_2_2_8:1.1
	RELEASE_3_0_0:1.1
	RELEASE_2_2_7:1.1
	RELEASE_2_2_6:1.1
	RELEASE_2_2_5:1.1;
locks; strict;
comment	@# @;


1.9
date	2010.09.30.16.53.28;	author deischen;	state Exp;
branches;
next	1.8;

1.8
date	2009.07.19.03.38.31;	author deischen;	state Exp;
branches;
next	1.7;

1.7
date	2008.04.08.00.33.20;	author deischen;	state Exp;
branches;
next	1.6;

1.6
date	2005.11.29.00.01.24;	author deischen;	state dead;
branches;
next	1.5;

1.5
date	2003.05.07.13.40.41;	author deischen;	state Exp;
branches;
next	1.4;

1.4
date	2002.12.01.19.10.48;	author deischen;	state Exp;
branches;
next	1.3;

1.3
date	99.11.09.12.33.32;	author deischen;	state Exp;
branches;
next	1.2;

1.2
date	99.06.24.11.11.11;	author sheldonh;	state Exp;
branches;
next	1.1;

1.1
date	97.09.25.08.47.50;	author asami;	state Exp;
branches;
next	;


desc
@@


1.9
log
@Update to the 2010 version of GNAT-GPL.
@
text
@--- gcc/ada/env.c.orig	2010-06-03 02:19:06.000000000 -0400
+++ gcc/ada/env.c	2010-09-28 11:05:55.000000000 -0400
@@@@ -167,6 +167,7 @@@@
   }
 
 #elif (defined (__vxworks) && defined (__RTP__)) || defined (__APPLE__)
+    || defined(__FreeBSD__)
   setenv (name, value, 1);
 
 #else
@


1.8
log
@Update to the 2009 gpl edition.

Borrow some makefile foo from lang/gnat-gcc43.
@
text
@d1 3
a3 3
--- gcc/ada/env.c.orig	2009-05-19 07:22:35.000000000 -0400
+++ gcc/ada/env.c	2009-06-18 08:35:36.000000000 -0400
@@@@ -168,6 +168,7 @@@@
d7 1
a7 1
+   || defined(__FreeBSD__)
@


1.7
log
@Use setenv to add an environment variable instead of putenv.  In 7.0,
putenv() does not copy the supplied environment stringi, but gcc/gnat
was free()ing the memory expecting that it would be copied.
@
text
@d1 3
a3 4
--- gcc/ada/env.c.orig	2006-05-22 02:05:53.000000000 -0400
+++ gcc/ada/env.c	2008-04-07 19:56:12.000000000 -0400
@@@@ -166,7 +166,7 @@@@
       LIB$SIGNAL (status);
d6 2
a7 2
-#elif defined (__vxworks) && defined (__RTP__)
+#elif defined (__FreeBSD__) || (defined (__vxworks) && defined (__RTP__))
a10 9
@@@@ -177,7 +177,7 @@@@
 
   sprintf (expression, "%s=%s", name, value);
   putenv (expression);
-#if defined (__FreeBSD__) || defined (__APPLE__) || defined (__MINGW32__) \
+#if defined (__APPLE__) || defined (__MINGW32__) \
    ||(defined (__vxworks) && ! defined (__RTP__))
   /* On some systems like FreeBSD, MacOS X and Windows, putenv is making
      a copy of the expression string so we can free it after the call to
@


1.6
log
@Update the antiquated version of the GNAT compiler to the GPL-2005
version.

Note that this version now produces executables that are
covered by the GPL as opposed to the previous version which was
covered by the modified GPL.

Also note that the GNAT sources in the stock GCC-4 tree are
not under this restriction.  A new port based on the sources
in GCC-4 will come when I get the time.
@
text
@d1 10
a10 15
--- config/i386/freebsd.h.orig	Mon Nov 25 07:16:22 2002
+++ config/i386/freebsd.h	Mon Nov 25 09:18:52 2002
@@@@ -162,8 +162,13 @@@@
  * -lc_p or -ggdb to LDFLAGS at the link time, respectively.
  */
 #define LIB_SPEC \
-  "%{!shared: %{mieee-fp:-lieee} %{p:-lgmon} %{pg:-lgmon} \
-     %{!ggdb:-lc} %{ggdb:-lg}}"
+  "%{!shared: \
+     %{!pg: \
+       %{!pthread: %{!kthread:-lc} %{kthread:-lpthread -lc}} \
+       %{pthread:-lc_r}} \
+     %{pg: \
+       %{!pthread: %{!kthread:-lc_p} %{kthread:-lpthread_p -lc_p}} \
+       %{pthread:-lc_r_p}}}"
d12 9
a20 2
 #define LIB_SPEC \
   "%{!shared: \
@


1.5
log
@Unbreak patching.  The recent change to gcc28 (to make gcc28 work in
-current) broke one of the patches here.

PR:	51740
@
text
@@


1.4
log
@Update to the latest released version of GNAT (3.15p).  Also use a
new bootstrap compiler and fix so that it builds under -current.

Approved by:	portmgr
@
text
@a18 9
@@@@ -186,7 +191,7 @@@@
    done.  */
 
 #undef	LINK_SPEC
-#define LINK_SPEC "-m elf_i386 %{shared:-shared} \
+#define LINK_SPEC "%{shared:-shared} \
   %{!shared: \
     %{!ibcs: \
       %{!static: \
@


1.3
log
@Upgrade GNAT to GNAT-3.12p, the latest public release from Ada Core
Technologies.
@
text
@d1 27
a27 26
*** ./config/i386/freebsd.h.orig	Fri Dec  5 07:15:34 1997
--- ./config/i386/freebsd.h	Fri Feb 12 21:35:52 1999
***************
*** 152,159 ****
   * -lc_p or -ggdb to LDFLAGS at the link time, respectively.
   */
  #define LIB_SPEC \
!   "%{!shared: %{mieee-fp:-lieee} %{p:-lgmon} %{pg:-lgmon} \
!      %{!ggdb:-lc} %{ggdb:-lg}}"
  #else
  #define LIB_SPEC \
    "%{!shared: \
--- 152,164 ----
   * -lc_p or -ggdb to LDFLAGS at the link time, respectively.
   */
  #define LIB_SPEC \
!   "%{!shared: \
!      %{!pg: \
!        %{!pthread: %{!kthread:-lc} %{kthread:-lpthread -lc}} \
!        %{pthread:-lc_r}} \
!      %{pg: \
!        %{!pthread: %{!kthread:-lc_p} %{kthread:-lpthread_p -lc_p}} \
!        %{pthread:-lc_r_p}}}"
  #else
  #define LIB_SPEC \
    "%{!shared: \
@


1.2
log
@Update 3.10p -> 3.11p:

      * Build requires a GNAT compiler, for which the maintainer has
	created a package. For now, provide two MASTER_SITEs from which
	it is available so that it'll find its way into the FreeBSD
	distfiles.

      * Uses variables in the PLIST to reduce diff sizes in future.

      * Doesn't install info files, which are virtually duplicates of
	the ones we already have.

      * AOUT support is on its wAy OUT. Do what we can, but don't blow
	any fuses.

      * Hand maintainership over to Daniel Eischen, at the request of
	the previous maintainer.

PR:	10093
Submitted by:	Daniel Eischen <eischen@@vigrid.com>
@
text
@d1 2
a2 38
*** ./config/i386/freebsd.h.orig	Fri Sep  4 23:57:29 1998
--- ./config/i386/freebsd.h	Fri Sep  4 23:58:54 1998
***************
*** 49,55 ****
  #define CPP_SPEC "%{posix:-D_POSIX_SOURCE}"
  
  /* Like the default, except no -lg.  */
! #define LIB_SPEC "%{!shared:%{!pg:-lc}%{pg:-lc_p}}"
  
  #undef SIZE_TYPE
  #define SIZE_TYPE "unsigned int"
--- 49,55 ----
  #define CPP_SPEC "%{posix:-D_POSIX_SOURCE}"
  
  /* Like the default, except no -lg.  */
! #define LIB_SPEC "%{!shared:%{!pg:%{!pthread:%{!kthread:-lc}%{kthread:-lpthread -lc}}%{pthread:-lc_r}}%{pg:%{!pthread:%{!kthread:-lc_p}%{kthread:-lpthread_p -lc_p}}%{pthread:-lc_r_p}}}"
  
  #undef SIZE_TYPE
  #define SIZE_TYPE "unsigned int"
*** ./config/i386/freebsd-elf.h.orig	Fri Dec  5 07:15:34 1997
--- ./config/i386/freebsd-elf.h	Fri Feb 12 21:35:52 1999
***************
*** 140,146 ****
  #define WCHAR_TYPE_SIZE BITS_PER_WORD
      
  #undef CPP_PREDEFINES
! #define CPP_PREDEFINES "-Dunix -D__ELF__ -D__FreeBSD__=2 -Asystem(FreeBSD)"
  
  #undef CPP_SPEC
  #define CPP_SPEC "%(cpp_cpu) %[cpp_cpu] %{fPIC:-D__PIC__ -D__pic__} %{fpic:-D__PIC__ -D__pic__} %{posix:-D_POSIX_SOURCE}"
--- 140,146 ----
  #define WCHAR_TYPE_SIZE BITS_PER_WORD
      
  #undef CPP_PREDEFINES
! #define CPP_PREDEFINES "-Di386 -Dunix -D__ELF__ -D__FreeBSD__=3 -Asystem(FreeBSD) -Asystem(FreeBSD) -Acpu(i386) -Amachine(i386)"
  
  #undef CPP_SPEC
  #define CPP_SPEC "%(cpp_cpu) %[cpp_cpu] %{fPIC:-D__PIC__ -D__pic__} %{fpic:-D__PIC__ -D__pic__} %{posix:-D_POSIX_SOURCE}"
@


1.1
log
@Upgrade to 3.09.  This port is no longer broken.

Note you need an existing gnat compiler to build this.  (A package will do.)

PR:		3687
Submitted by:	Maurice Castro <maurice@@planet.serc.rmit.edu.au> and
		Daniel M. Eischen <deischen@@iworks.InterWorks.org>
@
text
@d1 2
a2 3
diff -c orig/gcc.c gcc/gcc.c
*** orig/gcc.c	Thu Apr  3 08:37:06 1997
--- gcc-2.7.2.1/gcc.c	Fri Apr  4 23:21:00 1997
d4 2
a5 13
*** 1354,1362 ****
  #undef MD_STARTFILE_PREFIX_1
  #endif
  
! #ifndef STANDARD_EXEC_PREFIX
! #define STANDARD_EXEC_PREFIX "/usr/local/lib/gcc-lib/"
! #endif /* !defined STANDARD_EXEC_PREFIX */
  
  static char *standard_exec_prefix = STANDARD_EXEC_PREFIX;
  static char *standard_exec_prefix_1 = "/usr/lib/gcc/";
--- 1354,1360 ----
  #undef MD_STARTFILE_PREFIX_1
  #endif
d7 2
a8 1
! #define STANDARD_EXEC_PREFIX FREEBSD_PREFIX "/libexec/"
d10 29
a38 2
  static char *standard_exec_prefix = STANDARD_EXEC_PREFIX;
  static char *standard_exec_prefix_1 = "/usr/lib/gcc/";
d40 23
a62 13
*** 2708,2715 ****
--- 2706,2716 ----
    /* Use 2 as fourth arg meaning try just the machine as a suffix,
       as well as trying the machine and the version.  */
  #ifdef FREEBSD_NATIVE
+   add_prefix (&exec_prefixes, FREEBSD_PREFIX "/libexec/ada/", 0, 0, NULL_PTR);
+   add_prefix (&exec_prefixes, FREEBSD_PREFIX "/libexec/", 0, 0, NULL_PTR);
    add_prefix (&exec_prefixes, "/usr/libexec/", 0, 0, NULL_PTR);
    add_prefix (&exec_prefixes, "/usr/bin/", 0, 0, NULL_PTR);
+   add_prefix (&startfile_prefixes, FREEBSD_PREFIX "/lib/", 0, 0, NULL_PTR);
    add_prefix (&startfile_prefixes, "/usr/libdata/gcc/", 0, 0, NULL_PTR);
  #else /* not FREEBSD_NATIVE */
  #ifndef OS2
@

