gcc80: Bring in makefiles but leave them unhooked.
authorzrj <rimvydas.jasinskas@gmail.com>
Wed, 2 May 2018 13:35:59 +0000 (16:35 +0300)
committerzrj <zrj@dragonflybsd.org>
Mon, 14 May 2018 17:21:04 +0000 (20:21 +0300)
Makefile infrastructure was reused from gcc50 one writen by John Marino.

69 files changed:
gnu/COPYING
gnu/COPYING.LIB
gnu/Makefile
gnu/lib/gcc80/Makefile [new file with mode: 0644]
gnu/lib/gcc80/Makefile.inc [new file with mode: 0644]
gnu/lib/gcc80/csu/Makefile [new file with mode: 0644]
gnu/lib/gcc80/libgcc/Makefile [new file with mode: 0644]
gnu/lib/gcc80/libgcc/Makefile.src [new file with mode: 0644]
gnu/lib/gcc80/libgcc_eh/Makefile [new file with mode: 0644]
gnu/lib/gcc80/libgcc_pic/Makefile [new file with mode: 0644]
gnu/lib/gcc80/libgcov/Makefile [new file with mode: 0644]
gnu/lib/gcc80/libgomp/Makefile [new file with mode: 0644]
gnu/lib/gcc80/libssp/Makefile [new file with mode: 0644]
gnu/lib/gcc80/libssp_nonshared/Makefile [new file with mode: 0644]
gnu/lib/gcc80/libstdcxx/Makefile [new file with mode: 0644]
gnu/lib/gcc80/libstdcxx/components/Makefile [new file with mode: 0644]
gnu/lib/gcc80/libstdcxx/components/libconv_1998/Makefile [new file with mode: 0644]
gnu/lib/gcc80/libstdcxx/components/libconv_1998/Makefile.src [new file with mode: 0644]
gnu/lib/gcc80/libstdcxx/components/libconv_2011/Makefile [new file with mode: 0644]
gnu/lib/gcc80/libstdcxx/components/libconv_2011/Makefile.src [new file with mode: 0644]
gnu/lib/gcc80/libstdcxx/components/libconv_supc/Makefile [new file with mode: 0644]
gnu/lib/gcc80/libstdcxx/components/libconv_supc/Makefile.src [new file with mode: 0644]
gnu/lib/gcc80/libstdcxx/headers/Makefile [new file with mode: 0644]
gnu/lib/gcc80/libstdcxx/headers/Makefile.headers [new file with mode: 0644]
gnu/lib/gcc80/libstdcxx/product/Makefile [new file with mode: 0644]
gnu/lib/gcc80/libstdcxx/product/Makefile.src [new file with mode: 0644]
gnu/usr.bin/cc80/Makefile [new file with mode: 0644]
gnu/usr.bin/cc80/Makefile.inc [new file with mode: 0644]
gnu/usr.bin/cc80/Makefile.intcxx_lib [new file with mode: 0644]
gnu/usr.bin/cc80/Makefile.langs [new file with mode: 0644]
gnu/usr.bin/cc80/Makefile.tgt [new file with mode: 0644]
gnu/usr.bin/cc80/Makefile.version [new file with mode: 0644]
gnu/usr.bin/cc80/backends/Makefile [new file with mode: 0644]
gnu/usr.bin/cc80/backends/guts/Makefile [new file with mode: 0644]
gnu/usr.bin/cc80/backends/guts/guts-c/Makefile [new file with mode: 0644]
gnu/usr.bin/cc80/backends/guts/guts-common/Makefile [new file with mode: 0644]
gnu/usr.bin/cc80/backends/guts/guts-cxx/Makefile [new file with mode: 0644]
gnu/usr.bin/cc80/backends/guts/guts-target/Makefile [new file with mode: 0644]
gnu/usr.bin/cc80/backends/programs/Makefile [new file with mode: 0644]
gnu/usr.bin/cc80/backends/programs/cc1/Makefile [new file with mode: 0644]
gnu/usr.bin/cc80/backends/programs/cc1plus/Makefile [new file with mode: 0644]
gnu/usr.bin/cc80/backends/programs/collect2/Makefile [new file with mode: 0644]
gnu/usr.bin/cc80/backends/programs/lto-wrapper/Makefile [new file with mode: 0644]
gnu/usr.bin/cc80/backends/programs/lto1/Makefile [new file with mode: 0644]
gnu/usr.bin/cc80/cc_prep/Makefile [new file with mode: 0644]
gnu/usr.bin/cc80/cc_tools/Makefile [new file with mode: 0644]
gnu/usr.bin/cc80/cc_tools/Makefile.inc [new file with mode: 0644]
gnu/usr.bin/cc80/cc_tools/libcpp/Makefile [new file with mode: 0644]
gnu/usr.bin/cc80/cc_tools/libiberty/Makefile [new file with mode: 0644]
gnu/usr.bin/cc80/cc_tools/tools/Makefile [new file with mode: 0644]
gnu/usr.bin/cc80/drivers/Makefile [new file with mode: 0644]
gnu/usr.bin/cc80/drivers/Makefile.inc [new file with mode: 0644]
gnu/usr.bin/cc80/drivers/c++/Makefile [new file with mode: 0644]
gnu/usr.bin/cc80/drivers/cc/Makefile [new file with mode: 0644]
gnu/usr.bin/cc80/drivers/cpp/Makefile [new file with mode: 0644]
gnu/usr.bin/cc80/drivers/gcov/Makefile [new file with mode: 0644]
gnu/usr.bin/cc80/libbackend/Makefile [new file with mode: 0644]
gnu/usr.bin/cc80/support-libs/Makefile [new file with mode: 0644]
gnu/usr.bin/cc80/support-libs/Makefile.inc [new file with mode: 0644]
gnu/usr.bin/cc80/support-libs/libbacktrace/Makefile [new file with mode: 0644]
gnu/usr.bin/cc80/support-libs/libcommon-target/Makefile [new file with mode: 0644]
gnu/usr.bin/cc80/support-libs/libcommon/Makefile [new file with mode: 0644]
gnu/usr.bin/cc80/support-libs/libcpp/Makefile [new file with mode: 0644]
gnu/usr.bin/cc80/support-libs/libdecnumber/Makefile [new file with mode: 0644]
gnu/usr.bin/cc80/support-libs/libiberty/Makefile [new file with mode: 0644]
gnu/usr.bin/cc80/support-libs/libiberty_pic/Makefile [new file with mode: 0644]
gnu/usr.bin/cc80/support-libs/liblto_plugin/Makefile [new file with mode: 0644]
gnu/usr.bin/cc80/support-libs/liblto_plugin/Makefile.headers [new file with mode: 0644]
share/mk/bsd.cpu.gcc80.mk [new file with mode: 0644]

index a43ea21..623b625 100644 (file)
@@ -2,7 +2,7 @@
                       Version 2, June 1991
 
  Copyright (C) 1989, 1991 Free Software Foundation, Inc.
-                          675 Mass Ave, Cambridge, MA 02139, USA
+     51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
  Everyone is permitted to copy and distribute verbatim copies
  of this license document, but changing it is not allowed.
 
@@ -279,7 +279,7 @@ POSSIBILITY OF SUCH DAMAGES.
 
                     END OF TERMS AND CONDITIONS
 \f
-       Appendix: How to Apply These Terms to Your New Programs
+           How to Apply These Terms to Your New Programs
 
   If you develop a new program, and you want it to be of the greatest
 possible use to the public, the best way to achieve this is to make it
@@ -291,7 +291,7 @@ convey the exclusion of warranty; and each file should have at least
 the "copyright" line and a pointer to where the full notice is found.
 
     <one line to give the program's name and a brief idea of what it does.>
-    Copyright (C) 19yy  <name of author>
+    Copyright (C) <year>  <name of author>
 
     This program is free software; you can redistribute it and/or modify
     it under the terms of the GNU General Public License as published by
@@ -305,14 +305,15 @@ the "copyright" line and a pointer to where the full notice is found.
 
     You should have received a copy of the GNU General Public License
     along with this program; if not, write to the Free Software
-    Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
+    Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
+
 
 Also add information on how to contact you by electronic and paper mail.
 
 If the program is interactive, make it output a short notice like this
 when it starts in an interactive mode:
 
-    Gnomovision version 69, Copyright (C) 19yy name of author
+    Gnomovision version 69, Copyright (C) year  name of author
     Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
     This is free software, and you are welcome to redistribute it
     under certain conditions; type `show c' for details.
index eb685a5..5522aa5 100644 (file)
-                 GNU LIBRARY GENERAL PUBLIC LICENSE
-                      Version 2, June 1991
 
- Copyright (C) 1991 Free Software Foundation, Inc.
-                    675 Mass Ave, Cambridge, MA 02139, USA
+                  GNU LESSER GENERAL PUBLIC LICENSE
+                       Version 2.1, February 1999
+
+ Copyright (C) 1991, 1999 Free Software Foundation, Inc.
+       51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
  Everyone is permitted to copy and distribute verbatim copies
  of this license document, but changing it is not allowed.
 
-[This is the first released version of the library GPL.  It is
- numbered 2 because it goes with version 2 of the ordinary GPL.]
+[This is the first released version of the Lesser GPL.  It also counts
+ as the successor of the GNU Library Public License, version 2, hence
+ the version number 2.1.]
 
-                           Preamble
+                            Preamble
 
   The licenses for most software are designed to take away your
 freedom to share and change it.  By contrast, the GNU General Public
 Licenses are intended to guarantee your freedom to share and change
 free software--to make sure the software is free for all its users.
 
-  This license, the Library General Public License, applies to some
-specially designated Free Software Foundation software, and to any
-other libraries whose authors decide to use it.  You can use it for
-your libraries, too.
-
-  When we speak of free software, we are referring to freedom, not
-price.  Our General Public Licenses are designed to make sure that you
-have the freedom to distribute copies of free software (and charge for
-this service if you wish), that you receive source code or can get it
-if you want it, that you can change the software or use pieces of it
-in new free programs; and that you know you can do these things.
+  This license, the Lesser General Public License, applies to some
+specially designated software packages--typically libraries--of the
+Free Software Foundation and other authors who decide to use it.  You
+can use it too, but we suggest you first think carefully about whether
+this license or the ordinary General Public License is the better
+strategy to use in any particular case, based on the explanations
+below.
+
+  When we speak of free software, we are referring to freedom of use,
+not price.  Our General Public Licenses are designed to make sure that
+you have the freedom to distribute copies of free software (and charge
+for this service if you wish); that you receive source code or can get
+it if you want it; that you can change the software and use pieces of
+it in new free programs; and that you are informed that you can do
+these things.
 
   To protect your rights, we need to make restrictions that forbid
-anyone to deny you these rights or to ask you to surrender the rights.
-These restrictions translate to certain responsibilities for you if
-you distribute copies of the library, or if you modify it.
+distributors to deny you these rights or to ask you to surrender these
+rights.  These restrictions translate to certain responsibilities for
+you if you distribute copies of the library or if you modify it.
 
   For example, if you distribute copies of the library, whether gratis
 or for a fee, you must give the recipients all the rights that we gave
 you.  You must make sure that they, too, receive or can get the source
-code.  If you link a program with the library, you must provide
-complete object files to the recipients so that they can relink them
-with the library, after making changes to the library and recompiling
+code.  If you link other code with the library, you must provide
+complete object files to the recipients, so that they can relink them
+with the library after making changes to the library and recompiling
 it.  And you must show them these terms so they know their rights.
 
-  Our method of protecting your rights has two steps: (1) copyright
-the library, and (2) offer you this license which gives you legal
+  We protect your rights with a two-step method: (1) we copyright the
+library, and (2) we offer you this license, which gives you legal
 permission to copy, distribute and/or modify the library.
 
-  Also, for each distributor's protection, we want to make certain
-that everyone understands that there is no warranty for this free
-library.  If the library is modified by someone else and passed on, we
-want its recipients to know that what they have is not the original
-version, so that any problems introduced by others will not reflect on
-the original authors' reputations.
+  To protect each distributor, we want to make it very clear that
+there is no warranty for the free library.  Also, if the library is
+modified by someone else and passed on, the recipients should know
+that what they have is not the original version, so that the original
+author's reputation will not be affected by problems that might be
+introduced by others.
 \f
-  Finally, any free program is threatened constantly by software
-patents.  We wish to avoid the danger that companies distributing free
-software will individually obtain patent licenses, thus in effect
-transforming the program into proprietary software.  To prevent this,
-we have made it clear that any patent must be licensed for everyone's
-free use or not licensed at all.
-
-  Most GNU software, including some libraries, is covered by the ordinary
-GNU General Public License, which was designed for utility programs.  This
-license, the GNU Library General Public License, applies to certain
-designated libraries.  This license is quite different from the ordinary
-one; be sure to read it in full, and don't assume that anything in it is
-the same as in the ordinary license.
-
-  The reason we have a separate public license for some libraries is that
-they blur the distinction we usually make between modifying or adding to a
-program and simply using it.  Linking a program with a library, without
-changing the library, is in some sense simply using the library, and is
-analogous to running a utility program or application program.  However, in
-a textual and legal sense, the linked executable is a combined work, a
-derivative of the original library, and the ordinary General Public License
-treats it as such.
-
-  Because of this blurred distinction, using the ordinary General
-Public License for libraries did not effectively promote software
-sharing, because most developers did not use the libraries.  We
-concluded that weaker conditions might promote sharing better.
-
-  However, unrestricted linking of non-free programs would deprive the
-users of those programs of all benefit from the free status of the
-libraries themselves.  This Library General Public License is intended to
-permit developers of non-free programs to use free libraries, while
-preserving your freedom as a user of such programs to change the free
-libraries that are incorporated in them.  (We have not seen how to achieve
-this as regards changes in header files, but we have achieved it as regards
-changes in the actual functions of the Library.)  The hope is that this
-will lead to faster development of free libraries.
+  Finally, software patents pose a constant threat to the existence of
+any free program.  We wish to make sure that a company cannot
+effectively restrict the users of a free program by obtaining a
+restrictive license from a patent holder.  Therefore, we insist that
+any patent license obtained for a version of the library must be
+consistent with the full freedom of use specified in this license.
+
+  Most GNU software, including some libraries, is covered by the
+ordinary GNU General Public License.  This license, the GNU Lesser
+General Public License, applies to certain designated libraries, and
+is quite different from the ordinary General Public License.  We use
+this license for certain libraries in order to permit linking those
+libraries into non-free programs.
+
+  When a program is linked with a library, whether statically or using
+a shared library, the combination of the two is legally speaking a
+combined work, a derivative of the original library.  The ordinary
+General Public License therefore permits such linking only if the
+entire combination fits its criteria of freedom.  The Lesser General
+Public License permits more lax criteria for linking other code with
+the library.
+
+  We call this license the "Lesser" General Public License because it
+does Less to protect the user's freedom than the ordinary General
+Public License.  It also provides other free software developers Less
+of an advantage over competing non-free programs.  These disadvantages
+are the reason we use the ordinary General Public License for many
+libraries.  However, the Lesser license provides advantages in certain
+special circumstances.
+
+  For example, on rare occasions, there may be a special need to
+encourage the widest possible use of a certain library, so that it
+becomes a de-facto standard.  To achieve this, non-free programs must
+be allowed to use the library.  A more frequent case is that a free
+library does the same job as widely used non-free libraries.  In this
+case, there is little to gain by limiting the free library to free
+software only, so we use the Lesser General Public License.
+
+  In other cases, permission to use a particular library in non-free
+programs enables a greater number of people to use a large body of
+free software.  For example, permission to use the GNU C Library in
+non-free programs enables many more people to use the whole GNU
+operating system, as well as its variant, the GNU/Linux operating
+system.
+
+  Although the Lesser General Public License is Less protective of the
+users' freedom, it does ensure that the user of a program that is
+linked with the Library has the freedom and the wherewithal to run
+that program using a modified version of the Library.
 
   The precise terms and conditions for copying, distribution and
 modification follow.  Pay close attention to the difference between a
 "work based on the library" and a "work that uses the library".  The
-former contains code derived from the library, while the latter only
-works together with the library.
-
-  Note that it is possible for a library to be covered by the ordinary
-General Public License rather than by this special one.
+former contains code derived from the library, whereas the latter must
+be combined with the library in order to run.
 \f
-                 GNU LIBRARY GENERAL PUBLIC LICENSE
+                  GNU LESSER GENERAL PUBLIC LICENSE
    TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
 
-  0. This License Agreement applies to any software library which
-contains a notice placed by the copyright holder or other authorized
-party saying it may be distributed under the terms of this Library
-General Public License (also called "this License").  Each licensee is
-addressed as "you".
+  0. This License Agreement applies to any software library or other
+program which contains a notice placed by the copyright holder or
+other authorized party saying it may be distributed under the terms of
+this Lesser General Public License (also called "this License").
+Each licensee is addressed as "you".
 
   A "library" means a collection of software functions and/or data
 prepared so as to be conveniently linked with application programs
@@ -123,8 +138,8 @@ included without limitation in the term "modification".)
   "Source code" for a work means the preferred form of the work for
 making modifications to it.  For a library, complete source code means
 all the source code for all modules it contains, plus any associated
-interface definition files, plus the scripts used to control compilation
-and installation of the library.
+interface definition files, plus the scripts used to control
+compilation and installation of the library.
 
   Activities other than copying, distribution and modification are not
 covered by this License; they are outside its scope.  The act of
@@ -133,7 +148,7 @@ such a program is covered only if its contents constitute a work based
 on the Library (independent of the use of the Library in a tool for
 writing it).  Whether that is true depends on what the Library does
 and what the program that uses the Library does.
-  
+
   1. You may copy and distribute verbatim copies of the Library's
 complete source code as you receive it, in any medium, provided that
 you conspicuously and appropriately publish on each copy an
@@ -255,7 +270,7 @@ distribute the object code for the work under the terms of Section 6.
 Any executables containing that work also fall under Section 6,
 whether or not they are linked directly with the Library itself.
 \f
-  6. As an exception to the Sections above, you may also compile or
+  6. As an exception to the Sections above, you may also combine or
 link a "work that uses the Library" with the Library to produce a
 work containing portions of the Library, and distribute that work
 under terms of your choice, provided that the terms permit
@@ -282,23 +297,31 @@ of these things:
     Library will not necessarily be able to recompile the application
     to use the modified definitions.)
 
-    b) Accompany the work with a written offer, valid for at
-    least three years, to give the same user the materials
-    specified in Subsection 6a, above, for a charge no more
-    than the cost of performing this distribution.
+    b) Use a suitable shared library mechanism for linking with the
+    Library.  A suitable mechanism is one that (1) uses at run time a
+    copy of the library already present on the user's computer system,
+    rather than copying library functions into the executable, and (2)
+    will operate properly with a modified version of the library, if
+    the user installs one, as long as the modified version is
+    interface-compatible with the version that the work was made with.
+
+    c) Accompany the work with a written offer, valid for at least
+    three years, to give the same user the materials specified in
+    Subsection 6a, above, for a charge no more than the cost of
+    performing this distribution.
 
-    c) If distribution of the work is made by offering access to copy
+    d) If distribution of the work is made by offering access to copy
     from a designated place, offer equivalent access to copy the above
     specified materials from the same place.
 
-    d) Verify that the user has already received a copy of these
+    e) Verify that the user has already received a copy of these
     materials or that you have already sent this user a copy.
 
   For an executable, the required form of the "work that uses the
 Library" must include any data and utility programs needed for
 reproducing the executable from it.  However, as a special exception,
-the source code distributed need not include anything that is normally
-distributed (in either source or binary form) with the major
+the materials to be distributed need not include anything that is
+normally distributed (in either source or binary form) with the major
 components (compiler, kernel, and so on) of the operating system on
 which the executable runs, unless that component itself accompanies
 the executable.
@@ -347,7 +370,7 @@ Library), the recipient automatically receives a license from the
 original licensor to copy, distribute, link with or modify the Library
 subject to these terms and conditions.  You may not impose any further
 restrictions on the recipients' exercise of the rights granted herein.
-You are not responsible for enforcing compliance by third parties to
+You are not responsible for enforcing compliance by third parties with
 this License.
 \f
   11. If, as a consequence of a court judgment or allegation of patent
@@ -363,9 +386,10 @@ all those who receive copies directly or indirectly through you, then
 the only way you could satisfy both it and this License would be to
 refrain entirely from distribution of the Library.
 
-If any portion of this section is held invalid or unenforceable under any
-particular circumstance, the balance of the section is intended to apply,
-and the section as a whole is intended to apply in other circumstances.
+If any portion of this section is held invalid or unenforceable under
+any particular circumstance, the balance of the section is intended to
+apply, and the section as a whole is intended to apply in other
+circumstances.
 
 It is not the purpose of this section to induce you to infringe any
 patents or other property right claims or to contest validity of any
@@ -383,14 +407,14 @@ be a consequence of the rest of this License.
 
   12. If the distribution and/or use of the Library is restricted in
 certain countries either by patents or by copyrighted interfaces, the
-original copyright holder who places the Library under this License may add
-an explicit geographical distribution limitation excluding those countries,
-so that distribution is permitted only in or among countries not thus
-excluded.  In such case, this License incorporates the limitation as if
-written in the body of this License.
+original copyright holder who places the Library under this License
+may add an explicit geographical distribution limitation excluding those
+countries, so that distribution is permitted only in or among
+countries not thus excluded.  In such case, this License incorporates
+the limitation as if written in the body of this License.
 
   13. The Free Software Foundation may publish revised and/or new
-versions of the Library General Public License from time to time.
+versions of the Lesser General Public License from time to time.
 Such new versions will be similar in spirit to the present version,
 but may differ in detail to address new problems or concerns.
 
@@ -411,7 +435,7 @@ decision will be guided by the two goals of preserving the free status
 of all derivatives of our free software and of promoting the sharing
 and reuse of software generally.
 
-                           NO WARRANTY
+                            NO WARRANTY
 
   15. BECAUSE THE LIBRARY IS LICENSED FREE OF CHARGE, THERE IS NO
 WARRANTY FOR THE LIBRARY, TO THE EXTENT PERMITTED BY APPLICABLE LAW.
@@ -434,46 +458,49 @@ FAILURE OF THE LIBRARY TO OPERATE WITH ANY OTHER SOFTWARE), EVEN IF
 SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH
 DAMAGES.
 
-                    END OF TERMS AND CONDITIONS
+                     END OF TERMS AND CONDITIONS
 \f
-     Appendix: How to Apply These Terms to Your New Libraries
+           How to Apply These Terms to Your New Libraries
 
   If you develop a new library, and you want it to be of the greatest
 possible use to the public, we recommend making it free software that
 everyone can redistribute and change.  You can do so by permitting
-redistribution under these terms (or, alternatively, under the terms of the
-ordinary General Public License).
+redistribution under these terms (or, alternatively, under the terms
+of the ordinary General Public License).
+
+  To apply these terms, attach the following notices to the library.
+It is safest to attach them to the start of each source file to most
+effectively convey the exclusion of warranty; and each file should
+have at least the "copyright" line and a pointer to where the full
+notice is found.
 
-  To apply these terms, attach the following notices to the library.  It is
-safest to attach them to the start of each source file to most effectively
-convey the exclusion of warranty; and each file should have at least the
-"copyright" line and a pointer to where the full notice is found.
 
     <one line to give the library's name and a brief idea of what it does.>
     Copyright (C) <year>  <name of author>
 
     This library is free software; you can redistribute it and/or
-    modify it under the terms of the GNU Library General Public
+    modify it under the terms of the GNU Lesser General Public
     License as published by the Free Software Foundation; either
-    version 2 of the License, or (at your option) any later version.
+    version 2.1 of the License, or (at your option) any later version.
 
     This library is distributed in the hope that it will be useful,
     but WITHOUT ANY WARRANTY; without even the implied warranty of
     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
-    Library General Public License for more details.
+    Lesser General Public License for more details.
 
-    You should have received a copy of the GNU Library General Public
-    License along with this library; if not, write to the Free
-    Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
+    You should have received a copy of the GNU Lesser General Public
+    License along with this library; if not, write to the Free Software
+    Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
 
 Also add information on how to contact you by electronic and paper mail.
 
-You should also get your employer (if you work as a programmer) or your
-school, if any, to sign a "copyright disclaimer" for the library, if
-necessary.  Here is a sample; alter the names:
+You should also get your employer (if you work as a programmer) or
+your school, if any, to sign a "copyright disclaimer" for the library,
+if necessary.  Here is a sample; alter the names:
 
   Yoyodyne, Inc., hereby disclaims all copyright interest in the
-  library `Frob' (a library for tweaking knobs) written by James Random Hacker.
+  library `Frob' (a library for tweaking knobs) written by James
+  Random Hacker.
 
   <signature of Ty Coon>, 1 April 1990
   Ty Coon, President of Vice
index c4fa19c..4cf0aaf 100644 (file)
@@ -1,6 +1,5 @@
 #      @(#)Makefile    5.33.1.1 (Berkeley) 5/6/91
 # $FreeBSD: src/gnu/Makefile,v 1.33.2.1 2002/07/25 16:33:10 obrien Exp $
-# $DragonFly: src/gnu/Makefile,v 1.4 2005/05/03 14:21:31 joerg Exp $
 
 SUBDIR= usr.bin sbin lib
 
diff --git a/gnu/lib/gcc80/Makefile b/gnu/lib/gcc80/Makefile
new file mode 100644 (file)
index 0000000..b52567c
--- /dev/null
@@ -0,0 +1,15 @@
+# csu and libgcc* are normally built earlier by the _startup_libs80 target
+
+SUBDIR_ORDERED=
+
+SUBDIR+=       csu
+SUBDIR+=       libgcc
+SUBDIR+=       libgcc_eh
+SUBDIR+=       libgcc_pic
+SUBDIR+=       libgcov
+SUBDIR+=       libgomp
+SUBDIR+=       libssp
+SUBDIR+=       libssp_nonshared
+SUBDIR+=       libstdcxx
+
+.include <bsd.subdir.mk>
diff --git a/gnu/lib/gcc80/Makefile.inc b/gnu/lib/gcc80/Makefile.inc
new file mode 100644 (file)
index 0000000..9597f58
--- /dev/null
@@ -0,0 +1,32 @@
+.if !target(__<gcc80.Makefile.inc>__)
+__<gcc80.Makefile.inc>__:
+
+.include "../../usr.bin/cc80/Makefile.version"
+
+GCCDIR=                ${.CURDIR}${RELUP}/../../../../contrib/gcc-8.0
+OCCDIR=                ${.OBJDIR}${RELUP}/../../../usr.bin/cc${GCCSHORTVER}
+CCDIR=         ${.CURDIR}${RELUP}/../../../usr.bin/cc${GCCSHORTVER}
+
+CCVER=gcc${GCCSHORTVER}
+
+TRAMPSIZE=     24
+
+TARGETDIR=             ${LIBDIR}/gcc${GCCSHORTVER}
+TARGET_LIBDIR=         ${TARGETDIR}
+TARGET_DEBUGLIBDIR=    ${TARGETDIR}/debug
+TARGET_PROFLIBDIR=     ${TARGETDIR}/profile
+TARGET_SHLIBDIR=       ${TARGETDIR}
+
+LIBSUPCPP=             ${.OBJDIR}/../libsupc++/libsupc++.a
+
+CFLAGS+=       -I${CCDIR}/cc_prep
+CFLAGS+=       -I${CCDIR}/cc_prep/config
+CFLAGS+=       -I${OCCDIR}/cc_prep
+CFLAGS+=       -I${OCCDIR}/cc_tools/tools
+CFLAGS+=       -I${GCCDIR}/include
+CFLAGS+=       -I${GCCDIR}/gcc
+CFLAGS+=       -I${GCCDIR}/gcc/config
+CFLAGS+=       -I${GCCDIR}/gcc/config/i386
+CFLAGS+=       -I${CCDIR}/../gmp
+
+.endif
diff --git a/gnu/lib/gcc80/csu/Makefile b/gnu/lib/gcc80/csu/Makefile
new file mode 100644 (file)
index 0000000..6251a41
--- /dev/null
@@ -0,0 +1,36 @@
+.include "../Makefile.inc"
+.PATH: ${GCCDIR}/libgcc
+
+.if ${CCVER:Mgcc*}
+CFLAGS+=       -finhibit-size-directive
+CFLAGS+=       -fno-toplevel-reorder
+.endif
+
+CFLAGS+=       -fno-inline
+CFLAGS+=       -fno-exceptions
+CFLAGS+=       -fno-zero-initialized-in-bss
+CFLAGS+=       -fno-tree-vectorize
+CFLAGS+=       -fbuilding-libgcc
+CFLAGS+=       -fno-stack-protector
+CFLAGS+=       -fno-omit-frame-pointer
+CFLAGS+=       -fno-asynchronous-unwind-tables
+CFLAGS+=       -I.
+CFLAGS+=       -DIN_GCC
+
+libgcc_tm.h:
+       echo "#ifndef LIBGCC_TM_H" >  ${.TARGET}
+       echo "#define LIBGCC_TM_H" >> ${.TARGET}
+       echo "#endif"              >> ${.TARGET}
+
+CLEANFILES+=   libgcc_tm.h
+
+# note: auto-host.h generated by Makefile.csu is not used.  The cc_prep
+# autohost.h is loaded preferentially instead.
+
+beforedepend: libgcc_tm.h
+
+# calling depend may fail to find insn-constants.h, so skip this step
+# seen on muscles and reproducible manually
+depend: beforedepend
+
+.include "../../csu/Makefile.csu"
diff --git a/gnu/lib/gcc80/libgcc/Makefile b/gnu/lib/gcc80/libgcc/Makefile
new file mode 100644 (file)
index 0000000..b983def
--- /dev/null
@@ -0,0 +1,149 @@
+.include "../Makefile.inc"
+.include "Makefile.src"
+.PATH: ${GCCDIR}/libgcc
+.PATH: ${GCCDIR}/libgcc/soft-fp
+.PATH: ${GCCDIR}/libgcc/config/i386
+
+LIB=           gcc
+
+# this is a special case
+NOSHARED=      YES
+
+CFLAGS+=       -I${.CURDIR}
+CFLAGS+=       -I${.OBJDIR}
+CFLAGS+=       -I${GCCDIR}/libgcc
+CFLAGS+=       -I${GCCDIR}/libgcc/config/i386
+CFLAGS+=       -I../csu
+CFLAGS+=       -fbuilding-libgcc
+CFLAGS+=       -fno-stack-protector
+CFLAGS+=       -fvisibility=hidden
+CFLAGS+=       -fpic
+CFLAGS+=       -DPIC
+CFLAGS+=       -DIN_GCC
+CFLAGS+=       -DIN_LIBGCC2
+CFLAGS+=       -DHAVE_CC_TLS
+CFLAGS+=       -DHIDE_EXPORTS
+
+# FUNCS and SOFTFUNCS defined in Makefile.src
+OBJS=          ${FUNCS:S/$/.o/} ${FUNCS_ST:S/$/.o/}
+SRCS=          ${SOFTFUNCS:S/$/.c/}
+
+#generated sources
+SRCS+=         gthr-default.h sfp-machine.h
+
+# GCC's libgcc generates source files which depend on generated
+# header files, which means we have to generate our tools set before
+# we can build libgcc.  The toolset is normally built afterwards.
+#
+# XXX for the world stage we could theoretically use the cc_tools generated
+# in the btools stage, but it's easier to regenerate them.
+#
+# Assumed to be built prior to this makefile:
+#   gnu/usr.bin/cc80/cc_prep
+#   gnu/usr.bin/cc80/cc_tools
+#   gnu/lib/gcc80/csu
+
+# derived from generated build/gcc/Makefile
+EXTRA_HEADERS = \
+       ${GCCDIR}/gcc/config/i386/cpuid.h \
+       ${GCCDIR}/gcc/config/i386/mmintrin.h \
+       ${GCCDIR}/gcc/config/i386/mm3dnow.h \
+       ${GCCDIR}/gcc/config/i386/xmmintrin.h \
+       ${GCCDIR}/gcc/config/i386/emmintrin.h \
+       ${GCCDIR}/gcc/config/i386/pmmintrin.h \
+       ${GCCDIR}/gcc/config/i386/tmmintrin.h \
+       ${GCCDIR}/gcc/config/i386/ammintrin.h \
+       ${GCCDIR}/gcc/config/i386/smmintrin.h \
+       ${GCCDIR}/gcc/config/i386/nmmintrin.h \
+       ${GCCDIR}/gcc/config/i386/bmmintrin.h \
+       ${GCCDIR}/gcc/config/i386/fma4intrin.h \
+       ${GCCDIR}/gcc/config/i386/wmmintrin.h \
+       ${GCCDIR}/gcc/config/i386/immintrin.h \
+       ${GCCDIR}/gcc/config/i386/x86intrin.h \
+       ${GCCDIR}/gcc/config/i386/avxintrin.h \
+       ${GCCDIR}/gcc/config/i386/xopintrin.h \
+       ${GCCDIR}/gcc/config/i386/ia32intrin.h \
+       ${GCCDIR}/gcc/config/i386/cross-stdarg.h \
+       ${GCCDIR}/gcc/config/i386/lwpintrin.h \
+       ${GCCDIR}/gcc/config/i386/popcntintrin.h \
+       ${GCCDIR}/gcc/config/i386/lzcntintrin.h \
+       ${GCCDIR}/gcc/config/i386/bmiintrin.h \
+       ${GCCDIR}/gcc/config/i386/bmi2intrin.h \
+       ${GCCDIR}/gcc/config/i386/tbmintrin.h \
+       ${GCCDIR}/gcc/config/i386/avx2intrin.h \
+       ${GCCDIR}/gcc/config/i386/avx512fintrin.h \
+       ${GCCDIR}/gcc/config/i386/fmaintrin.h \
+       ${GCCDIR}/gcc/config/i386/f16cintrin.h \
+       ${GCCDIR}/gcc/config/i386/rtmintrin.h \
+       ${GCCDIR}/gcc/config/i386/xtestintrin.h \
+       ${GCCDIR}/gcc/config/i386/rdseedintrin.h \
+       ${GCCDIR}/gcc/config/i386/prfchwintrin.h \
+       ${GCCDIR}/gcc/config/i386/adxintrin.h \
+       ${GCCDIR}/gcc/config/i386/fxsrintrin.h \
+       ${GCCDIR}/gcc/config/i386/xsaveintrin.h \
+       ${GCCDIR}/gcc/config/i386/xsaveoptintrin.h \
+       ${GCCDIR}/gcc/config/i386/avx512cdintrin.h \
+       ${GCCDIR}/gcc/config/i386/avx512erintrin.h \
+       ${GCCDIR}/gcc/config/i386/avx512pfintrin.h \
+       ${GCCDIR}/gcc/config/i386/shaintrin.h \
+       ${GCCDIR}/gcc/config/i386/clflushoptintrin.h \
+       ${GCCDIR}/gcc/config/i386/xsavecintrin.h \
+       ${GCCDIR}/gcc/config/i386/xsavesintrin.h \
+       ${GCCDIR}/gcc/config/i386/avx512dqintrin.h \
+       ${GCCDIR}/gcc/config/i386/avx512bwintrin.h \
+       ${GCCDIR}/gcc/config/i386/avx512vlintrin.h \
+       ${GCCDIR}/gcc/config/i386/avx512vlbwintrin.h \
+       ${GCCDIR}/gcc/config/i386/avx512vldqintrin.h \
+       ${GCCDIR}/gcc/config/i386/avx512ifmaintrin.h \
+       ${GCCDIR}/gcc/config/i386/avx512ifmavlintrin.h \
+       ${GCCDIR}/gcc/config/i386/avx512vbmiintrin.h \
+       ${GCCDIR}/gcc/config/i386/avx512vbmivlintrin.h \
+       ${GCCDIR}/gcc/config/i386/avx5124fmapsintrin.h \
+       ${GCCDIR}/gcc/config/i386/avx5124vnniwintrin.h \
+       ${GCCDIR}/gcc/config/i386/avx512vpopcntdqintrin.h \
+       ${GCCDIR}/gcc/config/i386/clwbintrin.h \
+       ${GCCDIR}/gcc/config/i386/mwaitxintrin.h \
+       ${GCCDIR}/gcc/config/i386/clzerointrin.h \
+       ${GCCDIR}/gcc/config/i386/pkuintrin.h \
+       ${GCCDIR}/gcc/config/i386/sgxintrin.h \
+       ${GCCDIR}/gcc/config/i386/cetintrin.h \
+       ${GCCDIR}/gcc/config/i386/gfniintrin.h \
+       ${GCCDIR}/gcc/config/i386/cet.h \
+       ${GCCDIR}/gcc/config/i386/avx512vbmi2intrin.h \
+       ${GCCDIR}/gcc/config/i386/avx512vbmi2vlintrin.h \
+       ${GCCDIR}/gcc/config/i386/avx512vnniintrin.h \
+       ${GCCDIR}/gcc/config/i386/avx512vnnivlintrin.h \
+       ${GCCDIR}/gcc/config/i386/vaesintrin.h \
+       ${GCCDIR}/gcc/config/i386/vpclmulqdqintrin.h \
+       ${GCCDIR}/gcc/config/i386/avx512vpopcntdqvlintrin.h \
+       ${GCCDIR}/gcc/config/i386/avx512bitalgintrin.h \
+       ${GCCDIR}/gcc/config/i386/pconfigintrin.h \
+       ${GCCDIR}/gcc/config/i386/wbnoinvdintrin.h \
+       ${GCCDIR}/gcc/config/i386/movdirintrin.h \
+       ${GCCDIR}/gcc/ginclude/stdatomic.h \
+       ${GCCDIR}/gcc/ginclude/stdfix.h
+
+#generated sources
+SRCS+= mm_malloc.h unwind.h
+
+INCS=          ${EXTRA_HEADERS} mm_malloc.h unwind.h
+INCSDIR=       /usr/libdata/gcc${GCCSHORTVER}
+
+mm_malloc.h: ${GCCDIR}/gcc/config/i386/gmm_malloc.h
+       cp ${.ALLSRC} ${.TARGET}
+
+gthr-default.h: gthr-posix.h
+       cp ${.ALLSRC} ${.TARGET}
+
+sfp-machine.h: ${GCCDIR}/libgcc/config/i386/sfp-machine.h
+       cp ${.ALLSRC} ${.TARGET}
+
+enable-execute-stack.c: enable-execute-stack-mprotect.c
+       cp ${.ALLSRC} ${.TARGET}
+
+unwind.h: unwind-generic.h
+       cp ${.ALLSRC} ${.TARGET}
+
+CLEANFILES+=   mm_malloc.h unwind.h gthr-default.h enable-execute-stack.c
+
+.include <bsd.lib.mk>
diff --git a/gnu/lib/gcc80/libgcc/Makefile.src b/gnu/lib/gcc80/libgcc/Makefile.src
new file mode 100644 (file)
index 0000000..4fc7d5f
--- /dev/null
@@ -0,0 +1,74 @@
+# build/x86-64-portbuild-dragonfly5.1/libgcc/Makefile
+# Library members defined in libgcc2.c.
+lib2funcs = _muldi3 _negdi2 _lshrdi3 _ashldi3 _ashrdi3 _cmpdi2 _ucmpdi2                \
+           _clear_cache _trampoline __main _absvsi2                            \
+           _absvdi2 _addvsi3 _addvdi3 _subvsi3 _subvdi3 _mulvsi3 _mulvdi3      \
+           _negvsi2 _negvdi2 _ctors _ffssi2 _ffsdi2 _clz _clzsi2 _clzdi2       \
+           _ctzsi2 _ctzdi2 _popcount_tab _popcountsi2 _popcountdi2             \
+           _paritysi2 _paritydi2 _powisf2 _powidf2 _powixf2 _powitf2           \
+           _mulhc3 _mulsc3 _muldc3 _mulxc3 _multc3 _divhc3 _divsc3             \
+           _divdc3 _divxc3 _divtc3 _bswapsi2 _bswapdi2 _clrsbsi2               \
+           _clrsbdi2
+
+.for f in sf df xf
+lib2funcs+=    _fixuns${f}si
+lib2funcs+=    _fixuns${f}di
+lib2funcs+=    _fix${f}di
+lib2funcs+=    _floatdi${f}
+lib2funcs+=    _floatundi${f}
+nowsoft+=      extend${f}tf2
+.endfor
+
+.for f in si di ti
+nowsoft+=      fixtf${f}
+nowsoft+=      fixunstf${f}
+nowsoft+=      float${f}tf
+nowsoft+=      floatun${f}tf
+.endfor
+
+LIB2_DIVMOD_FUNCS = _divdi3 _moddi3 _divmoddi4 \
+                   _udivdi3 _umoddi3 _udivmoddi4 _udiv_w_sdiv
+
+# Defined in libgcc2.c, included only in the static library.
+LIB2FUNCS_ST = _eprintf __gcc_bcmp
+
+# softfp functions and enable-execute-stack don't use L_ definitions
+SOFTFUNCS=     addtf3 divtf3 eqtf2 getf2 letf2 multf3 negtf2 subtf3 unordtf2
+SOFTFUNCS+=    enable-execute-stack cpuinfo sfp-exceptions
+SOFTFUNCS+=    ${nowsoft}
+SOFTFUNCS+=    trunctfsf2 trunctfdf2 trunctfxf2
+FUNCS=         ${lib2funcs} ${LIB2_DIVMOD_FUNCS}
+FUNCS_ST=      ${LIB2FUNCS_ST}
+
+# for now do not let the use of -flto
+.if ${CFLAGS:M-flto}
+CFLAGS+=       -fno-lto
+LDFLAGS+=      -flto
+.endif
+
+#stack_FLAGS=          -D__LIBGCC_TRAMPOLINE_SIZE__=${TRAMPSIZE}
+#stack_FLAGS_FILES=    enable-execute-stack.c
+
+FLAG_GROUPS=           raise
+raise_FLAGS=           -fexceptions -fnon-call-exceptions
+raise_FLAGS_FILES=     ${LIB2_DIVMOD_FUNCS:S/$/.c/}
+
+${FUNCS_ST:S/$/.o/}: ${GCCDIR}/libgcc/libgcc2.c
+       ${CC} ${STATIC_CFLAGS} ${CFLAGS} -DL${.TARGET:R} -c ${.ALLSRC} \
+               -o ${.TARGET}
+
+${FUNCS_ST:S/$/.po/}: ${GCCDIR}/libgcc/libgcc2.c
+       ${CC} ${PO_FLAG} ${STATIC_CFLAGS} ${PO_CFLAGS} -DL${.TARGET:R} \
+               -c ${.ALLSRC} -o ${.TARGET}
+
+${FUNCS:S/$/.o/}: ${GCCDIR}/libgcc/libgcc2.c
+       ${CC} ${STATIC_CFLAGS} ${CFLAGS} -DL${.TARGET:R} -c ${.ALLSRC} \
+               -o ${.TARGET}
+
+${FUNCS:S/$/.po/}: ${GCCDIR}/libgcc/libgcc2.c
+       ${CC} ${PO_FLAG} ${STATIC_CFLAGS} ${PO_CFLAGS} -DL${.TARGET:R} \
+               -c ${.ALLSRC} -o ${.TARGET}
+
+${FUNCS:S/$/.So/}: ${GCCDIR}/libgcc/libgcc2.c
+       ${CC} ${PICFLAG} -DPIC ${SHARED_CFLAGS} ${CFLAGS} -DL${.TARGET:R} \
+               -c ${.ALLSRC} -o ${.TARGET}
diff --git a/gnu/lib/gcc80/libgcc_eh/Makefile b/gnu/lib/gcc80/libgcc_eh/Makefile
new file mode 100644 (file)
index 0000000..8174a1d
--- /dev/null
@@ -0,0 +1,58 @@
+.include "../Makefile.inc"
+.PATH: ${GCCDIR}/libgcc
+.PATH: ${GCCDIR}/libgcc/config/i386
+
+LIB=           gcc_eh
+
+# this is a special case
+NOSHARED=      YES
+
+# XXX gcc50 libgcc_eh.a was not using -fpic
+CFLAGS+=       -fpic
+
+CFLAGS+=       -I${.CURDIR}
+CFLAGS+=       -I${.OBJDIR}
+CFLAGS+=       -I${GCCDIR}/libgcc
+CFLAGS+=       -I../csu
+CFLAGS+=       -fbuilding-libgcc
+CFLAGS+=       -fno-stack-protector
+CFLAGS+=       -fexceptions
+CFLAGS+=       -fvisibility=hidden
+CFLAGS+=       -DIN_GCC
+CFLAGS+=       -DIN_LIBGCC2
+CFLAGS+=       -DHAVE_CC_TLS
+CFLAGS+=       -DHIDE_EXPORTS
+
+# for now do not let the use of -flto
+.if ${CFLAGS:M-flto}
+CFLAGS+=       -fno-lto
+LDFLAGS+=      -flto
+.endif
+
+# LIB2ADDEH, gcc/Makefile
+SRCS+= unwind-dw2.c \
+       unwind-dw2-fde-dip.c \
+       unwind-sjlj.c \
+       unwind-c.c \
+       emutls.c
+
+# generated sources
+SRCS+= unwind.h md-unwind-support.h gthr-default.h
+
+unwind.h: unwind-generic.h
+       cp ${.ALLSRC} ${.TARGET}
+
+md-unwind-support.h: dragonfly-unwind.h
+       cp ${.ALLSRC} ${.TARGET}
+
+gthr-default.h: gthr-posix.h
+       cp ${.ALLSRC} ${.TARGET}
+
+auto-target.h: ${.CURDIR}/../libgcc/auto-target.h
+       cp ${.ALLSRC} ${.TARGET}
+
+CLEANFILES+=   unwind.h md-unwind-support.h gthr-default.h auto-target.h
+
+beforedepend:  auto-target.h
+
+.include <bsd.lib.mk>
diff --git a/gnu/lib/gcc80/libgcc_pic/Makefile b/gnu/lib/gcc80/libgcc_pic/Makefile
new file mode 100644 (file)
index 0000000..aca4bd3
--- /dev/null
@@ -0,0 +1,63 @@
+.include "../Makefile.inc"
+.include "../libgcc/Makefile.src"
+.PATH: ${GCCDIR}/libgcc
+.PATH: ${GCCDIR}/libgcc/soft-fp
+.PATH: ${GCCDIR}/libgcc/config/i386
+
+LIB=   gcc_pic
+
+NOPROFILE=     YES
+# Mimic libgcc_s.so, this is a special case
+NOSHARED=      YES
+
+CFLAGS+=       -fpic
+
+CFLAGS+=       -I${.CURDIR}
+CFLAGS+=       -I${.OBJDIR}
+CFLAGS+=       -I${GCCDIR}/libgcc
+CFLAGS+=       -I../csu
+CFLAGS+=       -fbuilding-libgcc
+CFLAGS+=       -fno-stack-protector
+CFLAGS+=       -fexceptions
+CFLAGS+=       -DIN_GCC
+CFLAGS+=       -DIN_LIBGCC2
+CFLAGS+=       -DHAVE_CC_TLS
+CFLAGS+=       -DSHARED
+
+# FUNCS and SOFTFUNCS defined in Makefile.src
+OBJS=          ${FUNCS:S/$/.o/}
+SRCS=          ${SOFTFUNCS:S/$/.c/}
+
+# LIB2ADDEH, gcc/Makefile
+SRCS+= unwind-dw2.c \
+       unwind-dw2-fde-dip.c \
+       unwind-sjlj.c \
+       unwind-c.c \
+       emutls.c
+
+# generated sources
+unwind.h: unwind-generic.h
+       cp ${.ALLSRC} ${.TARGET}
+
+gthr-default.h: gthr-posix.h
+       cp ${.ALLSRC} ${.TARGET}
+
+md-unwind-support.h: dragonfly-unwind.h
+       cp ${.ALLSRC} ${.TARGET}
+
+sfp-machine.h: ${GCCDIR}/libgcc/config/i386/sfp-machine.h
+       cp ${.ALLSRC} ${.TARGET}
+
+enable-execute-stack.c: enable-execute-stack-mprotect.c
+       cp ${.ALLSRC} ${.TARGET}
+
+auto-target.h: ${.CURDIR}/../libgcc/auto-target.h
+       cp ${.ALLSRC} ${.TARGET}
+
+CLEANFILES+=   unwind.h gthr-default.h sfp-machine.h md-unwind-support.h \
+               enable-execute-stack.c auto-target.h
+
+beforedepend:  unwind.h gthr-default.h sfp-machine.h md-unwind-support.h \
+               enable-execute-stack.c auto-target.h
+
+.include <bsd.lib.mk>
diff --git a/gnu/lib/gcc80/libgcov/Makefile b/gnu/lib/gcc80/libgcov/Makefile
new file mode 100644 (file)
index 0000000..0aa6082
--- /dev/null
@@ -0,0 +1,97 @@
+.include "../Makefile.inc"
+.PATH: ${GCCDIR}/libgcc
+
+LIB=           gcov
+WARNS?=1
+
+CFLAGS+=       -I.
+CFLAGS+=       -I${GCCDIR}/libgcc
+CFLAGS+=       -I${.OBJDIR}/../csu
+CFLAGS+=       -fbuilding-libgcc
+CFLAGS+=       -fno-stack-protector
+CFLAGS+=       -DIN_LIBGCC2 -DHAVE_CC_TLS -DIN_GCC
+
+# used by shared libs
+INSTALL_PIC_ARCHIVE=   yes
+
+# taken from build/x86_64-portbld-dragonfly4.1/libgcc/Makefile
+LIBGCOV_MERGE = _gcov_merge_add _gcov_merge_single _gcov_merge_delta   \
+       _gcov_merge_ior _gcov_merge_time_profile _gcov_merge_icall_topn
+LIBGCOV_PROFILER = _gcov_interval_profiler _gcov_pow2_profiler         \
+       _gcov_one_value_profiler _gcov_indirect_call_profiler           \
+       _gcov_average_profiler _gcov_ior_profiler                       \
+       _gcov_indirect_call_profiler_v2 _gcov_time_profiler             \
+       _gcov_indirect_call_topn_profiler
+LIBGCOV_INTERFACE = _gcov_dump _gcov_flush _gcov_fork                  \
+       _gcov_execl _gcov_execlp                                        \
+       _gcov_execle _gcov_execv _gcov_execvp _gcov_execve _gcov_reset
+LIBGCOV_DRIVER = _gcov
+
+LIBGCOV=       ${LIBGCOV_MERGE} ${LIBGCOV_PROFILER} ${LIBGCOV_INTERFACE} \
+               ${LIBGCOV_DRIVER}
+
+OBJS=  ${LIBGCOV:S/$/.o/}
+
+gthr-default.h: gthr-posix.h
+       cp ${.ALLSRC} ${.TARGET}
+
+${LIBGCOV_MERGE:S/$/.o/}: ${GCCDIR}/libgcc/libgcov-merge.c
+       ${CC} ${STATIC_CFLAGS} ${CFLAGS} -DL${.TARGET:R} -c ${.ALLSRC} \
+               -o ${.TARGET}
+
+${LIBGCOV_PROFILER:S/$/.o/}: ${GCCDIR}/libgcc/libgcov-profiler.c
+       ${CC} ${STATIC_CFLAGS} ${CFLAGS} -DL${.TARGET:R} -c ${.ALLSRC} \
+               -o ${.TARGET}
+
+${LIBGCOV_INTERFACE:S/$/.o/}: ${GCCDIR}/libgcc/libgcov-interface.c gthr-default.h
+       ${CC} ${STATIC_CFLAGS} ${CFLAGS} -DL${.TARGET:R} -c ${.ALLSRC:M*.c} \
+               -o ${.TARGET}
+
+${LIBGCOV_DRIVER:S/$/.o/}: ${GCCDIR}/libgcc/libgcov-driver.c
+       ${CC} ${STATIC_CFLAGS} ${CFLAGS} -DL${.TARGET:R} -c ${.ALLSRC} \
+               -o ${.TARGET}
+
+# profile versions follow
+
+${LIBGCOV_MERGE:S/$/.po/}: ${GCCDIR}/libgcc/libgcov-merge.c
+       ${CC} ${PO_FLAG} ${STATIC_CFLAGS} ${PO_CFLAGS} -DL${.TARGET:R} \
+               -c ${.ALLSRC} -o ${.TARGET}
+
+${LIBGCOV_PROFILER:S/$/.po/}: ${GCCDIR}/libgcc/libgcov-profiler.c
+       ${CC} ${PO_FLAG} ${STATIC_CFLAGS} ${PO_CFLAGS} -DL${.TARGET:R} \
+               -c ${.ALLSRC} -o ${.TARGET}
+
+${LIBGCOV_INTERFACE:S/$/.po/}: ${GCCDIR}/libgcc/libgcov-interface.c gthr-default.h
+       ${CC} ${PO_FLAG} ${STATIC_CFLAGS} ${PO_CFLAGS} -DL${.TARGET:R} \
+               -c ${.ALLSRC:M*.c} -o ${.TARGET}
+
+${LIBGCOV_DRIVER:S/$/.po/}: ${GCCDIR}/libgcc/libgcov-driver.c
+       ${CC} ${PO_FLAG} ${STATIC_CFLAGS} ${PO_CFLAGS} -DL${.TARGET:R} \
+               -c ${.ALLSRC} -o ${.TARGET}
+
+# pic versions follow
+
+${LIBGCOV_MERGE:S/$/.So/}: ${GCCDIR}/libgcc/libgcov-merge.c
+       ${CC} ${PICFLAG} -DPIC ${SHARED_CFLAGS} ${CFLAGS} -DL${.TARGET:R} -c ${.ALLSRC} \
+               -o ${.TARGET}
+
+${LIBGCOV_PROFILER:S/$/.So/}: ${GCCDIR}/libgcc/libgcov-profiler.c
+       ${CC} ${PICFLAG} -DPIC ${SHARED_CFLAGS} ${CFLAGS} -DL${.TARGET:R} -c ${.ALLSRC} \
+               -o ${.TARGET}
+
+${LIBGCOV_INTERFACE:S/$/.So/}: ${GCCDIR}/libgcc/libgcov-interface.c gthr-default.h
+       ${CC} ${PICFLAG} -DPIC ${SHARED_CFLAGS} ${CFLAGS} -DL${.TARGET:R} -c ${.ALLSRC:M*.c} \
+               -o ${.TARGET}
+
+${LIBGCOV_DRIVER:S/$/.So/}: ${GCCDIR}/libgcc/libgcov-driver.c
+       ${CC} ${PICFLAG} -DPIC ${SHARED_CFLAGS} ${CFLAGS} -DL${.TARGET:R} -c ${.ALLSRC} \
+               -o ${.TARGET}
+
+auto-target.h: ${.CURDIR}/../libgcc/auto-target.h
+       cp ${.ALLSRC} ${.TARGET}
+
+CLEANFILES+= auto-target.h gthr-default.h
+
+beforedepend: auto-target.h
+
+.include <bsd.lib.mk>
diff --git a/gnu/lib/gcc80/libgomp/Makefile b/gnu/lib/gcc80/libgomp/Makefile
new file mode 100644 (file)
index 0000000..7434404
--- /dev/null
@@ -0,0 +1,99 @@
+CFLAGS+=       -I${.CURDIR}
+CFLAGS+=       -I${.OBJDIR}
+.include "../Makefile.inc"
+
+.PATH: ${GCCDIR}/libgomp
+#.PATH: ${GCCDIR}/libgomp/config/bsd
+.PATH: ${GCCDIR}/libgomp/config/posix
+
+CFLAGS+=       -DHAVE_CONFIG_H
+CFLAGS+=       -I${GCCDIR}/libgomp
+CFLAGS+=       -I${GCCDIR}/libgomp/config/posix
+CFLAGS+=       -I${GCCDIR}/libgcc
+VERSION_MAP=   libgomp.ver
+
+LIB=           gomp
+SHLIB_MAJOR=   1
+
+LDADD=         -lpthread
+DPADD=         ${LIBPTHREAD}
+
+# From build/x86_64-portbld-dragonfly5.1/libgomp/Makefile
+libgomp_la_SOURCES = alloc.c atomic.c barrier.c critical.c env.c \
+       error.c icv.c icv-device.c iter.c iter_ull.c loop.c loop_ull.c \
+       ordered.c parallel.c sections.c single.c task.c team.c work.c \
+       lock.c proc.c sem.c bar.c time.c fortran.c \
+       affinity.c target.c splay-tree.c libgomp-plugin.c \
+       oacc-parallel.c oacc-host.c oacc-init.c oacc-mem.c \
+       oacc-async.c oacc-plugin.c oacc-cuda.c priority_queue.c
+
+SRCS=  ${libgomp_la_SOURCES}
+
+# empty sources (Everything is in the header.)
+#SRCS+=        mutex.c ptrlock.c
+
+# On gcc80 this is from Makefile.x86-64, but there is only one platform now
+# Values recorded in <build-dir>/libgomp/config.log
+# x86-64 platform
+
+OMP_LOCK_25_ALIGN=     8
+OMP_LOCK_25_KIND=      8
+OMP_LOCK_25_SIZE=      8
+OMP_LOCK_ALIGN=                8
+OMP_LOCK_KIND=         8
+OMP_LOCK_SIZE=         8
+OMP_NEST_LOCK_25_ALIGN= 8
+OMP_NEST_LOCK_25_KIND= 8
+OMP_NEST_LOCK_25_SIZE= 16
+OMP_NEST_LOCK_ALIGN=   8
+OMP_NEST_LOCK_KIND=    8
+OMP_NEST_LOCK_SIZE=    24
+
+# tail of former Makefile.x86-64
+
+INCSGROUPS=    hd_libdata hd_lib
+hd_libdataDIR= /usr/libdata/gcc${GCCSHORTVER}
+hd_libDIR=     /usr/lib/gcc${GCCSHORTVER}
+
+hd_libdata=    omp.h
+hd_lib=                libgomp.spec
+
+libgomp_f.h: ${GCCDIR}/libgomp/libgomp_f.h.in
+       sed -e 's/@OMP_LOCK_25_ALIGN@/${OMP_LOCK_25_ALIGN}/g' \
+           -e 's/@OMP_LOCK_25_KIND@/${OMP_LOCK_25_KIND}/g' \
+           -e 's/@OMP_LOCK_25_SIZE@/${OMP_LOCK_25_SIZE}/g' \
+           -e 's/@OMP_LOCK_ALIGN@/${OMP_LOCK_ALIGN}/g' \
+           -e 's/@OMP_LOCK_KIND@/${OMP_LOCK_KIND}/g' \
+           -e 's/@OMP_LOCK_SIZE@/${OMP_LOCK_SIZE}/g' \
+           -e 's/@OMP_NEST_LOCK_25_ALIGN@/${OMP_NEST_LOCK_25_ALIGN}/g' \
+           -e 's/@OMP_NEST_LOCK_25_KIND@/${OMP_NEST_LOCK_25_KIND}/g' \
+           -e 's/@OMP_NEST_LOCK_25_SIZE@/${OMP_NEST_LOCK_25_SIZE}/g' \
+           -e 's/@OMP_NEST_LOCK_ALIGN@/${OMP_NEST_LOCK_ALIGN}/g' \
+           -e 's/@OMP_NEST_LOCK_KIND@/${OMP_NEST_LOCK_KIND}/g' \
+           -e 's/@OMP_NEST_LOCK_SIZE@/${OMP_NEST_LOCK_SIZE}/g' \
+           < ${.ALLSRC} > ${.TARGET}
+
+omp.h: ${GCCDIR}/libgomp/omp.h.in
+       sed -e 's/@OMP_LOCK_SIZE@/${OMP_LOCK_SIZE}/g' \
+           -e 's/@OMP_LOCK_ALIGN@/${OMP_LOCK_ALIGN}/g' \
+           -e 's/@OMP_NEST_LOCK_SIZE@/${OMP_NEST_LOCK_SIZE}/g' \
+           -e 's/@OMP_NEST_LOCK_ALIGN@/${OMP_NEST_LOCK_ALIGN}/g' \
+           < ${.ALLSRC} > ${.TARGET}
+
+omp_lib.h: ${GCCDIR}/libgomp/omp_lib.h.in
+       sed -e 's/@OMP_LOCK_KIND@/${OMP_LOCK_KIND}/g' \
+           -e 's/@OMP_NEST_LOCK_KIND@/${OMP_NEST_LOCK_KIND}/g' \
+           < ${.ALLSRC} > ${.TARGET}
+
+libgomp.ver: ${GCCDIR}/libgomp/libgomp.map
+       sed -e '/#/d' < ${.ALLSRC} > ${.TARGET}
+
+libgomp.spec:
+       echo "*link_gomp: -lgomp %{static: }" > ${.TARGET}
+
+GEND_FILES=    libgomp_f.h omp.h omp_lib.h libgomp.ver libgomp.spec
+CLEANFILES=    ${GEND_FILES}
+
+depend all:    ${GEND_FILES}
+
+.include <bsd.lib.mk>
diff --git a/gnu/lib/gcc80/libssp/Makefile b/gnu/lib/gcc80/libssp/Makefile
new file mode 100644 (file)
index 0000000..59bb326
--- /dev/null
@@ -0,0 +1,34 @@
+CFLAGS+=       -I${.CURDIR}
+CFLAGS+=       -I${.OBJDIR}
+.include "../Makefile.inc"
+
+.PATH: ${GCCDIR}/libssp
+
+CFLAGS+=       -DHAVE_CONFIG_H
+VERSION_MAP=   ${GCCDIR}/libssp/ssp.map
+
+LIB=           ssp
+SHLIB_MAJOR=   0
+
+# From libssp Makefile
+libssp_la_SOURCES = \
+       ssp.c gets-chk.c memcpy-chk.c memmove-chk.c mempcpy-chk.c \
+       memset-chk.c snprintf-chk.c sprintf-chk.c stpcpy-chk.c \
+       strcat-chk.c strcpy-chk.c strncat-chk.c strncpy-chk.c \
+       vsnprintf-chk.c vsprintf-chk.c
+
+SRCS=  ${libssp_la_SOURCES}
+
+# generated
+SRCS+= ssp.h
+
+ssp.h: ${GCCDIR}/libssp/ssp/ssp.h.in
+       sed -e 's/@ssp_have_usable_vsnprintf@/define/' \
+           < ${.ALLSRC:Nsspdir} > ${.TARGET}
+
+INCS+=         ssp.h
+INCSDIR=       /usr/libdata/gcc${GCCSHORTVER}/ssp
+
+CLEANFILES+= ssp.h
+
+.include <bsd.lib.mk>
diff --git a/gnu/lib/gcc80/libssp_nonshared/Makefile b/gnu/lib/gcc80/libssp_nonshared/Makefile
new file mode 100644 (file)
index 0000000..a5c8938
--- /dev/null
@@ -0,0 +1,11 @@
+.include "../Makefile.inc"
+.PATH: ${GCCDIR}/libssp
+
+LIB=           ssp_nonshared
+
+SRCS+=         ssp-local.c
+
+CFLAGS+=       -fPIC
+CFLAGS+=       -DPIC
+
+.include <bsd.lib.mk>
diff --git a/gnu/lib/gcc80/libstdcxx/Makefile b/gnu/lib/gcc80/libstdcxx/Makefile
new file mode 100644 (file)
index 0000000..f2403b8
--- /dev/null
@@ -0,0 +1,6 @@
+# These directories must be built serially
+
+SUBDIR_ORDERED=        headers components product
+SUBDIR=                headers components product
+
+.include <bsd.subdir.mk>
diff --git a/gnu/lib/gcc80/libstdcxx/components/Makefile b/gnu/lib/gcc80/libstdcxx/components/Makefile
new file mode 100644 (file)
index 0000000..4a761eb
--- /dev/null
@@ -0,0 +1,9 @@
+# These libstdc++ components can be built in parallel
+
+SUBDIR_ORDERED=
+
+SUBDIR=                libconv_1998
+SUBDIR+=       libconv_2011
+SUBDIR+=       libconv_supc
+
+.include <bsd.subdir.mk>
diff --git a/gnu/lib/gcc80/libstdcxx/components/libconv_1998/Makefile b/gnu/lib/gcc80/libstdcxx/components/libconv_1998/Makefile
new file mode 100644 (file)
index 0000000..5ad67e9
--- /dev/null
@@ -0,0 +1,81 @@
+RELUP= /../..
+.include "../../../Makefile.inc"
+SRCDIR=        ${GCCDIR}/libstdc++-v3
+.include "Makefile.src"
+
+LIB=                   cxx98convenience
+INTERNALLIB=           yes
+INTERNALLIBPROF=       yes
+INSTALL_PIC_ARCHIVE=   yes
+
+.PATH: ${SRCDIR}
+.PATH: ${SRCDIR}/src
+.PATH: ${SRCDIR}/src/c++98
+.PATH: ${SRCDIR}/config/locale/dragonfly
+.PATH: ${SRCDIR}/config/locale/generic
+
+# for now do not let the use of -flto (-Wodr...)
+.if ${CFLAGS:M-flto}
+CFLAGS+=       -fno-lto
+LDFLAGS+=      -flto
+.endif
+
+CXXFLAGS+=     -fdiagnostics-show-location=once
+CXXFLAGS+=     -ffunction-sections -fdata-sections
+SHARED_CXXFLAGS=       -D_GLIBCXX_SHARED
+
+SRCS=  ${libc__98convenience_la_SOURCES}
+COWD=  collate.x monetary.x numeric.x
+COWG=  messages.x
+GENCC= atomicity.cc basic_file.cc c++locale.cc
+GENCC+=        ${COWD:.x=_members_cow.cc} ${COWG:.x=_members_cow.cc}
+
+FLAGS_GROUPS=          deprecated gnu98 gnu11 cow concept explicit
+deprecated_FLAGS=      -std=gnu++98 -D_BACKWARD_BACKWARD_WARNING_H
+deprecated_FLAGS_FILES=        strstream.cc
+gnu98_FLAGS=           -std=gnu++98
+gnu98_FLAGS_FILES=     bitmap_allocator.cc ios_locale.cc misc-inst.cc
+gnu11_FLAGS=           -std=gnu++11 -fno-implicit-templates
+gnu11_FLAGS_FILES=     locale_init.cc localename.cc
+cow_FLAGS=             -D_GLIBCXX_USE_CXX11_ABI=0 -fimplicit-templates
+cow_FLAGS_FILES=       ${cow_string_host_sources}
+concept_FLAGS=         -D_GLIBCXX_CONCEPT_CHECKS -fimplicit-templates
+concept_FLAGS_FILES=   concept-inst.cc
+parallel_FLAGS=                -D_GLIBCXX_PARALLEL -fno-implicit-templates
+parallel_FLAGS_FILES=  parallel_settings.cc
+explicit_FLAGS=                -fno-implicit-templates
+
+REFERENCED_FILES=      ${deprecated_FLAGS_FILES} ${gnu98_FLAGS_FILES} \
+                       ${gnu11_FLAGS_FILES} ${cow_FLAGS_FILES} \
+                       ${concept_FLAGS_FILES} ${parallel_FLAGS_FILES}
+
+.for F in ${SRCS}
+. if ! ${REFERENCED_FILES:M${F}}
+explicit_FLAGS_FILES+= ${F}
+. endif
+.endfor
+
+.for F in ${COWG}
+${F:.x=_members_cow.cc}: ${SRCDIR}/config/locale/generic/${F:.x=_members.cc}
+       cp ${.ALLSRC} ${.TARGET}
+.endfor
+
+.for F in ${COWD}
+${F:.x=_members_cow.cc}: ${SRCDIR}/config/locale/dragonfly/${F:.x=_members.cc}
+       cp ${.ALLSRC} ${.TARGET}
+.endfor
+
+atomicity.cc: ${SRCDIR}/config/cpu/generic/atomicity_builtins/atomicity.h
+       cp ${.ALLSRC} ${.TARGET}
+
+basic_file.cc: ${SRCDIR}/config/io/basic_file_stdio.cc
+       cp ${.ALLSRC} ${.TARGET}
+
+c++locale.cc: ${SRCDIR}/config/locale/dragonfly/c_locale.cc
+       cp ${.ALLSRC} ${.TARGET}
+
+CLEANFILES+=   ${GENCC}
+
+beforedepend:  ${GENCC}
+
+.include <bsd.lib.mk>
diff --git a/gnu/lib/gcc80/libstdcxx/components/libconv_1998/Makefile.src b/gnu/lib/gcc80/libstdcxx/components/libconv_1998/Makefile.src
new file mode 100644 (file)
index 0000000..bda8baf
--- /dev/null
@@ -0,0 +1,68 @@
+# verbatim from libstdc++/src/c++98/Makefile.in
+
+cow_string_host_sources = \
+       collate_members_cow.cc \
+       messages_members_cow.cc \
+       monetary_members_cow.cc \
+       numeric_members_cow.cc
+
+host_sources = \
+       $(cow_string_host_sources) \
+       atomicity.cc \
+       codecvt_members.cc \
+       collate_members.cc \
+       messages_members.cc \
+       monetary_members.cc \
+       numeric_members.cc \
+       time_members.cc
+
+host_sources_extra = \
+       basic_file.cc c++locale.cc \
+       ${inst_sources} ${parallel_sources}
+
+cxx11_abi_sources = \
+       cow-istream-string.cc
+
+inst_sources = \
+       allocator-inst.cc \
+       concept-inst.cc \
+       ext-inst.cc \
+       misc-inst.cc
+
+parallel_sources = parallel_settings.cc
+
+sources = \
+       bitmap_allocator.cc \
+       pool_allocator.cc \
+       mt_allocator.cc \
+       codecvt.cc \
+       complex_io.cc \
+       globals_io.cc \
+       hash_tr1.cc \
+       hashtable_tr1.cc \
+       ios_failure.cc \
+       ios_init.cc \
+       ios_locale.cc \
+       list.cc \
+       list-aux.cc \
+       list-aux-2.cc \
+       list_associated.cc \
+       list_associated-2.cc \
+       locale.cc \
+       locale_init.cc \
+       locale_facets.cc \
+       localename.cc \
+       math_stubs_float.cc \
+       math_stubs_long_double.cc \
+       stdexcept.cc \
+       strstream.cc \
+       tree.cc \
+       istream.cc \
+       istream-string.cc \
+       streambuf.cc \
+       valarray.cc \
+       ${cxx11_abi_sources} \
+       ${host_sources} \
+       ${host_sources_extra}
+
+libc__98convenience_la_SOURCES = $(sources)
diff --git a/gnu/lib/gcc80/libstdcxx/components/libconv_2011/Makefile b/gnu/lib/gcc80/libstdcxx/components/libconv_2011/Makefile
new file mode 100644 (file)
index 0000000..574257d
--- /dev/null
@@ -0,0 +1,73 @@
+RELUP= /../..
+.include "../../../Makefile.inc"
+SRCDIR=        ${GCCDIR}/libstdc++-v3
+.include "Makefile.src"
+
+LIB=                   cxx11convenience
+INTERNALLIB=           yes
+INTERNALLIBPROF=       yes
+INSTALL_PIC_ARCHIVE=   yes
+
+.PATH: ${SRCDIR}
+.PATH: ${SRCDIR}/src
+.PATH: ${SRCDIR}/src/c++11
+.PATH:  ${SRCDIR}/config/os/bsd/dragonfly
+.PATH: ${SRCDIR}/config/locale/dragonfly
+.PATH: ${SRCDIR}/config/locale/generic
+
+# for now do not let the use of -flto (-Wodr...)
+.if ${CFLAGS:M-flto}
+CFLAGS+=       -fno-lto
+LDFLAGS+=      -flto
+.endif
+
+CFLAGS+=       -I${.OBJDIR}
+CXXFLAGS+=     -std=gnu++11 -fdiagnostics-show-location=once
+CXXFLAGS+=     -ffunction-sections -fdata-sections
+SHARED_CXXFLAGS=       -D_GLIBCXX_SHARED
+
+SRCS=  ${libc__11convenience_la_SOURCES}
+INTHD= ${SRCDIR}/config/locale/generic/c++locale_internal.h
+GENHD= cxxabi_forced.h ${INTHD:T}
+
+FLAG_GROUPS=           implicit explicit
+implicit_FLAGS=                -fimplicit-templates
+implicit_FLAGS_FILES=  hashtable_c++0x.cc
+explicit_FLAGS=                -fno-implicit-templates
+explicit_FLAGS_FILES=  ${SRCS:Nhashtable_c++0x.cc}
+
+# PR libstdc++/85222 needs intermediate manipulation
+OBJS+= cxx11-ios_failure_sed.o
+S1DUAL=        '/^_*_ZTISt13__ios_failure:/,/_ZTVN10__cxxabiv120__si_class_type_infoE/s/_ZTVN10__cxxabiv120__si_class_type_infoE/_ZTVSt19__iosfail_type_info/'
+IOSTMP=        ios_static.s ios_static.tmp ios_po.s ios_po.tmp ios_sh.s ios_sh.tmp
+
+cxx11-ios_failure_sed.o: cxx11-ios_failure.cc
+       ${CXX} ${explicit_FLAGS} ${STATIC_CXXFLAGS} ${CXXFLAGS} -S -o ios_static.tmp ${.ALLSRC}
+       sed -e ${S1DUAL} < ios_static.tmp > ios_static.s
+       ${CXX} ${explicit_FLAGS} ${STATIC_CXXFLAGS} ${CXXFLAGS} -g0 -c ios_static.s -o ${.TARGET}
+
+cxx11-ios_failure_sed.po: cxx11-ios_failure.cc
+       ${CXX} ${explicit_FLAGS} ${PO_FLAG} ${STATIC_CXXFLAGS} ${PO_CXXFLAGS} -S -o ios_po.tmp ${.ALLSRC}
+       sed -e ${S1DUAL} < ios_po.tmp > ios_po.s
+       ${CXX} ${explicit_FLAGS} ${PO_FLAG} ${STATIC_CXXFLAGS} ${PO_CXXFLAGS} -g0 -c ios_po.s -o ${.TARGET}
+
+cxx11-ios_failure_sed.So: cxx11-ios_failure.cc
+       ${CXX} ${explicit_FLAGS} ${PICFLAG} -DPIC ${SHARED_CXXFLAGS} ${CXXFLAGS} -S -o ios_sh.tmp ${.ALLSRC}
+       sed -e ${S1DUAL} < ios_sh.tmp > ios_sh.s
+       ${CXX} ${explicit_FLAGS} ${PICFLAG} -DPIC ${SHARED_CXXFLAGS} ${CXXFLAGS} -g0 -c ios_sh.s -o ${.TARGET}
+
+cxxabi_forced.h: ${SRCDIR}/libsupc++/cxxabi_forced.h
+       cp ${.ALLSRC} ${.TARGET}
+
+${INTHD:T}: copybits ${INTHD}
+       cp ${INTHD} bits/${.TARGET}
+
+copybits:
+       mkdir -p bits
+
+CLEANDIRS=     bits
+CLEANFILES=    ${GENHD} ${IOSTMP}
+
+beforedepend:  ${GENHD}
+
+.include <bsd.lib.mk>
diff --git a/gnu/lib/gcc80/libstdcxx/components/libconv_2011/Makefile.src b/gnu/lib/gcc80/libstdcxx/components/libconv_2011/Makefile.src
new file mode 100644 (file)
index 0000000..abcf4ab
--- /dev/null
@@ -0,0 +1,72 @@
+# verbatim from libstdc++/src/c++11/Makefile.in
+
+host_sources = \
+       ctype_configure_char.cc \
+       ctype_members.cc
+
+cxx11_abi_sources = \
+       cow-locale_init.cc \
+       cow-shim_facets.cc \
+       cxx11-hash_tr1.cc \
+       cxx11-shim_facets.cc \
+       cxx11-stdexcept.cc
+
+# PR libstdc++/85222 needs intermediate manipulation
+#cxx11_abi_sources+=   cxx11-ios_failure.cc
+
+sources = \
+       chrono.cc \
+       codecvt.cc \
+       condition_variable.cc \
+       cow-stdexcept.cc \
+       ctype.cc \
+       debug.cc \
+       functexcept.cc \
+       functional.cc \
+       futex.cc \
+       future.cc \
+       hash_c++0x.cc \
+       hashtable_c++0x.cc \
+       ios.cc \
+       limits.cc \
+       mutex.cc \
+       placeholders.cc \
+       random.cc \
+       regex.cc  \
+       shared_ptr.cc \
+       snprintf_lite.cc \
+       system_error.cc \
+       thread.cc \
+       ${cxx11_abi_sources} \
+       ${host_sources}
+
+extra_string_inst_sources = \
+       cow-fstream-inst.cc \
+       cow-sstream-inst.cc \
+       cow-string-inst.cc \
+       cow-string-io-inst.cc \
+       cow-wstring-inst.cc \
+       cow-wstring-io-inst.cc \
+       cxx11-locale-inst.cc \
+       cxx11-wlocale-inst.cc \
+       sso_string.cc
+
+# XTEMPLATE_FLAGS = -fno-implicit-templates
+inst_sources = \
+       $(extra_string_inst_sources) \
+       ext11-inst.cc \
+       fstream-inst.cc \
+       ios-inst.cc \
+       iostream-inst.cc \
+       istream-inst.cc \
+       locale-inst.cc \
+       ostream-inst.cc \
+       sstream-inst.cc \
+       streambuf-inst.cc \
+       string-inst.cc \
+       string-io-inst.cc \
+       wlocale-inst.cc \
+       wstring-inst.cc \
+       wstring-io-inst.cc
+
+libc__11convenience_la_SOURCES = $(sources) $(inst_sources)
diff --git a/gnu/lib/gcc80/libstdcxx/components/libconv_supc/Makefile b/gnu/lib/gcc80/libstdcxx/components/libconv_supc/Makefile
new file mode 100644 (file)
index 0000000..e218d4e
--- /dev/null
@@ -0,0 +1,52 @@
+RELUP= /../..
+.include "../../../Makefile.inc"
+SRCDIR=        ${GCCDIR}/libstdc++-v3
+.include "Makefile.src"
+
+LIB=                   supcxxconvenience
+INTERNALLIB=           yes
+INTERNALLIBPROF=       yes
+INSTALL_PIC_ARCHIVE=   yes
+
+.PATH: ${GCCDIR}/libiberty
+.PATH: ${GCCDIR}/libgcc
+.PATH: ${SRCDIR}/libsupc++
+
+# for now do not let the use of -flto (-Wodr...)
+.if ${CFLAGS:M-flto}
+CFLAGS+=       -fno-lto
+LDFLAGS+=      -flto
+.endif
+
+CFLAGS+=               -I${.OBJDIR}
+CFLAGS+=               -I${GCCDIR}/libgcc
+CXXFLAGS+=             -fno-implicit-templates
+CXXFLAGS+=             -fdiagnostics-show-location=once
+CXXFLAGS+=             -ffunction-sections -fdata-sections
+SHARED_CXXFLAGS=       -D_GLIBCXX_SHARED
+
+FLAGS_GROUPS=          gnu11 gnu14 gnu1z mangle
+gnu11_FLAGS=           -std=gnu++11
+gnu11_FLAGS_FILES=     bad_array_length.cc bad_array_new.cc eh_ptr.cc \
+                       eh_aux_runtime.cc eh_terminate.cc eh_throw.cc \
+                       guard.cc atexit_thread.cc nested_exception.cc \
+                       new_handler.cc new_op.cc new_opnt.cc
+gnu14_FLAGS=           -std=gnu++14 -Wno-sized-deallocation
+gnu14_FLAGS_FILES=     del_ops.cc del_opvs.cc
+gnu1z_FLAGS=           -std=gnu++1z
+gnu1z_FLAGS_FILES=     del_opsa.cc del_opvsa.cc \
+                       del_opa.cc del_opant.cc del_opva.cc del_opvant.cc \
+                       new_opa.cc new_opant.cc new_opva.cc new_opvant.cc
+mangle_FLAGS=          -DHAVE_CONFIG_H -DIN_GLIBCPP_V3
+mangle_FLAGS_FILES=    cp-demangle.c
+
+SRCS=                  ${libsupc__convenience_la_SOURCES}
+
+unwind.h: unwind-generic.h
+       cp ${.ALLSRC} ${.TARGET}
+
+GENHD=         unwind.h
+CLEANFILES=    ${GENHD}
+beforedepend:  ${GENHD}
+
+.include <bsd.lib.mk>
diff --git a/gnu/lib/gcc80/libstdcxx/components/libconv_supc/Makefile.src b/gnu/lib/gcc80/libstdcxx/components/libconv_supc/Makefile.src
new file mode 100644 (file)
index 0000000..7c57294
--- /dev/null
@@ -0,0 +1,74 @@
+# verbatim from libstdc++/libsupc++/Makefile.in
+
+c_sources = \
+       cp-demangle.c
+
+sources = \
+       array_type_info.cc \
+       atexit_thread.cc \
+       bad_alloc.cc \
+       bad_array_length.cc \
+       bad_array_new.cc \
+       bad_cast.cc \
+       bad_typeid.cc \
+       class_type_info.cc \
+       del_op.cc \
+       del_ops.cc \
+       del_opnt.cc \
+       del_opv.cc \
+       del_opvs.cc \
+       del_opvnt.cc \
+       dyncast.cc \
+       eh_alloc.cc \
+       eh_aux_runtime.cc \
+       eh_call.cc \
+       eh_catch.cc \
+       eh_exception.cc \
+       eh_globals.cc \
+       eh_personality.cc \
+       eh_ptr.cc \
+       eh_term_handler.cc \
+       eh_terminate.cc \
+       eh_tm.cc \
+       eh_throw.cc \
+       eh_type.cc \
+       eh_unex_handler.cc \
+       enum_type_info.cc \
+       function_type_info.cc \
+       fundamental_type_info.cc \
+       guard.cc \
+       guard_error.cc \
+       hash_bytes.cc \
+       nested_exception.cc \
+       new_handler.cc \
+       new_op.cc \
+       new_opnt.cc \
+       new_opv.cc \
+       new_opvnt.cc \
+       new_opa.cc \
+       new_opant.cc \
+       new_opva.cc \
+       new_opvant.cc \
+       del_opa.cc \
+       del_opant.cc \
+       del_opsa.cc \
+       del_opva.cc \
+       del_opvant.cc \
+       del_opvsa.cc \
+       pbase_type_info.cc \
+       pmem_type_info.cc \
+       pointer_type_info.cc \
+       pure.cc \
+       si_class_type_info.cc \
+       tinfo.cc \
+       tinfo2.cc \
+       vec.cc \
+       vmi_class_type_info.cc \
+       vterminate.cc
+
+# only when __arm__
+#sources+=     atexit_arm.cc eh_arm.cc
+
+vtv_sources=   # empty
+
+libsupc__convenience_la_SOURCES = $(sources) $(c_sources) $(vtv_sources)
diff --git a/gnu/lib/gcc80/libstdcxx/headers/Makefile b/gnu/lib/gcc80/libstdcxx/headers/Makefile
new file mode 100644 (file)
index 0000000..6996f54
--- /dev/null
@@ -0,0 +1,115 @@
+RELUP= /..
+.include "../../Makefile.inc"
+SRCDIR=        ${GCCDIR}/libstdc++-v3
+.include "Makefile.headers"
+
+.PATH: ${SRCDIR}
+
+# These sections are detailed in Makefile.headers
+# parallel section is empty, skip it
+# make buildincludes, make installincludes before make depend
+glibcxx_srcdir=        ${SRCDIR}
+HSECT= std bits bits_sup backward ext ext_compat tr1 tr2 decimal \
+       c_base c_compatibility debug profile profile_impl host supc \
+       parallel experimental ext_host
+PBSECT=        1 2 3 4 5 6 7
+HD=    ${INCLUDEDIR}/c++/${GCCPOINTVER}
+
+.for i in ${HSECT}
+INCSGROUPS+=           ${i}_headers
+${i}_headersDIR=       ${HD}/${${i}_builddir}
+.endfor
+
+PATHGROUP=
+.for i in ${PBSECT}
+.  for k in ${pb_headers${i}}
+.    if ${PATHGROUP:M${k:H:T}} == ""
+PATHGROUP+=${k:H:T}
+PATH_${k:H:T}=${k:H:T}
+.    endif
+PBG_${k:H:T}+=${k}
+.  endfor
+.endfor
+
+INCSGROUPS+=           PBG_pb_ds
+PBG_pb_dsDIR=          ${HD}/${pb_builddir}
+
+INCSGROUPS+=           PBG_detail
+PBG_detailDIR=         ${HD}/${pb_builddir}/detail
+
+.for k in ${PATHGROUP:Npb_ds:Ndetail}
+INCSGROUPS+=           PBG_${k}
+PBG_${k}DIR=           ${HD}/${pb_builddir}/detail/${PATH_${k}}
+.endfor
+
+INCSGROUPS+=           experimental_bits_headers
+experimental_bits_headersDIR=  ${HD}/experimental/bits
+
+INCSGROUPS+=           host_headers_extra
+host_headers_extraDIR= ${HD}/bits
+host_headers_extraNAME_basic_file_stdio.h=     basic_file.h
+host_headers_extraNAME_c_locale.h=             c++locale.h
+host_headers_extraNAME_c_io_stdio.h+=          c++io.h
+host_headers_extraNAME_new_allocator_base.h=   c++allocator.h
+
+cxxabi_forced.h: ${SRCDIR}/libsupc++/cxxabi_forced.h
+       cp ${.ALLSRC} ${.TARGET}
+
+gthr.h: ${GCCDIR}/libgcc/gthr.h
+       sed -e '/^#pragma/b' \
+           -e '/^#/s/\([ABCDEFGHIJKLMNOPQRSTUVWXYZ_][ABCDEFGHIJKLMNOPQRSTUVWXYZ_]*\)/_GLIBCXX_\1/g' \
+           -e 's/_GLIBCXX_SUPPORTS_WEAK/__GXX_WEAK__/g' \
+           -e 's/_GLIBCXX___MINGW32_GLIBCXX___/__MINGW32__/g' \
+           -e 's,^#include "\(.*\)",#include <bits/\1>,g' \
+           < ${GCCDIR}/libgcc/gthr.h > ${.TARGET}
+
+gthr-single.h: ${GCCDIR}/libgcc/gthr.h
+       sed -e 's/\(UNUSED\)/_GLIBCXX_\1/g' \
+           -e 's/\(GCC[ABCDEFGHIJKLMNOPQRSTUVWXYZ_]*_H\)/_GLIBCXX_\1/g' \
+           < ${GCCDIR}/libgcc/gthr-single.h > ${.TARGET}
+
+gthr-posix.h: ${GCCDIR}/libgcc/gthr-posix.h
+       sed -e 's/\(UNUSED\)/_GLIBCXX_\1/g' \
+           -e 's/\(GCC[ABCDEFGHIJKLMNOPQRSTUVWXYZ_]*_H\)/_GLIBCXX_\1/g' \
+           -e 's/SUPPORTS_WEAK/__GXX_WEAK__/g' \
+           -e 's/\([ABCDEFGHIJKLMNOPQRSTUVWXYZ_]*USE_WEAK\)/_GLIBCXX_\1/g' \
+           < ${GCCDIR}/libgcc/gthr-posix.h > ${.TARGET}
+
+gthr-default.h: gthr-posix.h
+       cp ${.ALLSRC} ${.TARGET}
+
+release=${GCCMAJORVER}
+ns_version=0
+visibility=1
+externtemplate=1
+dualabi=1
+cxx11abi=1
+allocatornew=1
+ldbl_compat='s,g,g,'
+S1='s,define __GLIBCXX__,define __GLIBCXX__ ${GCCSHORTDATE},'
+S2='s,define _GLIBCXX_RELEASE,define _GLIBCXX_RELEASE ${release},'
+S3='s,define _GLIBCXX_INLINE_VERSION, define _GLIBCXX_INLINE_VERSION ${ns_version},'
+S4='s,define _GLIBCXX_HAVE_ATTRIBUTE_VISIBILITY, define _GLIBCXX_HAVE_ATTRIBUTE_VISIBILITY ${visibility},'
+S5='s,define _GLIBCXX_EXTERN_TEMPLATE$$, define _GLIBCXX_EXTERN_TEMPLATE ${externtemplate},'
+S6='s,define _GLIBCXX_USE_DUAL_ABI, define _GLIBCXX_USE_DUAL_ABI ${dualabi},'
+S7='s,define _GLIBCXX_USE_CXX11_ABI, define _GLIBCXX_USE_CXX11_ABI ${cxx11abi},'
+S8='s,define _GLIBCXX_USE_ALLOCATOR_NEW, define _GLIBCXX_USE_ALLOCATOR_NEW ${allocatornew},'
+S9='${ldbl_compat}'
+
+c++config.h: config.h
+       sed -e ${S1} -e ${S2} -e ${S3} -e ${S4} -e ${S5} -e ${S6} -e ${S7} -e ${S8} -e ${S9} \
+           < ${GCCDIR}/libstdc++-v3/include/bits/c++config > ${.TARGET}
+       sed -e 's/HAVE_/_GLIBCXX_HAVE_/g' \
+           -e 's/PACKAGE/_GLIBCXX_PACKAGE/g' \
+           -e 's/VERSION/_GLIBCXX_VERSION/g' \
+           -e 's/WORDS_/_GLIBCXX_WORDS_/g' \
+           -e 's/ICONV_CONST/_GLIBCXX_ICONV_CONST/g' \
+           -e '/[       ]_GLIBCXX_LONG_DOUBLE_COMPAT[   ]/d' \
+           < ${.ALLSRC} >> ${.TARGET}
+       echo "" >> ${.TARGET}
+       echo "#endif // _GLIBCXX_CXX_CONFIG_H" >> ${.TARGET}
+
+CLEANFILES=    gthr.h gthr-default.h gthr-single.h gthr-posix.h \
+               c++config.h cxxabi_forced.h
+
+.include <bsd.lib.mk>
diff --git a/gnu/lib/gcc80/libstdcxx/headers/Makefile.headers b/gnu/lib/gcc80/libstdcxx/headers/Makefile.headers
new file mode 100644 (file)
index 0000000..b77786b
--- /dev/null
@@ -0,0 +1,867 @@
+# verbatim from libstdc++/include/Makefile.in
+# Info also from libstdc++/libsupc++/Makefile.in
+
+COMPATIBILITY_H = config/abi/compatibility.h
+CLOCALE_CC = config/locale/dragonfly/c_locale.cc
+CLOCALE_H = config/locale/dragonfly/c_locale.h
+CLOCALE_INTERNAL_H = config/locale/generic/c++locale_internal.h
+CMESSAGES_CC = config/locale/generic/messages_members.cc
+CMESSAGES_H = config/locale/generic/messages_members.h
+CMONEY_CC = config/locale/dragonfly/monetary_members.cc
+CNUMERIC_CC = config/locale/dragonfly/numeric_members.cc
+ATOMIC_WORD_SRCDIR = config/cpu/generic
+ABI_TWEAKS_SRCDIR = config/cpu/generic
+CPU_DEFINES_SRCDIR = config/cpu/generic
+ERROR_CONSTANTS_SRCDIR = config/os/generic
+CPU_OPT_BITS_RANDOM = config/cpu/i486/opt/bits/opt_random.h
+CPU_OPT_EXT_RANDOM = config/cpu/i486/opt/ext/opt_random.h
+
+std_srcdir = ${glibcxx_srcdir}/include/std
+bits_srcdir = ${glibcxx_srcdir}/include/bits
+bits_sup_srcdir = ${glibcxx_srcdir}/libsupc++
+backward_srcdir = ${glibcxx_srcdir}/include/backward
+pb_srcdir = ${glibcxx_srcdir}/include/ext/pb_ds
+ext_srcdir = ${glibcxx_srcdir}/include/ext
+tr1_srcdir = ${glibcxx_srcdir}/include/tr1
+tr2_srcdir = ${glibcxx_srcdir}/include/tr2
+decimal_srcdir = ${glibcxx_srcdir}/include/decimal
+c_base_srcdir = ${glibcxx_srcdir}/include/c_global
+c_compatibility_srcdir = ${glibcxx_srcdir}/include/c_compatibility
+debug_srcdir = ${glibcxx_srcdir}/include/debug
+parallel_srcdir = ${glibcxx_srcdir}/include/parallel
+profile_srcdir = ${glibcxx_srcdir}/include/profile
+profile_impl_srcdir = ${glibcxx_srcdir}/include/profile/impl
+host_srcdir = ${glibcxx_srcdir}/config/os/bsd/dragonfly
+experimental_srcdir = ${glibcxx_srcdir}/include/experimental
+experimental_bits_srcdir = ${glibcxx_srcdir}/include/experimental/bits
+
+std_builddir = .
+bits_builddir = ./bits
+backward_builddir = ./backward
+pb_builddir = ./ext/pb_ds
+ext_builddir = ./ext
+tr1_builddir = ./tr1
+tr2_builddir = ./tr2
+decimal_builddir = ./decimal
+c_base_builddir = .
+c_compatibility_builddir = .
+debug_builddir = ./debug
+parallel_builddir = ./parallel
+profile_builddir = ./profile
+profile_impl_builddir = ./profile/impl
+experimental_builddir = ./experimental
+ext_host_builddir = ./ext
+
+##### HEAD: Not from Makefile.in #####
+bits_sup_builddir = bits
+ext_compat_builddir = ext
+host_builddir = bits
+supc_builddir = .
+host_headers_extra = \
+       c++config.h \
+       ${glibcxx_srcdir}/config/allocator/new_allocator_base.h \
+       ${glibcxx_srcdir}/config/io/basic_file_stdio.h \
+       ${glibcxx_srcdir}/config/io/c_io_stdio.h \
+       ${glibcxx_srcdir}/config/locale/dragonfly/c_locale.h \
+       ${glibcxx_srcdir}/config/locale/generic/messages_members.h \
+       ${glibcxx_srcdir}/config/locale/dragonfly/time_members.h \
+       ${glibcxx_srcdir}/${CPU_OPT_BITS_RANDOM} \
+       gthr.h \
+       gthr-default.h \
+       gthr-posix.h \
+       gthr-single.h
+supc_headers = \
+       ${glibcxx_srcdir}/libsupc++/cxxabi.h \
+       ${glibcxx_srcdir}/libsupc++/exception \
+       ${glibcxx_srcdir}/libsupc++/initializer_list \
+       ${glibcxx_srcdir}/libsupc++/new \
+       ${glibcxx_srcdir}/libsupc++/typeinfo
+##### TAIL: Not from Makefile.in #####
+
+std_headers = \
+       ${std_srcdir}/algorithm \
+       ${std_srcdir}/any \
+       ${std_srcdir}/array \
+       ${std_srcdir}/atomic \
+       ${std_srcdir}/bitset \
+       ${std_srcdir}/charconv \
+       ${std_srcdir}/chrono \
+       ${std_srcdir}/codecvt \
+       ${std_srcdir}/complex \
+       ${std_srcdir}/condition_variable \
+       ${std_srcdir}/deque \
+       ${std_srcdir}/filesystem \
+       ${std_srcdir}/forward_list \
+       ${std_srcdir}/fstream \
+       ${std_srcdir}/functional \
+       ${std_srcdir}/future \
+       ${std_srcdir}/iomanip \
+       ${std_srcdir}/ios \
+       ${std_srcdir}/iosfwd \
+       ${std_srcdir}/iostream \
+       ${std_srcdir}/istream \
+       ${std_srcdir}/iterator \
+       ${std_srcdir}/limits \
+       ${std_srcdir}/list \
+       ${std_srcdir}/locale \
+       ${std_srcdir}/map \
+       ${std_srcdir}/memory \
+       ${std_srcdir}/mutex \
+       ${std_srcdir}/numeric \
+       ${std_srcdir}/optional \
+       ${std_srcdir}/ostream \
+       ${std_srcdir}/queue \
+       ${std_srcdir}/random \
+       ${std_srcdir}/ratio \
+       ${std_srcdir}/regex \
+       ${std_srcdir}/scoped_allocator \
+       ${std_srcdir}/set \
+       ${std_srcdir}/shared_mutex \
+       ${std_srcdir}/sstream \
+       ${std_srcdir}/stack \
+       ${std_srcdir}/stdexcept \
+       ${std_srcdir}/streambuf \
+       ${std_srcdir}/string \
+       ${std_srcdir}/string_view \
+       ${std_srcdir}/system_error \
+       ${std_srcdir}/thread \
+       ${std_srcdir}/tuple \
+       ${std_srcdir}/typeindex \
+       ${std_srcdir}/type_traits \
+       ${std_srcdir}/unordered_map \
+       ${std_srcdir}/unordered_set \
+       ${std_srcdir}/utility \
+       ${std_srcdir}/valarray \
+       ${std_srcdir}/variant \
+       ${std_srcdir}/vector
+
+bits_headers = \
+       ${bits_srcdir}/algorithmfwd.h \
+       ${bits_srcdir}/alloc_traits.h \
+       ${bits_srcdir}/allocated_ptr.h \
+       ${bits_srcdir}/allocator.h \
+       ${bits_srcdir}/atomic_base.h \
+       ${bits_srcdir}/atomic_futex.h \
+       ${bits_srcdir}/basic_ios.h \
+       ${bits_srcdir}/basic_ios.tcc \
+       ${bits_srcdir}/basic_string.h \
+       ${bits_srcdir}/basic_string.tcc \
+       ${bits_srcdir}/boost_concept_check.h \
+       ${bits_srcdir}/c++0x_warning.h \
+       ${bits_srcdir}/char_traits.h \
+       ${bits_srcdir}/codecvt.h \
+       ${bits_srcdir}/concept_check.h \
+       ${bits_srcdir}/cpp_type_traits.h \
+       ${bits_srcdir}/deque.tcc \
+       ${bits_srcdir}/enable_special_members.h \
+       ${bits_srcdir}/forward_list.h \
+       ${bits_srcdir}/forward_list.tcc \
+       ${bits_srcdir}/fs_dir.h \
+       ${bits_srcdir}/fs_fwd.h \
+       ${bits_srcdir}/fs_ops.h \
+       ${bits_srcdir}/fs_path.h \
+       ${bits_srcdir}/fstream.tcc \
+       ${bits_srcdir}/functexcept.h \
+       ${bits_srcdir}/functional_hash.h \
+       ${bits_srcdir}/gslice.h \
+       ${bits_srcdir}/gslice_array.h \
+       ${bits_srcdir}/hashtable.h \
+       ${bits_srcdir}/hashtable_policy.h \
+       ${bits_srcdir}/indirect_array.h \
+       ${bits_srcdir}/invoke.h \
+       ${bits_srcdir}/ios_base.h \
+       ${bits_srcdir}/istream.tcc \
+       ${bits_srcdir}/list.tcc \
+       ${bits_srcdir}/locale_classes.h \
+       ${bits_srcdir}/locale_classes.tcc \
+       ${bits_srcdir}/locale_conv.h \
+       ${bits_srcdir}/locale_facets.h \
+       ${bits_srcdir}/locale_facets.tcc \
+       ${bits_srcdir}/locale_facets_nonio.h \
+       ${bits_srcdir}/locale_facets_nonio.tcc \
+       ${bits_srcdir}/localefwd.h \
+       ${bits_srcdir}/mask_array.h \
+       ${bits_srcdir}/memoryfwd.h \
+       ${bits_srcdir}/move.h \
+       ${bits_srcdir}/node_handle.h \
+       ${bits_srcdir}/ostream.tcc \
+       ${bits_srcdir}/ostream_insert.h \
+       ${bits_srcdir}/parse_numbers.h \
+       ${bits_srcdir}/postypes.h \
+       ${bits_srcdir}/predefined_ops.h \
+       ${bits_srcdir}/ptr_traits.h \
+       ${bits_srcdir}/quoted_string.h \
+       ${bits_srcdir}/random.h \
+       ${bits_srcdir}/random.tcc \
+       ${bits_srcdir}/range_access.h \
+       ${bits_srcdir}/refwrap.h \
+       ${bits_srcdir}/regex.h \
+       ${bits_srcdir}/regex.tcc \
+       ${bits_srcdir}/regex_constants.h \
+       ${bits_srcdir}/regex_error.h \
+       ${bits_srcdir}/regex_scanner.h \
+       ${bits_srcdir}/regex_scanner.tcc \
+       ${bits_srcdir}/regex_automaton.h \
+       ${bits_srcdir}/regex_automaton.tcc \
+       ${bits_srcdir}/regex_compiler.h \
+       ${bits_srcdir}/regex_compiler.tcc \
+       ${bits_srcdir}/regex_executor.h \
+       ${bits_srcdir}/regex_executor.tcc \
+       ${bits_srcdir}/shared_ptr.h \
+       ${bits_srcdir}/shared_ptr_atomic.h \
+       ${bits_srcdir}/shared_ptr_base.h \
+       ${bits_srcdir}/slice_array.h \
+       ${bits_srcdir}/specfun.h \
+       ${bits_srcdir}/sstream.tcc \
+       ${bits_srcdir}/std_abs.h \
+       ${bits_srcdir}/std_function.h \
+       ${bits_srcdir}/std_mutex.h \
+       ${bits_srcdir}/stl_algo.h \
+       ${bits_srcdir}/stl_algobase.h \
+       ${bits_srcdir}/stl_bvector.h \
+       ${bits_srcdir}/stl_construct.h \
+       ${bits_srcdir}/stl_deque.h \
+       ${bits_srcdir}/stl_function.h \
+       ${bits_srcdir}/stl_heap.h \
+       ${bits_srcdir}/stl_iterator.h \
+       ${bits_srcdir}/stl_iterator_base_funcs.h \
+       ${bits_srcdir}/stl_iterator_base_types.h \
+       ${bits_srcdir}/stl_list.h \
+       ${bits_srcdir}/stl_map.h \
+       ${bits_srcdir}/stl_multimap.h \
+       ${bits_srcdir}/stl_multiset.h \
+       ${bits_srcdir}/stl_numeric.h \
+       ${bits_srcdir}/stl_pair.h \
+       ${bits_srcdir}/stl_queue.h \
+       ${bits_srcdir}/stl_raw_storage_iter.h \
+       ${bits_srcdir}/stl_relops.h \
+       ${bits_srcdir}/stl_set.h \
+       ${bits_srcdir}/stl_stack.h \
+       ${bits_srcdir}/stl_tempbuf.h \
+       ${bits_srcdir}/stl_tree.h \
+       ${bits_srcdir}/stl_uninitialized.h \
+       ${bits_srcdir}/stl_vector.h \
+       ${bits_srcdir}/stream_iterator.h \
+       ${bits_srcdir}/streambuf_iterator.h \
+       ${bits_srcdir}/streambuf.tcc \
+       ${bits_srcdir}/stringfwd.h \
+       ${bits_srcdir}/string_view.tcc \
+       ${bits_srcdir}/uniform_int_dist.h \
+       ${bits_srcdir}/unique_ptr.h \
+       ${bits_srcdir}/unordered_map.h \
+       ${bits_srcdir}/unordered_set.h \
+       ${bits_srcdir}/uses_allocator.h \
+       ${bits_srcdir}/valarray_array.h \
+       ${bits_srcdir}/valarray_array.tcc \
+       ${bits_srcdir}/valarray_before.h \
+       ${bits_srcdir}/valarray_after.h \
+       ${bits_srcdir}/vector.tcc
+
+bits_sup_headers = \
+       ${bits_sup_srcdir}/atomic_lockfree_defines.h \
+       ${bits_sup_srcdir}/cxxabi_forced.h \
+       ${bits_sup_srcdir}/cxxabi_init_exception.h \
+       ${bits_sup_srcdir}/exception.h \
+       ${bits_sup_srcdir}/exception_defines.h \
+       ${bits_sup_srcdir}/exception_ptr.h \
+       ${bits_sup_srcdir}/hash_bytes.h \
+       ${bits_sup_srcdir}/nested_exception.h
+
+backward_headers = \
+       ${backward_srcdir}/auto_ptr.h \
+       ${backward_srcdir}/backward_warning.h \
+       ${backward_srcdir}/binders.h \
+       ${backward_srcdir}/hash_map \
+       ${backward_srcdir}/hash_set \
+       ${backward_srcdir}/hash_fun.h \
+       ${backward_srcdir}/hashtable.h \
+       ${backward_srcdir}/strstream
+
+pb_headers1 = \
+       ${pb_srcdir}/assoc_container.hpp \
+       ${pb_srcdir}/exception.hpp \
+       ${pb_srcdir}/hash_policy.hpp \
+       ${pb_srcdir}/list_update_policy.hpp \
+       ${pb_srcdir}/priority_queue.hpp \
+       ${pb_srcdir}/tag_and_trait.hpp \
+       ${pb_srcdir}/tree_policy.hpp \
+       ${pb_srcdir}/trie_policy.hpp \
+       ${pb_srcdir}/detail/branch_policy/branch_policy.hpp \
+       ${pb_srcdir}/detail/branch_policy/null_node_metadata.hpp \
+       ${pb_srcdir}/detail/branch_policy/traits.hpp \
+       ${pb_srcdir}/detail/binary_heap_/binary_heap_.hpp \
+       ${pb_srcdir}/detail/binary_heap_/const_iterator.hpp \
+       ${pb_srcdir}/detail/binary_heap_/point_const_iterator.hpp \
+       ${pb_srcdir}/detail/binary_heap_/constructors_destructor_fn_imps.hpp \
+       ${pb_srcdir}/detail/binary_heap_/debug_fn_imps.hpp \
+       ${pb_srcdir}/detail/binary_heap_/entry_cmp.hpp \
+       ${pb_srcdir}/detail/binary_heap_/entry_pred.hpp \
+       ${pb_srcdir}/detail/binary_heap_/erase_fn_imps.hpp \
+       ${pb_srcdir}/detail/binary_heap_/find_fn_imps.hpp \
+       ${pb_srcdir}/detail/binary_heap_/info_fn_imps.hpp \
+       ${pb_srcdir}/detail/binary_heap_/insert_fn_imps.hpp \
+       ${pb_srcdir}/detail/binary_heap_/iterators_fn_imps.hpp \
+       ${pb_srcdir}/detail/binary_heap_/policy_access_fn_imps.hpp \
+       ${pb_srcdir}/detail/binary_heap_/resize_policy.hpp \
+       ${pb_srcdir}/detail/binary_heap_/split_join_fn_imps.hpp \
+       ${pb_srcdir}/detail/binary_heap_/trace_fn_imps.hpp \
+       ${pb_srcdir}/detail/binomial_heap_base_/binomial_heap_base_.hpp \
+       ${pb_srcdir}/detail/binomial_heap_base_/constructors_destructor_fn_imps.hpp \
+       ${pb_srcdir}/detail/binomial_heap_base_/debug_fn_imps.hpp \
+       ${pb_srcdir}/detail/binomial_heap_base_/erase_fn_imps.hpp \
+       ${pb_srcdir}/detail/binomial_heap_base_/find_fn_imps.hpp \
+       ${pb_srcdir}/detail/binomial_heap_base_/insert_fn_imps.hpp \
+       ${pb_srcdir}/detail/binomial_heap_base_/split_join_fn_imps.hpp \
+       ${pb_srcdir}/detail/binomial_heap_/binomial_heap_.hpp \
+       ${pb_srcdir}/detail/binomial_heap_/constructors_destructor_fn_imps.hpp \
+       ${pb_srcdir}/detail/binomial_heap_/debug_fn_imps.hpp \
+       ${pb_srcdir}/detail/bin_search_tree_/bin_search_tree_.hpp
+
+pb_headers2 = \
+       ${pb_srcdir}/detail/bin_search_tree_/constructors_destructor_fn_imps.hpp \
+       ${pb_srcdir}/detail/bin_search_tree_/debug_fn_imps.hpp \
+       ${pb_srcdir}/detail/bin_search_tree_/erase_fn_imps.hpp \
+       ${pb_srcdir}/detail/bin_search_tree_/find_fn_imps.hpp \
+       ${pb_srcdir}/detail/bin_search_tree_/info_fn_imps.hpp \
+       ${pb_srcdir}/detail/bin_search_tree_/insert_fn_imps.hpp \
+       ${pb_srcdir}/detail/bin_search_tree_/iterators_fn_imps.hpp \
+       ${pb_srcdir}/detail/bin_search_tree_/node_iterators.hpp \
+       ${pb_srcdir}/detail/bin_search_tree_/point_iterators.hpp \
+       ${pb_srcdir}/detail/bin_search_tree_/policy_access_fn_imps.hpp \
+       ${pb_srcdir}/detail/bin_search_tree_/r_erase_fn_imps.hpp \
+       ${pb_srcdir}/detail/bin_search_tree_/rotate_fn_imps.hpp \
+       ${pb_srcdir}/detail/bin_search_tree_/split_join_fn_imps.hpp \
+       ${pb_srcdir}/detail/bin_search_tree_/traits.hpp \
+       ${pb_srcdir}/detail/cc_hash_table_map_/cc_ht_map_.hpp \
+       ${pb_srcdir}/detail/cc_hash_table_map_/cmp_fn_imps.hpp \
+       ${pb_srcdir}/detail/cc_hash_table_map_/cond_key_dtor_entry_dealtor.hpp \
+       ${pb_srcdir}/detail/cc_hash_table_map_/constructor_destructor_fn_imps.hpp \
+       ${pb_srcdir}/detail/cc_hash_table_map_/constructor_destructor_no_store_hash_fn_imps.hpp \
+       ${pb_srcdir}/detail/cc_hash_table_map_/constructor_destructor_store_hash_fn_imps.hpp \
+       ${pb_srcdir}/detail/cc_hash_table_map_/debug_fn_imps.hpp \
+       ${pb_srcdir}/detail/cc_hash_table_map_/debug_no_store_hash_fn_imps.hpp \
+       ${pb_srcdir}/detail/cc_hash_table_map_/debug_store_hash_fn_imps.hpp \
+       ${pb_srcdir}/detail/cc_hash_table_map_/entry_list_fn_imps.hpp \
+       ${pb_srcdir}/detail/cc_hash_table_map_/erase_fn_imps.hpp \
+       ${pb_srcdir}/detail/cc_hash_table_map_/erase_no_store_hash_fn_imps.hpp \
+       ${pb_srcdir}/detail/cc_hash_table_map_/erase_store_hash_fn_imps.hpp \
+       ${pb_srcdir}/detail/cc_hash_table_map_/find_fn_imps.hpp \
+       ${pb_srcdir}/detail/cc_hash_table_map_/find_store_hash_fn_imps.hpp \
+       ${pb_srcdir}/detail/cc_hash_table_map_/info_fn_imps.hpp \
+       ${pb_srcdir}/detail/cc_hash_table_map_/insert_fn_imps.hpp \
+       ${pb_srcdir}/detail/cc_hash_table_map_/insert_no_store_hash_fn_imps.hpp \
+       ${pb_srcdir}/detail/cc_hash_table_map_/insert_store_hash_fn_imps.hpp \
+       ${pb_srcdir}/detail/cc_hash_table_map_/iterators_fn_imps.hpp \
+       ${pb_srcdir}/detail/cc_hash_table_map_/policy_access_fn_imps.hpp \
+       ${pb_srcdir}/detail/cc_hash_table_map_/resize_fn_imps.hpp \
+       ${pb_srcdir}/detail/cc_hash_table_map_/resize_no_store_hash_fn_imps.hpp \
+       ${pb_srcdir}/detail/cc_hash_table_map_/resize_store_hash_fn_imps.hpp \
+       ${pb_srcdir}/detail/cc_hash_table_map_/size_fn_imps.hpp
+
+pb_headers3 = \
+       ${pb_srcdir}/detail/cc_hash_table_map_/trace_fn_imps.hpp \
+       ${pb_srcdir}/detail/cond_dealtor.hpp \
+       ${pb_srcdir}/detail/container_base_dispatch.hpp \
+       ${pb_srcdir}/detail/eq_fn/eq_by_less.hpp \
+       ${pb_srcdir}/detail/eq_fn/hash_eq_fn.hpp \
+       ${pb_srcdir}/detail/gp_hash_table_map_/constructor_destructor_fn_imps.hpp \
+       ${pb_srcdir}/detail/gp_hash_table_map_/constructor_destructor_no_store_hash_fn_imps.hpp \
+       ${pb_srcdir}/detail/gp_hash_table_map_/constructor_destructor_store_hash_fn_imps.hpp \
+       ${pb_srcdir}/detail/gp_hash_table_map_/debug_fn_imps.hpp \
+       ${pb_srcdir}/detail/gp_hash_table_map_/debug_no_store_hash_fn_imps.hpp \
+       ${pb_srcdir}/detail/gp_hash_table_map_/debug_store_hash_fn_imps.hpp \
+       ${pb_srcdir}/detail/gp_hash_table_map_/erase_fn_imps.hpp \
+       ${pb_srcdir}/detail/gp_hash_table_map_/erase_no_store_hash_fn_imps.hpp \
+       ${pb_srcdir}/detail/gp_hash_table_map_/erase_store_hash_fn_imps.hpp \
+       ${pb_srcdir}/detail/gp_hash_table_map_/find_fn_imps.hpp \
+       ${pb_srcdir}/detail/gp_hash_table_map_/find_no_store_hash_fn_imps.hpp \
+       ${pb_srcdir}/detail/gp_hash_table_map_/find_store_hash_fn_imps.hpp \
+       ${pb_srcdir}/detail/gp_hash_table_map_/gp_ht_map_.hpp \
+       ${pb_srcdir}/detail/gp_hash_table_map_/info_fn_imps.hpp \
+       ${pb_srcdir}/detail/gp_hash_table_map_/insert_fn_imps.hpp \
+       ${pb_srcdir}/detail/gp_hash_table_map_/insert_no_store_hash_fn_imps.hpp \
+       ${pb_srcdir}/detail/gp_hash_table_map_/insert_store_hash_fn_imps.hpp \
+       ${pb_srcdir}/detail/gp_hash_table_map_/iterator_fn_imps.hpp \
+       ${pb_srcdir}/detail/gp_hash_table_map_/policy_access_fn_imps.hpp \
+       ${pb_srcdir}/detail/gp_hash_table_map_/resize_fn_imps.hpp \
+       ${pb_srcdir}/detail/gp_hash_table_map_/resize_no_store_hash_fn_imps.hpp \
+       ${pb_srcdir}/detail/gp_hash_table_map_/resize_store_hash_fn_imps.hpp \
+       ${pb_srcdir}/detail/gp_hash_table_map_/trace_fn_imps.hpp \
+       ${pb_srcdir}/detail/hash_fn/direct_mask_range_hashing_imp.hpp \
+       ${pb_srcdir}/detail/hash_fn/direct_mod_range_hashing_imp.hpp \
+       ${pb_srcdir}/detail/hash_fn/linear_probe_fn_imp.hpp \
+       ${pb_srcdir}/detail/hash_fn/mask_based_range_hashing.hpp \
+       ${pb_srcdir}/detail/hash_fn/mod_based_range_hashing.hpp \
+       ${pb_srcdir}/detail/hash_fn/probe_fn_base.hpp \
+       ${pb_srcdir}/detail/hash_fn/quadratic_probe_fn_imp.hpp \
+       ${pb_srcdir}/detail/hash_fn/ranged_hash_fn.hpp \
+       ${pb_srcdir}/detail/hash_fn/ranged_probe_fn.hpp
+
+pb_headers4 = \
+       ${pb_srcdir}/detail/hash_fn/sample_probe_fn.hpp \
+       ${pb_srcdir}/detail/hash_fn/sample_ranged_hash_fn.hpp \
+       ${pb_srcdir}/detail/hash_fn/sample_ranged_probe_fn.hpp \
+       ${pb_srcdir}/detail/hash_fn/sample_range_hashing.hpp \
+       ${pb_srcdir}/detail/left_child_next_sibling_heap_/const_iterator.hpp \
+       ${pb_srcdir}/detail/left_child_next_sibling_heap_/point_const_iterator.hpp \
+       ${pb_srcdir}/detail/left_child_next_sibling_heap_/constructors_destructor_fn_imps.hpp \
+       ${pb_srcdir}/detail/left_child_next_sibling_heap_/debug_fn_imps.hpp \
+       ${pb_srcdir}/detail/left_child_next_sibling_heap_/erase_fn_imps.hpp \
+       ${pb_srcdir}/detail/left_child_next_sibling_heap_/info_fn_imps.hpp \
+       ${pb_srcdir}/detail/left_child_next_sibling_heap_/insert_fn_imps.hpp \
+       ${pb_srcdir}/detail/left_child_next_sibling_heap_/iterators_fn_imps.hpp \
+       ${pb_srcdir}/detail/left_child_next_sibling_heap_/left_child_next_sibling_heap_.hpp \
+       ${pb_srcdir}/detail/left_child_next_sibling_heap_/node.hpp \
+       ${pb_srcdir}/detail/left_child_next_sibling_heap_/policy_access_fn_imps.hpp \
+       ${pb_srcdir}/detail/left_child_next_sibling_heap_/trace_fn_imps.hpp \
+       ${pb_srcdir}/detail/list_update_map_/constructor_destructor_fn_imps.hpp \
+       ${pb_srcdir}/detail/list_update_map_/debug_fn_imps.hpp \
+       ${pb_srcdir}/detail/list_update_map_/entry_metadata_base.hpp \
+       ${pb_srcdir}/detail/list_update_map_/erase_fn_imps.hpp \
+       ${pb_srcdir}/detail/list_update_map_/find_fn_imps.hpp \
+       ${pb_srcdir}/detail/list_update_map_/info_fn_imps.hpp \
+       ${pb_srcdir}/detail/list_update_map_/insert_fn_imps.hpp \
+       ${pb_srcdir}/detail/list_update_map_/iterators_fn_imps.hpp \
+       ${pb_srcdir}/detail/list_update_map_/lu_map_.hpp \
+       ${pb_srcdir}/detail/list_update_map_/trace_fn_imps.hpp \
+       ${pb_srcdir}/detail/list_update_policy/lu_counter_metadata.hpp \
+       ${pb_srcdir}/detail/list_update_policy/sample_update_policy.hpp \
+       ${pb_srcdir}/detail/debug_map_base.hpp \
+       ${pb_srcdir}/detail/ov_tree_map_/constructors_destructor_fn_imps.hpp \
+       ${pb_srcdir}/detail/ov_tree_map_/debug_fn_imps.hpp \
+       ${pb_srcdir}/detail/ov_tree_map_/erase_fn_imps.hpp \
+       ${pb_srcdir}/detail/ov_tree_map_/info_fn_imps.hpp \
+       ${pb_srcdir}/detail/ov_tree_map_/insert_fn_imps.hpp \
+       ${pb_srcdir}/detail/ov_tree_map_/iterators_fn_imps.hpp \
+       ${pb_srcdir}/detail/ov_tree_map_/node_iterators.hpp \
+       ${pb_srcdir}/detail/ov_tree_map_/ov_tree_map_.hpp
+
+pb_headers5 = \
+       ${pb_srcdir}/detail/ov_tree_map_/policy_access_fn_imps.hpp \
+       ${pb_srcdir}/detail/ov_tree_map_/split_join_fn_imps.hpp \
+       ${pb_srcdir}/detail/ov_tree_map_/traits.hpp \
+       ${pb_srcdir}/detail/pairing_heap_/constructors_destructor_fn_imps.hpp \
+       ${pb_srcdir}/detail/pairing_heap_/debug_fn_imps.hpp \
+       ${pb_srcdir}/detail/pairing_heap_/erase_fn_imps.hpp \
+       ${pb_srcdir}/detail/pairing_heap_/find_fn_imps.hpp \
+       ${pb_srcdir}/detail/pairing_heap_/insert_fn_imps.hpp \
+       ${pb_srcdir}/detail/pairing_heap_/pairing_heap_.hpp \
+       ${pb_srcdir}/detail/pairing_heap_/split_join_fn_imps.hpp \
+       ${pb_srcdir}/detail/pat_trie_/constructors_destructor_fn_imps.hpp \
+       ${pb_srcdir}/detail/pat_trie_/debug_fn_imps.hpp \
+       ${pb_srcdir}/detail/pat_trie_/erase_fn_imps.hpp \
+       ${pb_srcdir}/detail/pat_trie_/find_fn_imps.hpp \
+       ${pb_srcdir}/detail/pat_trie_/info_fn_imps.hpp \
+       ${pb_srcdir}/detail/pat_trie_/insert_join_fn_imps.hpp \
+       ${pb_srcdir}/detail/pat_trie_/iterators_fn_imps.hpp \
+       ${pb_srcdir}/detail/pat_trie_/pat_trie_.hpp \
+       ${pb_srcdir}/detail/pat_trie_/pat_trie_base.hpp \
+       ${pb_srcdir}/detail/pat_trie_/policy_access_fn_imps.hpp \
+       ${pb_srcdir}/detail/pat_trie_/r_erase_fn_imps.hpp \
+       ${pb_srcdir}/detail/pat_trie_/rotate_fn_imps.hpp \
+       ${pb_srcdir}/detail/pat_trie_/split_fn_imps.hpp \
+       ${pb_srcdir}/detail/pat_trie_/synth_access_traits.hpp \
+       ${pb_srcdir}/detail/pat_trie_/trace_fn_imps.hpp \
+       ${pb_srcdir}/detail/pat_trie_/traits.hpp \
+       ${pb_srcdir}/detail/pat_trie_/update_fn_imps.hpp \
+       ${pb_srcdir}/detail/priority_queue_base_dispatch.hpp \
+       ${pb_srcdir}/detail/rb_tree_map_/constructors_destructor_fn_imps.hpp \
+       ${pb_srcdir}/detail/rb_tree_map_/debug_fn_imps.hpp
+
+pb_headers6 = \
+       ${pb_srcdir}/detail/rb_tree_map_/erase_fn_imps.hpp \
+       ${pb_srcdir}/detail/rb_tree_map_/find_fn_imps.hpp \
+       ${pb_srcdir}/detail/rb_tree_map_/info_fn_imps.hpp \
+       ${pb_srcdir}/detail/rb_tree_map_/insert_fn_imps.hpp \
+       ${pb_srcdir}/detail/rb_tree_map_/node.hpp \
+       ${pb_srcdir}/detail/rb_tree_map_/rb_tree_.hpp \
+       ${pb_srcdir}/detail/rb_tree_map_/split_join_fn_imps.hpp \
+       ${pb_srcdir}/detail/rb_tree_map_/traits.hpp \
+       ${pb_srcdir}/detail/rc_binomial_heap_/constructors_destructor_fn_imps.hpp \
+       ${pb_srcdir}/detail/rc_binomial_heap_/debug_fn_imps.hpp \
+       ${pb_srcdir}/detail/rc_binomial_heap_/erase_fn_imps.hpp \
+       ${pb_srcdir}/detail/rc_binomial_heap_/insert_fn_imps.hpp \
+       ${pb_srcdir}/detail/rc_binomial_heap_/rc_binomial_heap_.hpp \
+       ${pb_srcdir}/detail/rc_binomial_heap_/rc.hpp \
+       ${pb_srcdir}/detail/rc_binomial_heap_/split_join_fn_imps.hpp \
+       ${pb_srcdir}/detail/rc_binomial_heap_/trace_fn_imps.hpp \
+       ${pb_srcdir}/detail/resize_policy/cc_hash_max_collision_check_resize_trigger_imp.hpp \
+       ${pb_srcdir}/detail/resize_policy/hash_exponential_size_policy_imp.hpp \
+       ${pb_srcdir}/detail/resize_policy/hash_load_check_resize_trigger_imp.hpp \
+       ${pb_srcdir}/detail/resize_policy/hash_load_check_resize_trigger_size_base.hpp \
+       ${pb_srcdir}/detail/resize_policy/hash_prime_size_policy_imp.hpp \
+       ${pb_srcdir}/detail/resize_policy/hash_standard_resize_policy_imp.hpp \
+       ${pb_srcdir}/detail/resize_policy/sample_resize_policy.hpp \
+       ${pb_srcdir}/detail/resize_policy/sample_resize_trigger.hpp \
+       ${pb_srcdir}/detail/resize_policy/sample_size_policy.hpp \
+       ${pb_srcdir}/detail/splay_tree_/constructors_destructor_fn_imps.hpp \
+       ${pb_srcdir}/detail/splay_tree_/debug_fn_imps.hpp \
+       ${pb_srcdir}/detail/splay_tree_/erase_fn_imps.hpp \
+       ${pb_srcdir}/detail/splay_tree_/find_fn_imps.hpp \
+       ${pb_srcdir}/detail/splay_tree_/info_fn_imps.hpp \
+       ${pb_srcdir}/detail/splay_tree_/insert_fn_imps.hpp \
+       ${pb_srcdir}/detail/splay_tree_/node.hpp \
+       ${pb_srcdir}/detail/splay_tree_/splay_fn_imps.hpp \
+       ${pb_srcdir}/detail/splay_tree_/splay_tree_.hpp \
+       ${pb_srcdir}/detail/splay_tree_/split_join_fn_imps.hpp \
+       ${pb_srcdir}/detail/splay_tree_/traits.hpp \
+       ${pb_srcdir}/detail/standard_policies.hpp \
+       ${pb_srcdir}/detail/thin_heap_/constructors_destructor_fn_imps.hpp \
+       ${pb_srcdir}/detail/thin_heap_/debug_fn_imps.hpp \
+       ${pb_srcdir}/detail/thin_heap_/erase_fn_imps.hpp
+
+pb_headers7 = \
+       ${pb_srcdir}/detail/thin_heap_/find_fn_imps.hpp \
+       ${pb_srcdir}/detail/thin_heap_/insert_fn_imps.hpp \
+       ${pb_srcdir}/detail/thin_heap_/split_join_fn_imps.hpp \
+       ${pb_srcdir}/detail/thin_heap_/thin_heap_.hpp \
+       ${pb_srcdir}/detail/thin_heap_/trace_fn_imps.hpp \
+       ${pb_srcdir}/detail/tree_policy/node_metadata_selector.hpp \
+       ${pb_srcdir}/detail/tree_policy/order_statistics_imp.hpp \
+       ${pb_srcdir}/detail/tree_policy/sample_tree_node_update.hpp \
+       ${pb_srcdir}/detail/tree_trace_base.hpp \
+       ${pb_srcdir}/detail/trie_policy/node_metadata_selector.hpp \
+       ${pb_srcdir}/detail/trie_policy/order_statistics_imp.hpp \
+       ${pb_srcdir}/detail/trie_policy/prefix_search_node_update_imp.hpp \
+       ${pb_srcdir}/detail/trie_policy/sample_trie_access_traits.hpp \
+       ${pb_srcdir}/detail/trie_policy/sample_trie_node_update.hpp \
+       ${pb_srcdir}/detail/trie_policy/trie_string_access_traits_imp.hpp \
+       ${pb_srcdir}/detail/trie_policy/trie_policy_base.hpp \
+       ${pb_srcdir}/detail/types_traits.hpp \
+       ${pb_srcdir}/detail/type_utils.hpp \
+       ${pb_srcdir}/detail/unordered_iterator/const_iterator.hpp \
+       ${pb_srcdir}/detail/unordered_iterator/point_const_iterator.hpp \
+       ${pb_srcdir}/detail/unordered_iterator/iterator.hpp \
+       ${pb_srcdir}/detail/unordered_iterator/point_iterator.hpp
+
+ext_headers = \
+       ${ext_srcdir}/algorithm \
+       ${ext_srcdir}/aligned_buffer.h \
+       ${ext_srcdir}/alloc_traits.h \
+       ${ext_srcdir}/atomicity.h \
+       ${ext_srcdir}/array_allocator.h \
+       ${ext_srcdir}/bitmap_allocator.h \
+       ${ext_srcdir}/cast.h \
+       ${ext_srcdir}/cmath \
+       ${ext_srcdir}/codecvt_specializations.h \
+       ${ext_srcdir}/concurrence.h \
+       ${ext_srcdir}/debug_allocator.h \
+       ${ext_srcdir}/enc_filebuf.h \
+       ${ext_srcdir}/extptr_allocator.h \
+       ${ext_srcdir}/stdio_filebuf.h \
+       ${ext_srcdir}/stdio_sync_filebuf.h \
+       ${ext_srcdir}/functional \
+       ${ext_srcdir}/iterator \
+       ${ext_srcdir}/malloc_allocator.h \
+       ${ext_srcdir}/memory \
+       ${ext_srcdir}/mt_allocator.h \
+       ${ext_srcdir}/new_allocator.h \
+       ${ext_srcdir}/numeric \
+       ${ext_srcdir}/numeric_traits.h \
+       ${ext_srcdir}/pod_char_traits.h \
+       ${ext_srcdir}/pointer.h \
+       ${ext_srcdir}/pool_allocator.h \
+       ${ext_srcdir}/rb_tree \
+       ${ext_srcdir}/random \
+       ${ext_srcdir}/random.tcc \
+       ${ext_srcdir}/rope \
+       ${ext_srcdir}/ropeimpl.h \
+       ${ext_srcdir}/slist \
+       ${ext_srcdir}/string_conversions.h \
+       ${ext_srcdir}/throw_allocator.h \
+       ${ext_srcdir}/typelist.h \
+       ${ext_srcdir}/type_traits.h \
+       ${ext_srcdir}/rc_string_base.h \
+       ${ext_srcdir}/sso_string_base.h \
+       ${ext_srcdir}/vstring.h \
+       ${ext_srcdir}/vstring.tcc \
+       ${ext_srcdir}/vstring_fwd.h \
+       ${ext_srcdir}/vstring_util.h \
+       ${ext_compat_headers}
+
+ext_compat_headers = \
+       ${backward_srcdir}/hash_set \
+       ${backward_srcdir}/hash_map
+
+ext_host_headers = \
+       ${glibcxx_srcdir}/${CPU_OPT_EXT_RANDOM}
+
+tr1_headers = \
+       ${tr1_srcdir}/array \
+       ${tr1_srcdir}/bessel_function.tcc \
+       ${tr1_srcdir}/beta_function.tcc \
+       ${tr1_srcdir}/ccomplex \
+       ${tr1_srcdir}/cctype \
+       ${tr1_srcdir}/cfenv \
+       ${tr1_srcdir}/cfloat \
+       ${tr1_srcdir}/cinttypes \
+       ${tr1_srcdir}/climits \
+       ${tr1_srcdir}/cmath \
+       ${tr1_srcdir}/complex \
+       ${tr1_srcdir}/complex.h \
+       ${tr1_srcdir}/cstdarg \
+       ${tr1_srcdir}/cstdbool \
+       ${tr1_srcdir}/cstdint \
+       ${tr1_srcdir}/cstdio \
+       ${tr1_srcdir}/cstdlib \
+       ${tr1_srcdir}/ctgmath \
+       ${tr1_srcdir}/ctime \
+       ${tr1_srcdir}/ctype.h \
+       ${tr1_srcdir}/cwchar \
+       ${tr1_srcdir}/cwctype \
+       ${tr1_srcdir}/ell_integral.tcc \
+       ${tr1_srcdir}/exp_integral.tcc \
+       ${tr1_srcdir}/fenv.h \
+       ${tr1_srcdir}/float.h \
+       ${tr1_srcdir}/functional \
+       ${tr1_srcdir}/functional_hash.h \
+       ${tr1_srcdir}/gamma.tcc \
+       ${tr1_srcdir}/hypergeometric.tcc \
+       ${tr1_srcdir}/hashtable.h \
+       ${tr1_srcdir}/hashtable_policy.h \
+       ${tr1_srcdir}/inttypes.h \
+       ${tr1_srcdir}/limits.h \
+       ${tr1_srcdir}/math.h \
+       ${tr1_srcdir}/memory \
+       ${tr1_srcdir}/modified_bessel_func.tcc \
+       ${tr1_srcdir}/poly_hermite.tcc \
+       ${tr1_srcdir}/poly_laguerre.tcc \
+       ${tr1_srcdir}/legendre_function.tcc \
+       ${tr1_srcdir}/random \
+       ${tr1_srcdir}/random.h \
+       ${tr1_srcdir}/random.tcc \
+       ${tr1_srcdir}/regex \
+       ${tr1_srcdir}/riemann_zeta.tcc \
+       ${tr1_srcdir}/shared_ptr.h \
+       ${tr1_srcdir}/special_function_util.h \
+       ${tr1_srcdir}/stdarg.h \
+       ${tr1_srcdir}/stdbool.h \
+       ${tr1_srcdir}/stdint.h \
+       ${tr1_srcdir}/stdio.h \
+       ${tr1_srcdir}/stdlib.h \
+       ${tr1_srcdir}/tgmath.h \
+       ${tr1_srcdir}/tuple \
+       ${tr1_srcdir}/type_traits \
+       ${tr1_srcdir}/unordered_map \
+       ${tr1_srcdir}/unordered_map.h \
+       ${tr1_srcdir}/unordered_set \
+       ${tr1_srcdir}/unordered_set.h \
+       ${tr1_srcdir}/utility \
+       ${tr1_srcdir}/wchar.h \
+       ${tr1_srcdir}/wctype.h
+
+tr2_headers = \
+       ${tr2_srcdir}/bool_set \
+       ${tr2_srcdir}/bool_set.tcc \
+       ${tr2_srcdir}/dynamic_bitset \
+       ${tr2_srcdir}/dynamic_bitset.tcc \
+       ${tr2_srcdir}/ratio \
+       ${tr2_srcdir}/type_traits
+
+decimal_headers = \
+       ${decimal_srcdir}/decimal \
+       ${decimal_srcdir}/decimal.h
+
+# Post-C++11 TS's
+experimental_headers = \
+       ${experimental_srcdir}/algorithm \
+       ${experimental_srcdir}/any \
+       ${experimental_srcdir}/array \
+       ${experimental_srcdir}/chrono \
+       ${experimental_srcdir}/deque \
+       ${experimental_srcdir}/forward_list \
+       ${experimental_srcdir}/functional \
+       ${experimental_srcdir}/iterator \
+       ${experimental_srcdir}/list \
+       ${experimental_srcdir}/map \
+       ${experimental_srcdir}/memory \
+       ${experimental_srcdir}/memory_resource \
+       ${experimental_srcdir}/numeric \
+       ${experimental_srcdir}/optional \
+       ${experimental_srcdir}/propagate_const \
+       ${experimental_srcdir}/random \
+       ${experimental_srcdir}/ratio \
+       ${experimental_srcdir}/regex \
+       ${experimental_srcdir}/set \
+       ${experimental_srcdir}/source_location \
+       ${experimental_srcdir}/string \
+       ${experimental_srcdir}/string_view \
+       ${experimental_srcdir}/system_error \
+       ${experimental_srcdir}/tuple \
+       ${experimental_srcdir}/type_traits \
+       ${experimental_srcdir}/unordered_map \
+       ${experimental_srcdir}/unordered_set \
+       ${experimental_srcdir}/utility \
+       ${experimental_srcdir}/vector \
+       ${experimental_filesystem_headers}
+
+experimental_bits_headers = \
+       ${experimental_bits_srcdir}/erase_if.h \
+       ${experimental_bits_srcdir}/lfts_config.h \
+       ${experimental_bits_srcdir}/shared_ptr.h \
+       ${experimental_bits_srcdir}/string_view.tcc \
+       ${experimental_bits_filesystem_headers}
+
+experimental_filesystem_headers =
+
+experimental_bits_filesystem_headers=
+
+c_base_headers = \
+       ${c_base_srcdir}/cassert \
+       ${c_base_srcdir}/ccomplex \
+       ${c_base_srcdir}/cctype \
+       ${c_base_srcdir}/cerrno \
+       ${c_base_srcdir}/cfenv \
+       ${c_base_srcdir}/cfloat \
+       ${c_base_srcdir}/cinttypes \
+       ${c_base_srcdir}/ciso646 \
+       ${c_base_srcdir}/climits \
+       ${c_base_srcdir}/clocale \
+       ${c_base_srcdir}/cmath \
+       ${c_base_srcdir}/csetjmp \
+       ${c_base_srcdir}/csignal \
+       ${c_base_srcdir}/cstdalign \
+       ${c_base_srcdir}/cstdarg \
+       ${c_base_srcdir}/cstdbool \
+       ${c_base_srcdir}/cstddef \
+       ${c_base_srcdir}/cstdint \
+       ${c_base_srcdir}/cstdio \
+       ${c_base_srcdir}/cstdlib \
+       ${c_base_srcdir}/cstring \
+       ${c_base_srcdir}/ctgmath \
+       ${c_base_srcdir}/ctime \
+       ${c_base_srcdir}/cuchar \
+       ${c_base_srcdir}/cwchar \
+       ${c_base_srcdir}/cwctype
+
+c_compatibility_headers = \
+       ${c_compatibility_srcdir}/complex.h \
+       ${c_compatibility_srcdir}/fenv.h \
+       ${c_compatibility_srcdir}/tgmath.h
+
+debug_headers = \
+       ${debug_srcdir}/array \
+       ${debug_srcdir}/assertions.h \
+       ${debug_srcdir}/bitset \
+       ${debug_srcdir}/debug.h \
+       ${debug_srcdir}/deque \
+       ${debug_srcdir}/formatter.h \
+       ${debug_srcdir}/forward_list \
+       ${debug_srcdir}/functions.h \
+       ${debug_srcdir}/helper_functions.h \
+       ${debug_srcdir}/list \
+       ${debug_srcdir}/map \
+       ${debug_srcdir}/macros.h \
+       ${debug_srcdir}/map.h \
+       ${debug_srcdir}/multimap.h \
+       ${debug_srcdir}/multiset.h \
+       ${debug_srcdir}/safe_base.h \
+       ${debug_srcdir}/safe_container.h \
+       ${debug_srcdir}/safe_iterator.h \
+       ${debug_srcdir}/safe_iterator.tcc \
+       ${debug_srcdir}/safe_local_iterator.h \
+       ${debug_srcdir}/safe_local_iterator.tcc \
+       ${debug_srcdir}/safe_sequence.h \
+       ${debug_srcdir}/safe_sequence.tcc \
+       ${debug_srcdir}/safe_unordered_base.h \
+       ${debug_srcdir}/safe_unordered_container.h \
+       ${debug_srcdir}/safe_unordered_container.tcc \
+       ${debug_srcdir}/set \
+       ${debug_srcdir}/set.h \
+       ${debug_srcdir}/stl_iterator.h \
+       ${debug_srcdir}/string \
+       ${debug_srcdir}/unordered_map \
+       ${debug_srcdir}/unordered_set \
+       ${debug_srcdir}/vector
+
+parallel_headers = \
+       ${parallel_srcdir}/algo.h \
+       ${parallel_srcdir}/algobase.h \
+       ${parallel_srcdir}/algorithm \
+       ${parallel_srcdir}/algorithmfwd.h \
+       ${parallel_srcdir}/balanced_quicksort.h \
+       ${parallel_srcdir}/base.h \
+       ${parallel_srcdir}/basic_iterator.h \
+       ${parallel_srcdir}/checkers.h \
+       ${parallel_srcdir}/compatibility.h \
+       ${parallel_srcdir}/compiletime_settings.h \
+       ${parallel_srcdir}/equally_split.h \
+       ${parallel_srcdir}/features.h \
+       ${parallel_srcdir}/find.h \
+       ${parallel_srcdir}/find_selectors.h \
+       ${parallel_srcdir}/for_each.h \
+       ${parallel_srcdir}/for_each_selectors.h \
+       ${parallel_srcdir}/iterator.h \
+       ${parallel_srcdir}/list_partition.h \
+       ${parallel_srcdir}/losertree.h \
+       ${parallel_srcdir}/merge.h \
+       ${parallel_srcdir}/multiseq_selection.h \
+       ${parallel_srcdir}/multiway_merge.h \
+       ${parallel_srcdir}/multiway_mergesort.h \
+       ${parallel_srcdir}/numeric \
+       ${parallel_srcdir}/numericfwd.h \
+       ${parallel_srcdir}/omp_loop.h \
+       ${parallel_srcdir}/omp_loop_static.h \
+       ${parallel_srcdir}/par_loop.h \
+       ${parallel_srcdir}/parallel.h \
+       ${parallel_srcdir}/partial_sum.h \
+       ${parallel_srcdir}/partition.h \
+       ${parallel_srcdir}/queue.h \
+       ${parallel_srcdir}/quicksort.h \
+       ${parallel_srcdir}/random_number.h \
+       ${parallel_srcdir}/random_shuffle.h \
+       ${parallel_srcdir}/search.h \
+       ${parallel_srcdir}/set_operations.h \
+       ${parallel_srcdir}/settings.h \
+       ${parallel_srcdir}/sort.h \
+       ${parallel_srcdir}/tags.h \
+       ${parallel_srcdir}/types.h \
+       ${parallel_srcdir}/unique_copy.h \
+       ${parallel_srcdir}/workstealing.h
+
+profile_headers = \
+       ${profile_srcdir}/array \
+       ${profile_srcdir}/base.h \
+       ${profile_srcdir}/unordered_base.h \
+       ${profile_srcdir}/unordered_map \
+       ${profile_srcdir}/unordered_set \
+       ${profile_srcdir}/vector \
+       ${profile_srcdir}/bitset \
+       ${profile_srcdir}/deque \
+       ${profile_srcdir}/forward_list \
+       ${profile_srcdir}/list \
+       ${profile_srcdir}/map \
+       ${profile_srcdir}/map.h \
+       ${profile_srcdir}/multimap.h \
+       ${profile_srcdir}/multiset.h \
+       ${profile_srcdir}/ordered_base.h \
+       ${profile_srcdir}/set \
+       ${profile_srcdir}/set.h \
+       ${profile_srcdir}/iterator_tracker.h
+
+profile_impl_headers = \
+       ${profile_impl_srcdir}/profiler.h \
+       ${profile_impl_srcdir}/profiler_algos.h \
+       ${profile_impl_srcdir}/profiler_container_size.h \
+       ${profile_impl_srcdir}/profiler_hash_func.h \
+       ${profile_impl_srcdir}/profiler_hashtable_size.h \
+       ${profile_impl_srcdir}/profiler_map_to_unordered_map.h \
+       ${profile_impl_srcdir}/profiler_node.h \
+       ${profile_impl_srcdir}/profiler_state.h \
+       ${profile_impl_srcdir}/profiler_trace.h \
+       ${profile_impl_srcdir}/profiler_vector_size.h \
+       ${profile_impl_srcdir}/profiler_vector_to_list.h \
+       ${profile_impl_srcdir}/profiler_list_to_vector.h \
+       ${profile_impl_srcdir}/profiler_list_to_slist.h
+
+host_headers = \
+       ${host_srcdir}/ctype_base.h \
+       ${host_srcdir}/ctype_inline.h \
+       ${host_srcdir}/os_defines.h \
+       ${glibcxx_srcdir}/$(ATOMIC_WORD_SRCDIR)/atomic_word.h \
+       ${glibcxx_srcdir}/$(ABI_TWEAKS_SRCDIR)/cxxabi_tweaks.h \
+       ${glibcxx_srcdir}/$(CPU_DEFINES_SRCDIR)/cpu_defines.h \
+       ${glibcxx_srcdir}/$(ERROR_CONSTANTS_SRCDIR)/error_constants.h \
+       ${glibcxx_srcdir}/include/precompiled/stdc++.h \
+       ${glibcxx_srcdir}/include/precompiled/stdtr1c++.h \
+       ${glibcxx_srcdir}/include/precompiled/extc++.h
diff --git a/gnu/lib/gcc80/libstdcxx/product/Makefile b/gnu/lib/gcc80/libstdcxx/product/Makefile
new file mode 100644 (file)
index 0000000..8e43093
--- /dev/null
@@ -0,0 +1,96 @@
+RELUP= /..
+.include "../../Makefile.inc"
+SRCDIR=        ${GCCDIR}/libstdc++-v3
+PREDIR=        ${SRCDIR}/config/abi/pre
+.include "Makefile.src"
+
+LIB=           stdc++
+SHLIB_MAJOR=   9
+
+.PATH: ${SRCDIR}/src/c++98
+.PATH: ${SRCDIR}/src/c++11
+
+# for now do not let the use of -flto (-Wodr...)
+.if ${CFLAGS:M-flto}
+CFLAGS+=       -fno-lto
+LDFLAGS+=      -flto
+.endif
+
+CFLAGS+=       -I${.OBJDIR}
+CXXFLAGS+=     -fno-implicit-templates
+CXXFLAGS+=     -fdiagnostics-show-location=once
+CXXFLAGS+=     -ffunction-sections -fdata-sections
+LDFLAGS+=      -Wl,-z -Wl,relro -Wl,--gc-sections
+VERSION_MAP=   ${.OBJDIR}/libstdcxx.map
+
+FLAGS_GROUPS=          gnu11
+gnu11_FLAGS=           -std=gnu++11
+gnu11_FLAGS_FILES=     ${cxx11_sources:S|++|xx|}
+
+CONVARCS=      ../components/libconv_supc/libsupcxxconvenience.a
+CONVARCS+=     ../components/libconv_1998/libcxx98convenience.a
+CONVARCS+=     ../components/libconv_2011/libcxx11convenience.a
+LDADD=         -Wl,--whole-archive ${CONVARCS:.a=_pic.a} -lm
+LDADD+=                -Wl,--no-whole-archive
+ARADD=         ${CONVARCS} ${LIBM}
+
+# The AR script is a nice trick, but it *cannot* handle "++" on any line
+# To work around this incredible limitation, copy files with "++" in
+# their names to a new file name (transform ++ => xx)
+
+SRCS=          ${libstdc___la_SOURCES:S|++|xx|}
+PROBLEMS=      ${libstdc___la_SOURCES:M*++*}
+PROBLEMSXX=    ${PROBLEMS:S|++|xx|}
+
+# Override bsd.lib.mk scripts
+libstdc++.a: ${SRCS:.cc=.o} script.ar
+       @${ECHO} building static ${LIB} library via script
+       rm -f ${.TARGET}
+       ${AR} -M < script.ar
+       mv libstdcxx.a ${.TARGET}
+       ${RANLIB} ${.TARGET}
+
+libstdc++_p.a: ${SRCS:.cc=.po} script_p.ar
+       @${ECHO} building profiled ${LIB} library via script
+       rm -f ${.TARGET}
+       ${AR} -M < script_p.ar
+       mv libstdcxx_p.a ${.TARGET}
+       ${RANLIB} ${.TARGET}
+
+${PROBLEMSXX}: ${PROBLEMS}
+       cp ${SRCDIR}/src/c++11/${.TARGET:S|xx|++|} ${.TARGET}
+
+gstdint.h:
+       @echo "#include <stdint.h>" > ${.TARGET}
+
+script.ar:
+       @echo "CREATE libstdcxx.a"      >  ${.TARGET}
+.for arc in ${CONVARCS}
+       @echo "ADDLIB ${arc}"           >> ${.TARGET}
+.endfor
+.for obj in ${SRCS:.cc=.o}
+       @echo "ADDMOD ${obj}"           >> ${.TARGET}
+.endfor
+       @echo "SAVE"                    >> ${.TARGET}
+       @echo "END"                     >> ${.TARGET}
+
+script_p.ar:
+       @echo "CREATE libstdcxx_p.a"    >  ${.TARGET}
+.for arc in ${CONVARCS:.a=_p.a}
+       @echo "ADDLIB ${arc}"           >> ${.TARGET}
+.endfor
+.for obj in ${SRCS:.cc=.po}
+       @echo "ADDMOD ${obj}"           >> ${.TARGET}
+.endfor
+       @echo "SAVE"                    >> ${.TARGET}
+       @echo "END"                     >> ${.TARGET}
+
+libstdcxx.map: ${PREDIR}/gnu.ver ${PREDIR}/float128.ver
+       cat ${.ALLSRC} | grep -E -v '^[  ]*#(#| |$$)' | \
+       ${CC} -E -P -include ${.CURDIR}/../headers/config.h - > ${.TARGET}
+
+GENFILES=      gstdint.h script.ar script_p.ar ${PROBLEMSXX} libstdcxx.map
+CLEANFILES=    ${GENFILES}
+beforedepend:  ${GENFILES}
+
+.include <bsd.lib.mk>
diff --git a/gnu/lib/gcc80/libstdcxx/product/Makefile.src b/gnu/lib/gcc80/libstdcxx/product/Makefile.src
new file mode 100644 (file)
index 0000000..b809122
--- /dev/null
@@ -0,0 +1,16 @@
+# verbatim from libstdc++/src/Makefile.in
+
+ldbl_compat_sources =
+cxx98_sources = \
+       compatibility.cc \
+       compatibility-debug_list.cc \
+       compatibility-debug_list-2.cc \
+       ${ldbl_compat_sources}
+cxx11_sources = \
+       compatibility-c++0x.cc \
+       compatibility-atomic-c++0x.cc \
+       compatibility-thread-c++0x.cc \
+       compatibility-chrono.cc \
+       compatibility-condvar.cc
+
+libstdc___la_SOURCES = $(cxx98_sources) $(cxx11_sources)
diff --git a/gnu/usr.bin/cc80/Makefile b/gnu/usr.bin/cc80/Makefile
new file mode 100644 (file)
index 0000000..0d88b0c
--- /dev/null
@@ -0,0 +1,20 @@
+# This build order provides more parallelism that gcc47, and is almost as
+# efficient as possible.  Most of the support libraries could be built
+# without cc_tools and the backend could be built at the same time as the
+# drivers rather than afterwards, but this setup is reasonably fine grained.
+
+SUBDIR_ORDERED=        cc_prep cc_tools support-libs drivers libbackend backends
+
+# The SUBDIR_ORDERED definition is currently equivalent to SUBDIR_ORDERED=
+# but it wasn't always -- there used to be "doc" directory which could be
+# built at any time.  Just leave the redundant definition for now, maybe
+# we'll need it again in the future.
+
+SUBDIR=                cc_prep
+SUBDIR+=       cc_tools
+SUBDIR+=       support-libs
+SUBDIR+=       drivers
+SUBDIR+=       libbackend
+SUBDIR+=       backends
+
+.include <bsd.subdir.mk>
diff --git a/gnu/usr.bin/cc80/Makefile.inc b/gnu/usr.bin/cc80/Makefile.inc
new file mode 100644 (file)
index 0000000..a7fdfb9
--- /dev/null
@@ -0,0 +1,100 @@
+.if !target(__<cc.Makefile.inc>__)
+__<cc.Makefile.inc>__:
+
+.include "Makefile.version"
+
+# needed to complile hsa/brig stubs
+NOEXCEPTION_FLAGS= -fno-exceptions -fno-rtti
+
+FLAGS=         -DGCCPOINTVER=\"${GCCPOINTVER}\"
+FLAGS+=                -DGCCSHORTVER=\"${GCCSHORTVER}\"
+FLAGS+=                -DBASEVER=\"${GCCCOMPLETEVER}\"
+
+FLAGS+=                -DDEFAULT_TARGET_VERSION=\"${version}\"
+FLAGS+=                -DDEFAULT_TARGET_MACHINE=\"${target_machine}\"
+
+BINDIR?=       /usr/libexec/gcc${GCCSHORTVER}
+
+GCCDIR=                ${.CURDIR}/${TOP_PREFIX}../../../../contrib/gcc-8.0
+OTOPDIR=       ${.OBJDIR}/${TOP_PREFIX}..
+STOPDIR=       ${.CURDIR}/${TOP_PREFIX}..
+OSLDIR=                ${OTOPDIR}/support-libs
+
+TOOLDIR=       ${OTOPDIR}/cc_tools/tools
+
+.if defined(LOCAL_CONFIG)
+FLAGS+=                -I${.CURDIR}
+FLAGS+=                -I${.OBJDIR}
+.endif
+FLAGS+=                -I${OTOPDIR}/cc_prep
+FLAGS+=                -I${STOPDIR}/cc_prep
+FLAGS+=                -I${STOPDIR}/cc_prep/config
+FLAGS+=                -I${GCCDIR}/gcc
+FLAGS+=                -I${GCCDIR}/gcc/config
+FLAGS+=                -I${GCCDIR}/include
+FLAGS+=                -I${GCCDIR}/libcpp/include
+FLAGS+=                -I${GCCDIR}/libdecnumber
+FLAGS+=                -I${GCCDIR}/libdecnumber/dpd
+FLAGS+=                -I${OSLDIR}/libdecnumber
+FLAGS+=                -I${STOPDIR}/../gmp
+FLAGS+=                -I${STOPDIR}/../../../contrib/mpfr/src
+FLAGS+=                -I${STOPDIR}/../mpfr
+FLAGS+=                -I${STOPDIR}/../../../contrib/mpc/src
+FLAGS+=                -I${GCCDIR}/gcc/config/i386
+FLAGS+=                -I${TOOLDIR}
+
+FLAGS+=                -DIN_GCC -DHAVE_CONFIG_H
+FLAGS+=                -DPREFIX1=\"${TOOLS_PREFIX}/usr\"
+FLAGS+=                -DPREFIX2=\"${USRDATA_PREFIX}/usr\"
+
+.if defined(BOOTSTRAPPING)
+FLAGS+=                -DCTOOLS
+.endif
+
+CFLAGS+=       ${FLAGS}
+
+.include "Makefile.tgt"
+
+.if ${TARGET_ARCH} != ${MACHINE_ARCH}
+CFLAGS+= -DCROSS_COMPILE
+.endif
+
+.if defined(GCC_LANG_DIR)
+.PATH: ${GCCDIR}/${GCC_LANG_DIR}
+.endif
+
+.if !defined(GCC_NO_PATH)
+.PATH: ${OTOPDIR}/cc_prep
+.PATH: ${STOPDIR}/cc_prep
+.PATH: ${GCCDIR}/gcc
+.PATH: ${GCCDIR}/gcc/c
+.PATH: ${GCCDIR}/gcc/c-family
+.PATH: ${GCCDIR}/gcc/config
+.PATH: ${GCCDIR}/gcc/config/i386
+.PATH: ${TOOLDIR}
+.endif
+
+LIBIBERTY=     ${OSLDIR}/libiberty/libiberty.a
+LIBCPP=                ${OSLDIR}/libcpp/libcpp.a
+LIBDECNUMBER=  ${OSLDIR}/libdecnumber/libdecnumber.a
+LIBCOMMON=     ${OSLDIR}/libcommon/libcommon.a
+LIBCOMMONTARG= ${OSLDIR}/libcommon-target/libcommon-target.a
+LIBBACKTRACE=  ${OSLDIR}/libbacktrace/libbacktrace.a
+LIBBACKEND=    ${OTOPDIR}/libbackend/libbackend.a
+
+LIBGMP=                ${OTOPDIR}/../gmp/libgmp.a
+LIBMPFR=       ${OTOPDIR}/../mpfr/libmpfr.a
+LIBMPC=                ${OTOPDIR}/../mpc/libmpc.a
+LIBZ=          ${OTOPDIR}/../../../lib/libz/libz.a
+
+GMPLIBS=       ${LIBMPC} ${LIBMPFR} ${LIBGMP}
+STDLIBS=       ${LIBCOMMONTARG} ${LIBCOMMON} ${LIBCPP} \
+               ${LIBBACKTRACE} ${LIBIBERTY} ${LIBDECNUMBER}
+BACKENDLIBS=   ${GMPLIBS} ${LIBZ}
+
+.if !defined(GCC_NO_LIBS)
+LDADD+=        ${STDLIBS}
+DPADD+=        ${STDLIBS}
+.endif
+
+.endif
diff --git a/gnu/usr.bin/cc80/Makefile.intcxx_lib b/gnu/usr.bin/cc80/Makefile.intcxx_lib
new file mode 100644 (file)
index 0000000..78d28b5
--- /dev/null
@@ -0,0 +1,228 @@
+# This does the same job as bsd.hostlib.mk except .c files are bult with c++
+# and it does not contain "afterdepend: all" which forces everything to be
+# built under the "depend" target
+
+.include <bsd.init.mk>
+
+.SUFFIXES:
+.SUFFIXES: .out .no .c .cc .cpp .cxx .C .y .l
+
+.c.no .cc.no .C.no .cpp.no .cxx.no:
+       ${NXCXX} ${_${.IMPSRC}_FLAGS} ${NXCXXFLAGS:N-std=*:N-flto} -c ${.IMPSRC} -o ${.TARGET}
+       @${NXLD} -o ${.TARGET}.tmp -x -r ${.TARGET}
+       @mv ${.TARGET}.tmp ${.TARGET}
+
+all: objwarn
+
+.if defined(LIB) && !empty(LIB) && !empty(SRCS)
+OBJS+=  ${SRCS:N*.h:N*.patch:R:S/$/.no/g}
+.endif
+
+.if defined(LIB) && !empty(LIB)
+_LIBS=         lib${LIB}.na
+
+lib${LIB}.na: ${OBJS} ${STATICOBJS}
+       @${ECHO} building native static ${LIB} library
+       rm -f ${.TARGET}
+       ${NXAR} cq ${.TARGET} `lorder ${OBJS} ${STATICOBJS} | tsort -q` ${ARADD}
+       ${NXRANLIB} ${.TARGET}
+.endif
+
+all: ${_LIBS}
+
+##
+#  HEAD: embedded equivalent bsd.dep.mk
+##
+
+CTAGS?=                gtags
+MKDEPCMD?=     CC=c++ mkdep
+DEPENDFILE?=   .depend
+GTAGSFLAGS?=   -o
+CTAGSFLAGS?=
+HTAGSFLAGS?=
+
+.if !target(tags) && defined(SRCS) && !defined(NOTAGS)
+tags: ${SRCS}
+. if ${CTAGS:T} == "ctags"
+       @${CTAGS} ${CTAGSFLAGS} -f /dev/stdout \
+           ${.ALLSRC:N*.h} | sed "s;${.CURDIR}/;;" > ${.TARGET}
+. elif ${CTAGS:T} == "gtags"
+       @cd ${.CURDIR} && ${CTAGS} ${GTAGSFLAGS} ${.OBJDIR}
+.  if defined(HTML)
+       @cd ${.CURDIR} && htags ${HTAGSFLAGS} -d ${.OBJDIR} ${.OBJDIR}
+.  endif
+. endif
+.endif
+
+.if defined(SRCS)
+
+CLEANFILES?=
+
+. for _LSRC in ${SRCS:M*.l:N*/*}
+.  for _LC in ${_LSRC:R}.c
+${_LC}: ${_LSRC}
+       ${LEX} -t ${LFLAGS} ${.ALLSRC} > ${.TARGET}
+SRCS:= ${SRCS:S/${_LSRC}/${_LC}/}
+CLEANFILES+= ${_LC}
+.  endfor
+. endfor
+
+. for _YSRC in ${SRCS:M*.y:N*/*}
+.  for _YC in ${_YSRC:R}.c
+SRCS:= ${SRCS:S/${_YSRC}/${_YC}/}
+CLEANFILES+= ${_YC}
+.   if !empty(YFLAGS:M-d) && !empty(SRCS:My.tab.h)
+.ORDER: ${_YC} y.tab.h
+${_YC} y.tab.h: ${_YSRC}
+       ${YACC} ${YFLAGS} ${.ALLSRC}
+       cp y.tab.c ${_YC}
+CLEANFILES+= y.tab.c y.tab.h
+.   elif !empty(YFLAGS:M-d)
+.     for _YH in ${_YC:S/.c/.h/}
+${_YH}: ${_YC}
+${_YC}: ${_YSRC}
+       ${YACC} ${YFLAGS} -o ${_YC} ${.ALLSRC}
+SRCS+= ${_YH}
+CLEANFILES+= ${_YH}
+.     endfor
+.   else
+${_YC}: ${_YSRC}
+       ${YACC} ${YFLAGS} -o ${_YC} ${.ALLSRC}
+.   endif
+.  endfor
+. endfor
+.endif
+
+.if !target(depend)
+. if defined(SRCS)
+depend: beforedepend _dependincs ${DEPENDFILE} afterdepend
+
+.NOPATH: ${DEPENDFILE}
+
+__FLAGS=
+__FLAGS_FILES= ${SRCS}
+.  for _FG in ${FLAGS_GROUPS}
+.   for _FFILE in ${${_FG}_FLAGS_FILES}
+__FLAGS_FILES:=        ${__FLAGS_FILES:N${_FFILE}}
+.   endfor
+.  endfor
+
+_DEPENDFILES=  ${FLAGS_GROUPS:S/^/.depend_/g}
+
+${DEPENDFILE}: ${_DEPENDFILES}
+
+_ALL_DEPENDS=${__FLAGS_FILES:N*.[sS]:N*.c:N*.cc:N*.C:N*.cpp:N*.cpp:N*.cxx:N*.m}
+
+.  for _FG in _ ${FLAGS_GROUPS}
+.depend${_FG:S/^/_/:N__}: ${${_FG}_FLAGS_FILES} ${_ALL_DEPENDS}
+       -rm -f ${.TARGET}
+       -> ${.TARGET}
+.   if ${${_FG}_FLAGS_FILES:M*.[sS]} != ""
+       ${MKDEPCMD} -f ${.TARGET} -a ${MKDEP} \
+           ${${_FG}_FLAGS} \
+           ${CFLAGS:M-nostdinc*} ${CFLAGS:M-[BID]*} \
+           ${CFLAGS:M-std=*} \
+           ${.ALLSRC:M*.[sS]}
+.   endif
+.   if ${${_FG}_FLAGS_FILES:M*.cc} != "" || \
+    ${${_FG}_FLAGS_FILES:M*.C} != "" || \
+    ${${_FG}_FLAGS_FILES:M*.c} != "" || \
+    ${${_FG}_FLAGS_FILES:M*.cpp} != "" || \
+    ${${_FG}_FLAGS_FILES:M*.cxx} != ""
+       ${MKDEPCMD} -f ${.TARGET} -a ${MKDEP} \
+           ${${_FG}_FLAGS} \
+           ${CXXFLAGS:M-nostdinc*} ${CXXFLAGS:M-[BID]*} \
+           ${.ALLSRC:M*.c} \
+           ${.ALLSRC:M*.cc} ${.ALLSRC:M*.C} ${.ALLSRC:M*.cpp} ${.ALLSRC:M*.cxx}
+.   endif
+.   if ${${_FG}_FLAGS_FILES:M*.m} != ""
+       ${MKDEPCMD} -f ${.TARGET} -a ${MKDEP} \
+           ${${_FG}_FLAGS} \
+           ${OBJCFLAGS:M-nostdinc*} ${OBJCFLAGS:M-[BID]*} \
+           ${OBJCFLAGS:M-Wno-import*} \
+           ${.ALLSRC:M*.m}
+.   endif
+.   if !empty(${_FG:M_}) && !empty(_DEPENDFILES)
+       cat ${_DEPENDFILES} >> ${.TARGET}
+.   endif
+.  endfor
+
+.  if target(_EXTRADEPEND)
+_EXTRADEPEND: .USE
+${DEPENDFILE}: _EXTRADEPEND
+.  endif
+
+. else
+depend: beforedepend _dependincs afterdepend
+. endif
+. if !target(beforedepend)
+beforedepend:
+. endif
+. if !target(afterdepend)
+afterdepend:
+. endif
+.endif
+
+.if !target(cleandepend)
+cleandepend:
+. if defined(SRCS)
+.  if ${CTAGS:T} == "ctags"
+       rm -f ${DEPENDFILE} ${_DEPENDFILES} tags
+.  elif ${CTAGS:T} == "gtags"
+       rm -f ${DEPENDFILE} ${_DEPENDFILES} GPATH GRTAGS GSYMS GTAGS
+.   if defined(HTML)
+       rm -rf HTML
+.   endif
+.  endif
+. endif
+.endif
+
+.if !target(checkdpadd) && (defined(DPADD) || defined(LDADD))
+checkdpadd:
+       @ldadd=`echo \`for lib in ${DPADD} ; do \
+               echo $$lib | sed 's;^/usr/lib/lib\(.*\)\.a;-l\1;' ; \
+       done \`` ; \
+       ldadd1=`echo ${LDADD}` ; \
+       if [ "$$ldadd" != "$$ldadd1" ] ; then \
+               echo ${.CURDIR} ; \
+               echo "DPADD -> $$ldadd" ; \
+               echo "LDADD -> $$ldadd1" ; \
+       fi
+.endif
+
+.if defined(INCS) && make(depend)
+_dependincs: buildincludes .WAIT installincludes
+.else
+_dependincs:
+.endif
+
+.ORDER: beforedepend _dependincs ${DEPENDFILE} afterdepend
+
+##
+#  TAIL: embedded equivalent bsd.dep.mk
+##
+
+.if !exists(${.OBJDIR}/${DEPENDFILE})
+. if defined(LIB) && !empty(LIB)
+${OBJS} ${STATICOBJS}: ${SRCS:M*.h}
+. endif
+.endif
+
+.if !target(clean)
+clean:
+. if defined(CLEANFILES) && !empty(CLEANFILES)
+       rm -f ${CLEANFILES}
+. endif
+. if defined(LIB) && !empty(LIB)
+       rm -f a.out ${OBJS} ${OBJS:S/$/.tmp/} ${STATICOBJS}
+. endif
+. if defined(_LIBS) && !empty(_LIBS)
+       rm -f ${_LIBS}
+. endif
+. if defined(CLEANDIRS) && !empty(CLEANDIRS)
+       rm -rf ${CLEANDIRS}
+. endif
+.endif
+
+.include <bsd.obj.mk>
+.include <bsd.sys.mk>
diff --git a/gnu/usr.bin/cc80/Makefile.langs b/gnu/usr.bin/cc80/Makefile.langs
new file mode 100644 (file)
index 0000000..66d8357
--- /dev/null
@@ -0,0 +1,218 @@
+.include "Makefile.inc"
+
+COMPVERSION=   gcc80
+
+lang_tree_files+=      ada/gcc-interface/ada-tree.def
+lang_tree_files+=      cp/cp-tree.def
+lang_tree_files+=      objc/objc-tree.def
+
+optionsfiles=          ${GCCDIR}/gcc/ada/gcc-interface/lang.opt
+optionsfiles+=         ${GCCDIR}/gcc/brig/lang.opt
+optionsfiles+=         ${GCCDIR}/gcc/fortran/lang.opt
+optionsfiles+=         ${GCCDIR}/gcc/go/lang.opt
+optionsfiles+=         ${GCCDIR}/gcc/lto/lang.opt
+optionsfiles+=         ${GCCDIR}/gcc/c-family/c.opt
+optionsfiles+=         ${GCCDIR}/gcc/common.opt
+optionsfiles+=         ${GCCDIR}/gcc/config/fused-madd.opt
+optionsfiles+=         ${GCCDIR}/gcc/config/i386/i386.opt
+optionsfiles+=         ${GCCDIR}/gcc/config/rpath.opt
+optionsfiles+=         ${GCCDIR}/gcc/config/dragonfly.opt
+
+header_name=           config.h system.h coretypes.h options.h tm.h
+header_name_save=      config.h system.h coretypes.h tm.h
+
+LANG_SPECS_FILES=      cp/lang-specs.h \
+                       lto/lang-specs.h
+
+# Object files for gcc driver.
+GCC_SRCS = gcc.c gcc-main.c ggc-none.c
+EXTRA_GCC_SRCS = driver-i386.c
+
+# this is directly from GCC's Makefile, beware evil
+# gtype-desc.h will generate wrong if language order changed
+GTFILES = $(CPP_ID_DATA_H) $(srcdir)/input.h $(srcdir)/coretypes.h \
+  $(host_xm_file_list) \
+  $(tm_file_list) $(HASHTAB_H) $(SPLAY_TREE_H) $(srcdir)/bitmap.h \
+  $(srcdir)/wide-int.h $(srcdir)/alias.h \
+  $(srcdir)/coverage.c  $(srcdir)/rtl.h \
+  $(srcdir)/optabs.h $(srcdir)/tree.h $(srcdir)/tree-core.h \
+  $(srcdir)/libfuncs.h $(SYMTAB_H) \
+  $(srcdir)/real.h $(srcdir)/function.h $(srcdir)/insn-addr.h $(srcdir)/hwint.h \
+  $(srcdir)/fixed-value.h \
+  $(srcdir)/output.h $(srcdir)/cfgloop.h $(srcdir)/cfg.h $(srcdir)/profile-count.h \
+  $(srcdir)/cselib.h $(srcdir)/basic-block.h  $(srcdir)/ipa-ref.h $(srcdir)/cgraph.h \
+  $(srcdir)/reload.h $(srcdir)/caller-save.c $(srcdir)/symtab.c \
+  $(srcdir)/alias.c $(srcdir)/bitmap.c $(srcdir)/cselib.c $(srcdir)/cgraph.c \
+  $(srcdir)/ipa-prop.c $(srcdir)/ipa-cp.c $(srcdir)/ipa-utils.h \
+  $(srcdir)/dbxout.c \
+  $(srcdir)/signop.h \
+  $(srcdir)/dwarf2out.h \
+  $(srcdir)/dwarf2asm.c \
+  $(srcdir)/dwarf2cfi.c \
+  $(srcdir)/dwarf2out.c \
+  $(srcdir)/tree-vect-generic.c \
+  $(srcdir)/dojump.c $(srcdir)/emit-rtl.h \
+  $(srcdir)/emit-rtl.c $(srcdir)/except.h $(srcdir)/explow.c $(srcdir)/expr.c \
+  $(srcdir)/expr.h \
+  $(srcdir)/function.c $(srcdir)/except.c \
+  $(srcdir)/ggc-tests.c \
+  $(srcdir)/gcse.c $(srcdir)/godump.c \
+  $(srcdir)/lists.c $(srcdir)/optabs-libfuncs.c \
+  $(srcdir)/profile.c $(srcdir)/mcf.c \
+  $(srcdir)/reg-stack.c $(srcdir)/cfgrtl.c \
+  $(srcdir)/stor-layout.c \
+  $(srcdir)/stringpool.c $(srcdir)/tree.c $(srcdir)/varasm.c \
+  $(srcdir)/gimple.h \
+  $(srcdir)/gimple-ssa.h \
+  $(srcdir)/tree-chkp.c \
+  $(srcdir)/tree-ssanames.c $(srcdir)/tree-eh.c $(srcdir)/tree-ssa-address.c \
+  $(srcdir)/tree-cfg.c $(srcdir)/tree-ssa-loop-ivopts.c \
+  $(srcdir)/tree-dfa.c \
+  $(srcdir)/tree-iterator.c $(srcdir)/gimple-expr.c \
+  $(srcdir)/tree-chrec.h \
+  $(srcdir)/tree-scalar-evolution.c \
+  $(srcdir)/tree-ssa-operands.h \
+  $(srcdir)/tree-profile.c $(srcdir)/tree-nested.c \
+  $(srcdir)/omp-offload.h \
+  $(srcdir)/omp-offload.c \
+  $(srcdir)/omp-expand.c \
+  $(srcdir)/omp-low.c \
+  $(srcdir)/targhooks.c $(out_file) $(srcdir)/passes.c $(srcdir)/cgraphunit.c \
+  $(srcdir)/cgraphclones.c \
+  $(srcdir)/tree-phinodes.c \
+  $(srcdir)/tree-ssa-alias.h \
+  $(srcdir)/tree-ssanames.h \
+  $(srcdir)/tree-vrp.h \
+  $(srcdir)/ipa-prop.h \
+  $(srcdir)/trans-mem.c \
+  $(srcdir)/lto-streamer.h \
+  $(srcdir)/target-globals.h \
+  $(srcdir)/ipa-predicate.h \
+  $(srcdir)/ipa-fnsummary.h \
+  $(srcdir)/vtable-verify.c \
+  $(srcdir)/asan.c \
+  $(srcdir)/ubsan.c \
+  $(srcdir)/tsan.c \
+  $(srcdir)/sanopt.c \
+  $(srcdir)/sancov.c \
+  $(srcdir)/ipa-devirt.c \
+  $(srcdir)/internal-fn.h \
+  $(srcdir)/hsa-common.c \
+  $(srcdir)/calls.c
+
+# C
+GTFILES_C+= \
+  [c] \
+  $(srcdir)/c/c-lang.c \
+  $(srcdir)/c/c-tree.h \
+  $(srcdir)/c/c-decl.c \
+  $(srcdir)/c-family/c-common.c \
+  $(srcdir)/c-family/c-common.h \
+  $(srcdir)/c-family/c-objc.h \
+  $(srcdir)/c-family/c-cppbuiltin.c \
+  $(srcdir)/c-family/c-pragma.h \
+  $(srcdir)/c-family/c-pragma.c \
+  $(srcdir)/c-family/c-format.c \
+  $(srcdir)/c/c-objc-common.c \
+  $(srcdir)/c/c-parser.h \
+  $(srcdir)/c/c-parser.c \
+  $(srcdir)/c/c-lang.h
+
+GTFILES_CPP= \
+  [cp] \
+  $(srcdir)/cp/name-lookup.h \
+  $(srcdir)/cp/cp-tree.h \
+  $(srcdir)/c-family/c-common.h \
+  $(srcdir)/c-family/c-objc.h \
+  $(srcdir)/c-family/c-pragma.h \
+  $(srcdir)/cp/decl.h \
+  $(srcdir)/cp/parser.h \
+  $(srcdir)/c-family/c-common.c \
+  $(srcdir)/c-family/c-format.c \
+  $(srcdir)/c-family/c-lex.c \
+  $(srcdir)/c-family/c-pragma.c \
+  $(srcdir)/cp/call.c \
+  $(srcdir)/cp/class.c \
+  $(srcdir)/cp/constexpr.c \
+  $(srcdir)/cp/cp-gimplify.c \
+  $(srcdir)/cp/cp-lang.c \
+  $(srcdir)/cp/cp-objcp-common.c \
+  $(srcdir)/cp/decl.c \
+  $(srcdir)/cp/decl2.c \
+  $(srcdir)/cp/except.c \
+  $(srcdir)/cp/friend.c \
+  $(srcdir)/cp/init.c \
+  $(srcdir)/cp/lambda.c \
+  $(srcdir)/cp/lex.c \
+  $(srcdir)/cp/mangle.c \
+  $(srcdir)/cp/method.c \
+  $(srcdir)/cp/name-lookup.c \
+  $(srcdir)/cp/parser.c \
+  $(srcdir)/cp/pt.c \
+  $(srcdir)/cp/repo.c \
+  $(srcdir)/cp/rtti.c \
+  $(srcdir)/cp/semantics.c \
+  $(srcdir)/cp/tree.c \
+  $(srcdir)/cp/typeck2.c \
+  $(srcdir)/cp/vtable-class-hierarchy.c
+
+GTFILES_LTO= \
+  [lto] \
+  $(srcdir)/lto/lto-tree.h \
+  $(srcdir)/lto/lto-lang.c \
+  $(srcdir)/lto/lto.c \
+  $(srcdir)/lto/lto.h
+
+# Careful! Order matters, should be sorted.
+GTFILES+= ${GTFILES_C} ${GTFILES_CPP} ${GTFILES_LTO}
+
+# verbatim from gcc/Makefile
+# Language-specific object files shared by all C-family front ends.
+C_COMMON_OBJS= c-family/c-common.o c-family/c-cppbuiltin.o c-family/c-dump.o \
+  c-family/c-format.o c-family/c-gimplify.o c-family/c-indentation.o \
+  c-family/c-lex.o c-family/c-omp.o c-family/c-opts.o c-family/c-pch.o \
+  c-family/c-ppoutput.o c-family/c-pragma.o c-family/c-pretty-print.o \
+  c-family/c-semantics.o c-family/c-ada-spec.o \
+  c-family/c-ubsan.o \
+  c-family/c-attribs.o c-family/c-warn.o
+
+C_COMMON_SRCS= known-headers.cc c-spellcheck.cc
+
+C_TARGET_OBJS=i386-c.o default-c.o
+
+CXX_TARGET_OBJS=i386-c.o default-c.o
+
+# verbatim from c/Make-lang.in
+# Language-specific object files for C
+C_AND_OBJC_OBJS = attribs.o c/c-errors.o c/c-decl.o c/c-typeck.o \
+  c/c-convert.o c/c-aux-info.o c/c-objc-common.o c/c-parser.o \
+  c/c-fold.o c/gimple-parser.o \
+  $(C_COMMON_OBJS) $(C_TARGET_OBJS)
+
+# Language-specific object files for C.
+C_OBJS = c/c-lang.o c-family/stub-objc.o $(C_AND_OBJC_OBJS)
+
+# Shared with C front end:
+CXX_C_OBJS = attribs.o incpath.o \
+       $(C_COMMON_OBJS) $(CXX_TARGET_OBJS)
+
+# verbatim from cp/Make-lang.in
+# Language-specific object files for c++.
+CXX_OBJS = \
+       cp/call.o cp/class.o cp/constexpr.o \
+       cp/cp-gimplify.o \
+       cp/cp-objcp-common.o cp/cp-ubsan.o \
+       cp/cvt.o cp/cxx-pretty-print.o \
+       cp/decl.o cp/decl2.o cp/dump.o \
+       cp/error.o cp/except.o cp/expr.o \
+       cp/friend.o cp/init.o \
+       cp/lambda.o cp/lex.o \
+       cp/mangle.o cp/method.o \
+       cp/name-lookup.o cp/optimize.o \
+       cp/parser.o cp/pt.o cp/ptree.o \
+       cp/repo.o cp/rtti.o \
+       cp/search.o cp/semantics.o \
+       cp/tree.o cp/typeck.o cp/typeck2.o \
+       cp/vtable-class-hierarchy.o $(CXX_C_OBJS)
+
+CXX_COMMON_SRCS= ${C_COMMON_SRCS} constraint.cc logic.cc
diff --git a/gnu/usr.bin/cc80/Makefile.tgt b/gnu/usr.bin/cc80/Makefile.tgt
new file mode 100644 (file)
index 0000000..9f85eea
--- /dev/null
@@ -0,0 +1,62 @@
+TARGET_ARCH?=  ${MACHINE_ARCH}
+
+version=       ${GCCCOMPLETEVER}
+target_machine=        ${TARGET_ARCH}-pc-dragonflybsd
+
+# try to remove next two lines
+BYTESLONG=     8
+HWI_TYPE=      long
+
+# from gcc/Makefile
+srcdir= ${GCCDIR}/gcc
+
+host_xm_file_list=     ${STOPDIR}/cc_prep/auto-host.h
+host_xm_file_list+=    ${GCCDIR}/include/ansidecl.h
+HASHTAB_H=             ${GCCDIR}/include/hashtab.h
+SPLAY_TREE_H=          ${GCCDIR}/include/splay-tree.h
+OBSTACK_H=             ${GCCDIR}/include/obstack.h
+SYMTAB_H=              ${GCCDIR}/libcpp/include/symtab.h $(OBSTACK_H)
+CPP_ID_DATA_H=         ${GCCDIR}/libcpp/include/line-map.h \
+                       ${GCCDIR}/libcpp/include/cpplib.h \
+                       ${GCCDIR}/libcpp/include/cpp-id-data.h
+
+md_file=               ${GCCDIR}/gcc/config/i386/i386.md
+out_file=              $(srcdir)/config/i386/i386.c
+
+EXTRA_GCC_SRCS=                driver-i386.c
+GTFILES_SRCDIR=                $(srcdir)
+
+# from gcc/config/i386/t-i386
+PASSES_EXTRA+= $(srcdir)/config/i386/i386-passes.def
+
+# This is ordered to avoid build warnings/errors
+
+TARGET_INC=    options.h
+TARGET_INC+=   insn-constants.h
+TARGET_INC+=   config/vxworks-dummy.h
+TARGET_INC+=   config/i386/biarch64.h
+TARGET_INC+=   config/i386/i386.h
+TARGET_INC+=   config/i386/unix.h
+TARGET_INC+=   config/i386/att.h
+TARGET_INC+=   config/dbxelf.h
+TARGET_INC+=   config/elfos.h
+TARGET_INC+=   config/dragonfly.h
+TARGET_INC+=   config/dragonfly-stdint.h
+TARGET_INC+=   config/i386/x86-64.h
+TARGET_INC+=   config/i386/dragonfly.h
+TARGET_INC+=   config/initfini-array.h
+TARGET_INC+=   defaults.h
+TARGET_INC+=   dragonfly-native.h
+
+#
+# Use TARGET_INC as a template and build a list of target specific
+# include files for gengtype to scan
+#
+.for H in ${TARGET_INC}
+. for D in ${GCCDIR}/gcc/config ${GCCDIR}/gcc \
+       ${STOPDIR}/cc_prep/config ${STOPDIR}/cc_prep ${OTOPDIR}/cc_prep
+.  if exists($D/$H) && empty(tm_file_list:M*/$H)
+tm_file_list+= $D/$H
+.  endif
+. endfor
+.endfor
diff --git a/gnu/usr.bin/cc80/Makefile.version b/gnu/usr.bin/cc80/Makefile.version
new file mode 100644 (file)
index 0000000..fb8f67c
--- /dev/null
@@ -0,0 +1,10 @@
+# GCC version scheme change burned us a bit.
+
+GCCCOMPLETEVER=        8.1
+GCCMAJORVER=   8
+GCCRELEASE=    Release # choices are "Snapshot" or "Release"
+GCCDATESTAMP=  2018-05-02
+GCCSHORTDATE=  ${GCCDATESTAMP:S/-//g}
+GCCPOINTVER=   8.0
+GCCSHORTVER=   80
+MANPAGEVER=    80
diff --git a/gnu/usr.bin/cc80/backends/Makefile b/gnu/usr.bin/cc80/backends/Makefile
new file mode 100644 (file)
index 0000000..befbef1
--- /dev/null
@@ -0,0 +1,6 @@
+SUBDIR_ORDERED=        guts programs
+
+SUBDIR+=       guts
+SUBDIR+=       programs
+
+.include <bsd.subdir.mk>
diff --git a/gnu/usr.bin/cc80/backends/guts/Makefile b/gnu/usr.bin/cc80/backends/guts/Makefile
new file mode 100644 (file)
index 0000000..9f7f3f7
--- /dev/null
@@ -0,0 +1,8 @@
+SUBDIR_ORDERED=
+
+SUBDIR+=       guts-common
+SUBDIR+=       guts-c
+SUBDIR+=       guts-cxx
+SUBDIR+=       guts-target
+
+.include <bsd.subdir.mk>
diff --git a/gnu/usr.bin/cc80/backends/guts/guts-c/Makefile b/gnu/usr.bin/cc80/backends/guts/guts-c/Makefile
new file mode 100644 (file)
index 0000000..fe00af3
--- /dev/null
@@ -0,0 +1,28 @@
+# Despite the .c extension, these files and headers must be built by c++
+
+GCC_NO_LIBS=   yes
+TOP_PREFIX=    ../../
+
+.include "../../../Makefile.inc"
+.include "../../../Makefile.langs"
+
+LIB=           guts-c
+INTERNALLIB=
+
+.for object in ${C_AND_OBJC_OBJS}
+. if ! ${C_COMMON_OBJS:M${object}}
+.  if ! ${C_TARGET_OBJS:M${object}}
+GUTS_CO+=      ${object:T}
+.  endif
+. endif
+.endfor
+
+OBJS=          ${GUTS_CO}
+
+# hack to force c++ compiler to compile *.c files to create library
+.for cfile in ${GUTS_CO}
+${cfile}: ${cfile:.o=.c}
+       ${CXX} ${STATIC_CXXFLAGS} ${CXXFLAGS} -c ${.IMPSRC} -o ${.TARGET}
+.endfor
+
+.include <bsd.lib.mk>
diff --git a/gnu/usr.bin/cc80/backends/guts/guts-common/Makefile b/gnu/usr.bin/cc80/backends/guts/guts-common/Makefile
new file mode 100644 (file)
index 0000000..d263822
--- /dev/null
@@ -0,0 +1,22 @@
+# Despite the .c extension, these files and headers must be built by c++
+
+GCC_NO_LIBS=   yes
+TOP_PREFIX=    ../../
+
+.include "../../../Makefile.inc"
+.include "../../../Makefile.langs"
+
+LIB=           guts-common
+INTERNALLIB=
+
+GUTS_COMMONO=  ${C_COMMON_OBJS:T} main.o
+OBJS=          ${GUTS_COMMONO}
+SRCS=          ${C_COMMON_SRCS}
+
+# hack to force c++ compiler to compile *.c files to create library
+.for cfile in ${GUTS_COMMONO}
+${cfile}: ${cfile:.o=.c}
+       ${CXX} ${STATIC_CXXFLAGS} ${CXXFLAGS} -c ${.IMPSRC} -o ${.TARGET}
+.endfor
+
+.include <bsd.lib.mk>
diff --git a/gnu/usr.bin/cc80/backends/guts/guts-cxx/Makefile b/gnu/usr.bin/cc80/backends/guts/guts-cxx/Makefile
new file mode 100644 (file)
index 0000000..15d63c5
--- /dev/null
@@ -0,0 +1,31 @@
+# Despite the .c extension, these files and headers must be built by c++
+
+GCC_NO_LIBS=   yes
+GCC_LANG_DIR=  gcc/cp
+TOP_PREFIX=    ../../
+
+.include "../../../Makefile.inc"
+.include "../../../Makefile.langs"
+
+LIB=           guts-cxx
+INTERNALLIB=
+
+# note C_TARGET_OBJS == CXX_TARGET_OBJS
+.for object in ${CXX_OBJS}
+. if ! ${C_COMMON_OBJS:M${object}}
+.  if ! ${C_TARGET_OBJS:M${object}}
+GUTS_CXXO+=    ${object:T}
+.  endif
+. endif
+.endfor
+
+OBJS=          ${GUTS_CXXO}
+SRCS=          ${CXX_COMMON_SRCS}
+
+# hack to force c++ compiler to compile *.c files to create library
+.for cfile in ${GUTS_CXXO}
+${cfile}: ${cfile:.o=.c}
+       ${CXX} ${STATIC_CXXFLAGS} ${CXXFLAGS} -c ${.IMPSRC} -o ${.TARGET}
+.endfor
+
+.include <bsd.lib.mk>
diff --git a/gnu/usr.bin/cc80/backends/guts/guts-target/Makefile b/gnu/usr.bin/cc80/backends/guts/guts-target/Makefile
new file mode 100644 (file)
index 0000000..01522e2
--- /dev/null
@@ -0,0 +1,22 @@
+# Despite the .c extension, these files and headers must be built by c++
+
+GCC_NO_LIBS=   yes
+TOP_PREFIX=    ../../
+
+.include "../../../Makefile.inc"
+.include "../../../Makefile.langs"
+
+LIB=           guts-target
+INTERNALLIB=
+
+GUTS_TARGETO=  ${C_TARGET_OBJS:T}
+
+OBJS=          ${GUTS_TARGETO}
+
+# hack to force c++ compiler to compile *.c files to create library
+.for cfile in ${GUTS_TARGETO}
+${cfile}: ${cfile:.o=.c}
+       ${CXX} ${STATIC_CXXFLAGS} ${CXXFLAGS} -c ${.IMPSRC} -o ${.TARGET}
+.endfor
+
+.include <bsd.lib.mk>
diff --git a/gnu/usr.bin/cc80/backends/programs/Makefile b/gnu/usr.bin/cc80/backends/programs/Makefile
new file mode 100644 (file)
index 0000000..a3296fd
--- /dev/null
@@ -0,0 +1,11 @@
+# These backends can be built in parallel
+
+SUBDIR_ORDERED=                # maximum parallelism
+
+SUBDIR+=       cc1
+SUBDIR+=       cc1plus
+SUBDIR+=       collect2
+SUBDIR+=       lto1
+SUBDIR+=       lto-wrapper
+
+.include <bsd.subdir.mk>
diff --git a/gnu/usr.bin/cc80/backends/programs/cc1/Makefile b/gnu/usr.bin/cc80/backends/programs/cc1/Makefile
new file mode 100644 (file)
index 0000000..4f88cf4
--- /dev/null
@@ -0,0 +1,46 @@
+# If we defined SRCS, the mkdep fails because it evaluates files with .c
+# extension with cc instead of c++ (go figure).  To avoid that, we need
+# to define OBJS directly
+
+TOP_PREFIX=    ../../
+
+.include "../../../Makefile.inc"
+.include "../../../Makefile.langs"
+
+PROG_CXX=      cc1
+NOMAN=         yes
+NOSHARED?=     yes
+
+C_OBJS=                c/c-lang.o c/stub-objc.o
+CXXXX_OBJS=    ${C_OBJS:T}
+OBJS=          ${CXXXX_OBJS} cc1-checksum.o
+SRCS=
+
+GUTS=          ../../guts/guts-c/libguts-c.a \
+               ../../guts/guts-common/libguts-common.a \
+               ../../guts/guts-target/libguts-target.a
+BACKEND=       ${LIBBACKEND} ${LIBCOMMONTARG} ${LIBCOMMON} \
+               ${LIBCPP} ${LIBDECNUMBER}
+LIBS=          ${LIBCOMMON} ${LIBCPP} ${LIBBACKTRACE} ${LIBIBERTY} \
+               ${LIBDECNUMBER}
+LDADD=         ${GUTS} ${BACKEND} ${LIBS} ${BACKENDLIBS}
+DPADD=         ${GUTS} ${BACKEND} ${LIBS} ${BACKENDLIBS}
+
+checksum-options:
+       echo "${LD} ${LDFLAGS}" > ${.TARGET}
+
+cc1-checksum.c: ${CXXXX_OBJS} ${GUTS} ${BACKEND} checksum-options
+       ${TOOLDIR}/genchecksum.nx ${CXXXX_OBJS} ${GUTS} ${BACKEND} \
+           checksum-options > ${.TARGET}
+
+# hack to force c++ compiler to compile *.c files to create library
+.for ofile in ${OBJS}
+${ofile}: ${ofile:.o=.c}
+       ${CXX} ${STATIC_CXXFLAGS} ${CXXFLAGS} -c ${.IMPSRC} -o ${.TARGET}
+.endfor
+
+cc1-checksum.o: cc1-checksum.c
+
+CLEANFILES=    cc1-checksum.* checksum-options
+
+.include <bsd.prog.mk>
diff --git a/gnu/usr.bin/cc80/backends/programs/cc1plus/Makefile b/gnu/usr.bin/cc80/backends/programs/cc1plus/Makefile
new file mode 100644 (file)
index 0000000..df26606
--- /dev/null
@@ -0,0 +1,45 @@
+# If we defined SRCS, the mkdep fails because it evaluates files with .c
+# extension with cc instead of c++ (go figure).  To avoid that, we need
+# to define OBJS directly
+
+GCC_LANG_DIR=  gcc/cp
+TOP_PREFIX=    ../../
+
+.include "../../../Makefile.inc"
+.include "../../../Makefile.langs"
+
+PROG_CXX=      cc1plus
+NOMAN=         yes
+NOSHARED?=     yes
+
+CXX_OBJS=      cp/cp-lang.o cp/stub-objc.o
+CXXXX_OBJS=    ${CXX_OBJS:T}
+OBJS=          ${CXXXX_OBJS} cc1plus-checksum.o
+SRCS=
+
+GUTS=          ../../guts/guts-cxx/libguts-cxx.a \
+               ../../guts/guts-common/libguts-common.a \
+               ../../guts/guts-target/libguts-target.a
+BACKEND=       ${LIBBACKEND} ${LIBCOMMONTARG} ${LIBCOMMON} \
+               ${LIBCPP} ${LIBDECNUMBER}
+LIBS=          ${LIBCOMMON} ${LIBCPP} ${LIBBACKTRACE} ${LIBIBERTY} \
+               ${LIBDECNUMBER}
+LDADD=         ${GUTS} ${BACKEND} ${LIBS} ${BACKENDLIBS}
+DPADD=         ${GUTS} ${BACKEND} ${LIBS} ${BACKENDLIBS}
+
+checksum-options:
+       echo "${LD} ${LDFLAGS}" > ${.TARGET}
+
+cc1plus-checksum.c: ${CXXXX_OBJS} ${GUTS} ${BACKEND} checksum-options
+       ${TOOLDIR}/genchecksum.nx ${CXXXX_OBJS} ${GUTS} ${BACKEND} \
+           checksum-options > ${.TARGET}
+
+# hack to force c++ compiler to compile *.c files to create library
+.for ofile in ${OBJS}
+${ofile}: ${ofile:.o=.c}
+       ${CXX} ${STATIC_CXXFLAGS} ${CXXFLAGS} -c ${.IMPSRC} -o ${.TARGET}
+.endfor
+
+CLEANFILES=    cc1plus-checksum.* checksum-options
+
+.include <bsd.prog.mk>
diff --git a/gnu/usr.bin/cc80/backends/programs/collect2/Makefile b/gnu/usr.bin/cc80/backends/programs/collect2/Makefile
new file mode 100644 (file)
index 0000000..5bbb903
--- /dev/null
@@ -0,0 +1,34 @@
+# If we defined SRCS, the mkdep fails because it evaluates files with .c
+# extension with cc instead of c++ (go figure).  To avoid that, we need
+# to define OBJS directly
+
+GCC_LANG_DIR=  gcc
+TOP_PREFIX=    ../../
+
+.include "../../../Makefile.inc"
+.include "../../../Makefile.langs"
+
+PROG_CXX=      collect2
+NOMAN=         yes
+
+###CFLAGS+=    -static-libstdc++
+
+# verbatim from gcc/lto/Make-lang.in
+COLLECT_OBJS=  collect2.o collect2-aix.o tlink.o vec.o ggc-none.o \
+               collect-utils.o file-find.o hash-table.o
+OBJS=          ${COLLECT_OBJS:T}
+SRCS=
+
+LIBS=          ${LIBCOMMON} ${LIBCPP} ${LIBBACKTRACE} ${LIBIBERTY} \
+               ${LIBDECNUMBER}
+LDADD=         ${LIBS}
+DPADD=         ${LIBS}
+
+
+# hack to force c++ compiler to compile *.c files to create library
+.for ofile in ${OBJS}
+${ofile}: ${ofile:.o=.c}
+       ${CXX} ${STATIC_CXXFLAGS} ${CXXFLAGS} -c ${.IMPSRC} -o ${.TARGET}
+.endfor
+
+.include <bsd.prog.mk>
diff --git a/gnu/usr.bin/cc80/backends/programs/lto-wrapper/Makefile b/gnu/usr.bin/cc80/backends/programs/lto-wrapper/Makefile
new file mode 100644 (file)
index 0000000..0eab15b
--- /dev/null
@@ -0,0 +1,31 @@
+# If we defined SRCS, the mkdep fails because it evaluates files with .c
+# extension with cc instead of c++ (go figure).  To avoid that, we need
+# to define OBJS directly
+
+TOP_PREFIX=    ../../
+
+.include "../../../Makefile.inc"
+
+PROG_CXX=      lto-wrapper
+NOMAN=         yes
+
+SRCS=
+OBJS=          lto-wrapper.o \
+               collect-utils.o \
+               ggc-none.o
+
+GUTS=          ../../guts/guts-common/libguts-common.a \
+               ../../guts/guts-target/libguts-target.a
+LIBS=          ${LIBCOMMONTARG} ${LIBCOMMON} ${LIBCPP} \
+               ${LIBBACKTRACE} ${LIBIBERTY} ${LIBDECNUMBER}
+LDADD=         ${LIBS}
+DPADD=         ${LIBS}
+
+
+# hack to force c++ compiler to compile *.c files to create library
+.for ofile in ${OBJS}
+${ofile}: ${ofile:.o=.c}
+       ${CXX} ${STATIC_CXXFLAGS} ${CXXFLAGS} -c ${.IMPSRC} -o ${.TARGET}
+.endfor
+
+.include <bsd.prog.mk>
diff --git a/gnu/usr.bin/cc80/backends/programs/lto1/Makefile b/gnu/usr.bin/cc80/backends/programs/lto1/Makefile
new file mode 100644 (file)
index 0000000..8da5418
--- /dev/null
@@ -0,0 +1,34 @@
+# If we defined SRCS, the mkdep fails because it evaluates files with .c
+# extension with cc instead of c++ (go figure).  To avoid that, we need
+# to define OBJS directly
+
+GCC_LANG_DIR=  gcc/lto
+TOP_PREFIX=    ../../
+
+.include "../../../Makefile.inc"
+.include "../../../Makefile.langs"
+
+PROG_CXX=      lto1
+NOMAN=         yes
+
+# verbatim from gcc/lto/Make-lang.in
+LTO_OBJS=      lto/lto-lang.o lto/lto.o lto/lto-object.o attribs.o \
+               lto/lto-partition.o lto/lto-symtab.o
+OBJS=          ${LTO_OBJS:T} main.o
+SRCS=
+
+BACKEND=       ${LIBBACKEND} ${LIBCOMMONTARG} ${LIBCOMMON} \
+               ${LIBCPP} ${LIBDECNUMBER}
+LIBS=          ${LIBCOMMON} ${LIBCPP} ${LIBBACKTRACE} ${LIBIBERTY} \
+               ${LIBDECNUMBER}
+LDADD=         ${BACKEND} ${BACKENDLIBS} ${LIBS}
+DPADD=         ${BACKEND} ${BACKENDLIBS} ${LIBS}
+
+
+# hack to force c++ compiler to compile *.c files to create library
+.for ofile in ${OBJS}
+${ofile}: ${ofile:.o=.c}
+       ${CXX} ${STATIC_CXXFLAGS} ${CXXFLAGS} -c ${.IMPSRC} -o ${.TARGET}
+.endfor
+
+.include <bsd.prog.mk>
diff --git a/gnu/usr.bin/cc80/cc_prep/Makefile b/gnu/usr.bin/cc80/cc_prep/Makefile
new file mode 100644 (file)
index 0000000..95e5eba
--- /dev/null
@@ -0,0 +1,157 @@
+.include "../Makefile.inc"
+.include "../Makefile.langs"
+
+CONTRIBDIR=    ${GCCDIR}/gcc
+
+LANGUAGES=     c c++ LTO
+
+version.c: ${CONTRIBDIR}/version.c Makefile ../Makefile.inc
+       rm -f ${.TARGET}
+       echo '#define BASEVER "${GCCCOMPLETEVER}"' >> ${.TARGET}
+       echo '#define DATESTAMP ""' >> ${.TARGET}
+       echo '#define DEVPHASE ""' >> ${.TARGET}
+       echo '#define REVISION " [DragonFly] ${GCCRELEASE}/${GCCDATESTAMP}"' >> ${.TARGET}
+       echo '#define PKGVERSION ""' >> ${.TARGET}
+       echo '#define BUGURL "<http://bugs.dragonflybsd.org>"' >> ${.TARGET}
+       cat ${.ALLSRC:M*.c} >> ${.TARGET}
+
+bversion.h:
+       echo "#define BUILDING_GCC_MAJOR `echo $(GCCCOMPLETEVER) | sed -e 's/^\([0-9]*\).*$$/\1/'`" > ${.TARGET}
+       echo "#define BUILDING_GCC_MINOR `echo $(GCCCOMPLETEVER) | sed -e 's/^[0-9]*\.\([0-9]*\).*$$/\1/'`" >> ${.TARGET}
+       echo "#define BUILDING_GCC_PATCHLEVEL 1" >> ${.TARGET}
+       echo "#define BUILDING_GCC_VERSION (BUILDING_GCC_MAJOR * 1000 + BUILDING_GCC_MINOR)" >> ${.TARGET}
+
+plugin-version.h:
+       echo '#include "configargs.h"' > ${.TARGET}
+       echo "#define GCCPLUGIN_VERSION_MAJOR   `echo $(GCCCOMPLETEVER) | sed -e 's/^\([0-9]*\).*$$/\1/'`" >> ${.TARGET}
+       echo "#define GCCPLUGIN_VERSION_MINOR   `echo $(GCCCOMPLETEVER) | sed -e 's/^[0-9]*\.\([0-9]*\).*$$/\1/'`" >> ${.TARGET}
+       echo "#define GCCPLUGIN_VERSION_PATCHLEVEL   1" >> ${.TARGET}
+       echo "#define GCCPLUGIN_VERSION  (GCCPLUGIN_VERSION_MAJOR*1000 + GCCPLUGIN_VERSION_MINOR)" >> ${.TARGET}
+       echo 'static char basever[] = "${GCCCOMPLETEVER}";' >> ${.TARGET}
+       echo "static char datestamp[] = \"`echo ${GCCDATESTAMP} | sed -e 's/\.//g'`\";" >> ${.TARGET}
+       echo 'static char devphase[] = "release";' >> ${.TARGET}
+       echo 'static char revision[] = "";' >> ${.TARGET}
+       echo 'static struct plugin_gcc_version gcc_version = {basever,' >> ${.TARGET}
+       echo '   datestamp, devphase, revision, configuration_arguments};' >> ${.TARGET}
+
+configargs.h: Makefile
+       echo 'static const char configuration_arguments[] = '                   > ${.TARGET}
+       echo '  "DragonFly/${TARGET_ARCH} system compiler (${LANGUAGES})";'     >> ${.TARGET}
+       echo 'static const char thread_model[] = "posix";'                      >> ${.TARGET}
+       echo 'static const struct {'                                            >> ${.TARGET}
+       echo '  const char *name, *value;'                                      >> ${.TARGET}
+       echo '} configure_default_options[] ='                                  >> ${.TARGET}
+       echo '  { { "cpu", "generic" }, { "arch", "x86-64" } };'                >> ${.TARGET}
+
+bconfig.h:
+       echo '#ifndef GCC_BCONFIG_H'            >  ${.TARGET}
+       echo '#define GCC_BCONFIG_H'            >> ${.TARGET}
+       echo '#include "auto-host.h"'           >> ${.TARGET}
+       echo '#ifdef IN_GCC'                    >> ${.TARGET}
+       echo '# include "ansidecl.h"'           >> ${.TARGET}
+       echo '#endif'                           >> ${.TARGET}
+       echo '#endif /* GCC_BCONFIG_H */'       >> ${.TARGET}
+
+tm.h:
+       echo '#ifndef GCC_TM_H'                 >  ${.TARGET}
+       echo '#define GCC_TM_H'                 >> ${.TARGET}
+       echo '#ifndef LIBC_GLIBC'               >> ${.TARGET}
+       echo '# define LIBC_GLIBC 1'            >> ${.TARGET}
+       echo '#endif'                           >> ${.TARGET}
+       echo '#ifndef LIBC_UCLIBC'              >> ${.TARGET}
+       echo '# define LIBC_UCLIBC 2'           >> ${.TARGET}
+       echo '#endif'                           >> ${.TARGET}
+       echo '#ifndef LIBC_BIONIC'              >> ${.TARGET}
+       echo '# define LIBC_BIONIC 3'           >> ${.TARGET}
+       echo '#endif'                           >> ${.TARGET}
+       echo '#ifndef LIBC_MUSL'                >> ${.TARGET}
+       echo '# define LIBC_MUSL 4'             >> ${.TARGET}
+       echo '#endif'                           >> ${.TARGET}
+.if defined(REALLY_NOSHARED)
+       echo '#undef HAVE_LTO_PLUGIN'           >> ${.TARGET}
+       echo '#define HAVE_LTO_PLUGIN 0'        >> ${.TARGET}
+.endif
+       echo '#ifdef IN_GCC'                    >> ${.TARGET}
+.for H in ${TARGET_INC:Ndefaults.h}
+       echo '# include "$H"'                   >> ${.TARGET}
+.endfor
+       echo '#endif'                           >> ${.TARGET}
+       echo '#if defined IN_GCC && !defined GENERATOR_FILE && !defined USED_FOR_TARGET' >> ${.TARGET}
+       echo '# include "insn-flags.h"'         >> ${.TARGET}
+       echo '#endif'                           >> ${.TARGET}
+       echo '#if defined IN_GCC && !defined GENERATOR_FILE' >> ${.TARGET}
+       echo '# include "insn-modes.h"'         >> ${.TARGET}
+       echo '#endif'                           >> ${.TARGET}
+       echo '# include "defaults.h"'           >> ${.TARGET}
+       echo '#endif /* GCC_TM_H */'            >> ${.TARGET}
+
+tm_p.h:
+       echo '#ifndef GCC_TM_P_H'                       >  ${.TARGET}
+       echo '#define GCC_TM_P_H'                       >> ${.TARGET}
+       echo '#ifdef IN_GCC'                            >> ${.TARGET}
+       echo '# include "config/i386/i386-protos.h"'    >> ${.TARGET}
+       echo '# include "tm-preds.h"'                   >> ${.TARGET}
+       echo '#endif'                                   >> ${.TARGET}
+       echo '#endif /* GCC_TM_P_H */'                  >> ${.TARGET}
+
+specs.h:
+.for F in ${LANG_SPECS_FILES}
+       echo "#include \"${F}\"" >> ${.TARGET}
+.endfor
+
+all-tree.def:
+       echo '#include "tree.def"'              >> ${.TARGET}
+       echo 'END_OF_BASE_TREE_CODES'           >> ${.TARGET}
+       echo '#include "c-family/c-common.def"' >> ${.TARGET}
+       echo '#include "ada/gcc-interface/ada-tree.def"' >> ${.TARGET}
+       echo '#include "cp/cp-tree.def"'        >> ${.TARGET}
+       echo '#include "objc/objc-tree.def"'    >> ${.TARGET}
+
+optionlist: ${optionsfiles} Makefile
+       /usr/bin/awk -f ${GCCDIR}/gcc/opt-gather.awk \
+               ${optionsfiles} > ${.TARGET}
+
+options.c: optionlist
+       /usr/bin/awk -f ${GCCDIR}/gcc/opt-functions.awk \
+                    -f ${GCCDIR}/gcc/opt-read.awk \
+                    -f ${GCCDIR}/gcc/optc-gen.awk \
+                    -v header_name="${header_name}" \
+               < optionlist > ${.TARGET}
+
+options-save.c: optionlist
+       /usr/bin/awk -f ${GCCDIR}/gcc/opt-functions.awk \
+                    -f ${GCCDIR}/gcc/opt-read.awk \
+                    -f ${GCCDIR}/gcc/optc-save-gen.awk \
+                    -v header_name="${header_name_save}" \
+               < optionlist > ${.TARGET}
+
+options.h: optionlist
+       /usr/bin/awk -f ${GCCDIR}/gcc/opt-functions.awk \
+                    -f ${GCCDIR}/gcc/opt-read.awk \
+                    -f ${GCCDIR}/gcc/opth-gen.awk \
+               < optionlist > ${.TARGET}
+
+i386-builtin-types.inc:
+       /usr/bin/awk -f ${GCCDIR}/gcc/config/i386/i386-builtin-types.awk \
+               ${GCCDIR}/gcc/config/i386/i386-builtin-types.def > ${.TARGET}
+
+# head part of gengtype-lex.c
+gengtype-lex.head:
+       echo '#ifdef HOST_GENERATOR_FILE' > ${.TARGET}
+       echo '#include "config.h"'       >> ${.TARGET}
+       echo '#else'                     >> ${.TARGET}
+       echo '#include "bconfig.h"'      >> ${.TARGET}
+       echo '#endif'                    >> ${.TARGET}
+
+CLEANFILES+=   version.c configargs.h bconfig.h tm.h tm_p.h
+CLEANFILES+=   options.c options-save.c options.h optionlist
+CLEANFILES+=   specs.h all-tree.def bversion.h plugin-version.h
+
+# keep this order!
+afterdepend: version.c configargs.h bconfig.h tm.h tm_p.h options.h options.c
+afterdepend: options-save.c specs.h all-tree.def bversion.h plugin-version.h
+
+CLEANFILES+=   i386-builtin-types.inc gengtype-lex.head
+afterdepend:   i386-builtin-types.inc gengtype-lex.head
+
+.include <bsd.prog.mk>
diff --git a/gnu/usr.bin/cc80/cc_tools/Makefile b/gnu/usr.bin/cc80/cc_tools/Makefile
new file mode 100644 (file)
index 0000000..2a70176
--- /dev/null
@@ -0,0 +1,6 @@
+# Both libraries must be built before "tools"
+# Just don't define SUBDIR_ORDERED and it will build serially, correctly
+
+SUBDIR=  libcpp libiberty tools
+
+.include <bsd.obj.mk>
diff --git a/gnu/usr.bin/cc80/cc_tools/Makefile.inc b/gnu/usr.bin/cc80/cc_tools/Makefile.inc
new file mode 100644 (file)
index 0000000..09f7f04
--- /dev/null
@@ -0,0 +1,11 @@
+# Portions of our build system need this file early, make sure it isn't
+# included twice (because e.g. bsd.init.mk would also include it)
+
+.if !target(__<cctools80.Makefile.inc>__)
+__<cctools80.Makefile.inc>__:
+
+TOP_PREFIX=    ../
+GCC_NO_LIBS=   # yes
+
+.include "../Makefile.inc"
+.endif
diff --git a/gnu/usr.bin/cc80/cc_tools/libcpp/Makefile b/gnu/usr.bin/cc80/cc_tools/libcpp/Makefile
new file mode 100644 (file)
index 0000000..0cd8b9c
--- /dev/null
@@ -0,0 +1,43 @@
+# Despite the source files ending in ".c", the c++ compiler needs to build
+# everything.  We have to roll our own targets to properly support this.
+
+GCC_NO_PATH=   yes
+LOCAL_CONFIG=  yes
+.include "../Makefile.inc"
+.PATH: ${GCCDIR}/libcpp
+
+LIB=           cpp
+
+CFLAGS+=       -I${.CURDIR}
+CFLAGS+=       -Duchar="unsigned char"
+CXXFLAGS+=     ${NOEXCEPTION_FLAGS}
+GOOD_CONFIG=   ${.CURDIR}/../../support-libs/libcpp/config.h
+
+SRCS=          charset.c \
+               directives-only.c \
+               directives.c \
+               errors.c \
+               expr.c \
+               files.c \
+               identifiers.c \
+               init.c \
+               lex.c \
+               line-map.c \
+               macro.c \
+               mkdeps.c \
+               pch.c \
+               symtab.c \
+               traditional.c
+
+localedir.h:
+       touch $@
+
+config.h: ${GOOD_CONFIG}
+       cp ${.ALLSRC} .
+
+beforedepend: localedir.h config.h
+afterdepend: libcpp.na
+
+CLEANFILES=    localedir.h config.h
+
+.include "../../Makefile.intcxx_lib"
diff --git a/gnu/usr.bin/cc80/cc_tools/libiberty/Makefile b/gnu/usr.bin/cc80/cc_tools/libiberty/Makefile
new file mode 100644 (file)
index 0000000..0271f7f
--- /dev/null
@@ -0,0 +1,22 @@
+LIB=           iberty
+INTERNALLIB=   YES
+CFLAGS+=       -I${.CURDIR}
+GOOD_CONFIG=   ${.CURDIR}/../../support-libs/libiberty/config.h
+CLEANFILES=    config.h
+
+SRCS=  concat.c cp-demangle.c cp-demint.c cplus-dem.c dyn-string.c \
+       fibheap.c fopen_unlocked.c getpwd.c getruntime.c hashtab.c hex.c \
+       lbasename.c lrealpath.c make-relative-prefix.c make-temp-file.c \
+       md5.c obstack.c partition.c pex-unix.c physmem.c safe-ctype.c \
+       splay-tree.c xexit.c xmalloc.c xmemdup.c xstrdup.c xstrerror.c \
+       filename_cmp.c regex.c xstrndup.c xasprintf.c xvasprintf.c \
+       vprintf-support.c
+
+config.h: ${GOOD_CONFIG}
+       cp ${.ALLSRC} .
+
+beforedepend: config.h
+afterdepend: libiberty.na
+
+.include <bsd.hostlib.mk>
+.PATH: ${GCCDIR}/libiberty
diff --git a/gnu/usr.bin/cc80/cc_tools/tools/Makefile b/gnu/usr.bin/cc80/cc_tools/tools/Makefile
new file mode 100644 (file)
index 0000000..2bd1f93
--- /dev/null
@@ -0,0 +1,229 @@
+# Despite the source files ending in ".c", the c++ compiler needs to build
+# everything.  We have to roll our own targets to properly support this.
+
+.include "../Makefile.inc"
+.include "../../Makefile.langs"
+
+NXCXXFLAGS+=           -DGENERATOR_FILE -I${.OBJDIR}
+BUILD_LIBS=            ../libiberty/libiberty.na
+BUILD_LIBS_genmatch=   ../libcpp/libcpp.na
+LEX_HEAD=              ../../cc_prep/gengtype-lex.head
+NXLD_genautomata=      -lm
+
+MIC=           sh ${GCCDIR}/move-if-change
+
+BUILD_RTL=     rtl.no \
+               read-rtl.no \
+               ggc-none.no \
+               vec.no \
+               min-insn-modes.no \
+               gensupport.no \
+               print-rtl.no \
+               hash-table.no
+BUILD_MD=      read-md.no
+BUILD_ERRORS=  errors.no
+BUILD_GTYPE=   gengtype-lex.no \
+               gengtype-parse.no \
+               gengtype-state.no \
+               version.no
+
+genprogrtl=    attr attr-common attrtab automata codes conditions config emit \
+               extract flags opinit output peep preds recog mddump target-def
+genprogmd=     $(genprogrtl) mddeps constants enums
+genprogerr=    $(genprogmd) genrtl modes gtype hooks cfn-macros match
+genprog=       $(genprogerr) check checksum condmd
+
+NO_RTL=                ${genprogrtl:S/^/gen/g:S/$/.no/g}
+NO_MD=         ${genprogmd:S/^/gen/g:S/$/.no/g}
+NO_PROGERR=    ${genprogerr:S/^/gen/g:S/$/.no/g}
+NO_PROG=       ${genprog:S/^/gen/g:S/$/.no/g}
+NO_LIST=       ${BUILD_RTL} ${BUILD_MD} ${BUILD_ERRORS} \
+               ${BUILD_GTYPE} ${NO_PROG}
+
+# All these RTL objects needs common headers (tbc)
+${BUILD_RTL}: tm.h insn-modes.h insn-modes-inline.h gtype-desc.h insn-constants.h
+# All these programs use the RTL reader ($(BUILD_RTL)).
+${NO_RTL}: ${BUILD_RTL}
+# All these programs use the MD reader
+${NO_MD}: ${BUILD_MD}
+# All these programs need to report errors.
+${NO_PROGERR}: ${BUILD_ERRORS}
+
+.for f in ${genprogrtl}
+gen${f}.nx: ${BUILD_RTL}
+.endfor
+
+.for f in ${genprogmd}
+gen${f}.nx: ${BUILD_MD}
+.endfor
+
+.for f in ${genprogerr}
+gen${f}.nx: ${BUILD_ERRORS}
+.endfor
+
+.for f in ${genprog}
+GENTOOLS+= gen${f}.nx
+.endfor
+
+# For some reason, gcov-iov is an oddball
+GENTOOLS+=     gcov-iov.nx
+NO_LIST+=      gcov-iov.no
+
+gengtype.nx: ${BUILD_GTYPE}
+genmatch.nx: hash-table.no vec.no
+gencfn-macros.nx: hash-table.no vec.no ggc-none.no
+
+.for f in ${GENTOOLS}
+$f: ${f:.nx=.no} ${BUILD_LIBS_${f:R}} ${BUILD_LIBS}
+       ${NXCXX} ${NXCXXFLAGS:N-flto} ${NXLDFLAGS} ${.ALLSRC:M*.n[oa]} \
+               ${NXLD_${f:R}} -o ${.TARGET}
+.endfor
+
+.for nofile in ${NO_LIST}
+${nofile}: ${nofile:.no=.c}
+       ${NXCXX} ${NXCXXFLAGS:N-flto} -c ${.IMPSRC} -o ${.TARGET}
+.endfor
+
+gencheck.no: tm.h insn-constants.h
+gencondmd.no: insn-constants.h
+read-md.no: insn-modes.h insn-modes-inline.h
+gencfn-macros.no: insn-modes.h gtype-desc.h
+
+MD_DEPS=       ${GCCDIR}/gcc/common.md ${md_file}
+MD_DEPS_PLUS=  ${MD_DEPS} insn-conditions.md
+
+_MIC: .USE
+       ${MIC} ${.TARGET}.tmp ${.TARGET}
+_PL: .USE
+       ${.OBJDIR}/${.ALLSRC:M*.nx} > ${.TARGET}.tmp
+       ${MIC} ${.TARGET}.tmp ${.TARGET}
+_MD: .USE
+       ${.OBJDIR}/${.ALLSRC:M*.nx} ${MD_DEPS} > ${.TARGET}.tmp
+       ${MIC} ${.TARGET}.tmp ${.TARGET}
+
+simple_rtl_generated_h=        insn-attr.h insn-attr-common.h insn-codes.h \
+                       insn-config.h insn-flags.h insn-target-def.h
+simple_rtl_generated_c=        insn-automata.c insn-emit.c insn-extract.c \
+                       insn-output.c insn-peep.c insn-recog.c
+
+simple_generated_h=    $(simple_rtl_generated_h) insn-constants.h
+simple_generated_c=    $(simple_rtl_generated_c) insn-enums.c insn-preds.c
+
+.for f in ${simple_rtl_generated_h} ${simple_rtl_generated_c}
+. for generator in gen${f:R:S/^insn-//}.nx
+$f: ${generator} ${MD_DEPS_PLUS} _MIC
+       ${.OBJDIR}/${generator} ${MD_DEPS_PLUS} > ${.TARGET}.tmp
+. endfor
+.endfor
+
+insn-modes.h: genmodes.nx _MIC
+       ${.OBJDIR}/${.ALLSRC:M*.nx} -h > ${.TARGET}.tmp
+insn-modes-inline.h: genmodes.nx _MIC
+       ${.OBJDIR}/${.ALLSRC:M*.nx} -i > ${.TARGET}.tmp
+gtyp-input.list: _MIC
+       rm -f ${.TARGET}.tmp
+       for f in ${GTFILES}; do \
+               echo "$$f" >> ${.TARGET}.tmp; \
+       done
+gtype.state: gengtype.nx gtyp-input.list ${GTFILES:N[*]} _MIC
+       ${.OBJDIR}/${.ALLSRC:M*.nx} -S ${GCCDIR}/gcc -I ${.ALLSRC:M*.list} \
+         -w gtype.state.tmp
+gtype-desc.c gtype-desc.h: gengtype.nx gtype.state
+       ${.OBJDIR}/${.ALLSRC:M*.nx} -r gtype.state
+genrtl.h: gengenrtl.nx _MIC
+       ${.OBJDIR}/${.ALLSRC:M*.nx} > ${.TARGET}.tmp
+min-insn-modes.c: genmodes.nx _MIC
+       ${.OBJDIR}/${.ALLSRC:M*.nx} -m > ${.TARGET}.tmp
+tm-preds.h: genpreds.nx ${MD_DEPS} _MIC
+       ${.OBJDIR}/${.ALLSRC:M*.nx} -h ${MD_DEPS} > ${.TARGET}.tmp
+tm-constrs.h: genpreds.nx ${MD_DEPS} _MIC
+       ${.OBJDIR}/${.ALLSRC:M*.nx} -c ${MD_DEPS} > ${.TARGET}.tmp
+case-cfn-macros.h: gencfn-macros.nx _MIC
+       ${.OBJDIR}/${.ALLSRC:M*.nx} -c > ${.TARGET}.tmp
+cfn-operators.pd: gencfn-macros.nx _MIC
+       ${.OBJDIR}/${.ALLSRC:M*.nx} -o > ${.TARGET}.tmp
+insn-constants.h:   genconstants.nx ${MD_DEPS} _MD
+insn-enums.c:       genenums.nx ${MD_DEPS} _MD
+insn-preds.c:       genpreds.nx ${MD_DEPS} _MD
+gencondmd.c:        genconditions.nx ${MD_DEPS} tm-preds.h tm-constrs.h _MD
+insn-conditions.md: gencondmd.nx _PL
+insn-modes.c:       genmodes.nx _PL
+tree-check.h:       gencheck.nx _PL
+gcov-iov.h: gcov-iov.nx BASE-VER _MIC
+       ${.OBJDIR}/${.ALLSRC:M*.nx} '${GCCCOMPLETEVER}' '' > ${.TARGET}.tmp
+target-hooks-def.h: genhooks.nx _MIC
+       ${.OBJDIR}/${.ALLSRC:M*.nx} "Target Hook" > ${.TARGET}.tmp
+common/common-target-hooks-def.h: genhooks.nx _MIC
+       ${.OBJDIR}/${.ALLSRC:M*.nx} "Common Target Hook" > ${.TARGET}.tmp
+c-family/c-target-hooks-def.h: genhooks.nx _MIC
+       ${.OBJDIR}/${.ALLSRC:M*.nx} "C Target Hook" > ${.TARGET}.tmp
+stamp-opinit: genopinit.nx ${MD_DEPS_PLUS}
+       ${.OBJDIR}/${.ALLSRC:M*.nx} ${.ALLSRC:M*.md} \
+               -hinsn-opinit.h.tmp -cinsn-opinit.c.tmp
+       ${MIC} insn-opinit.h.tmp insn-opinit.h
+       ${MIC} insn-opinit.c.tmp insn-opinit.c
+       touch stamp-opinit
+stamp-tabs: genattrtab.nx ${MD_DEPS_PLUS}
+       ${.OBJDIR}/${.ALLSRC:M*.nx} ${.ALLSRC:M*.md} \
+               -Ainsn-attrtab.c.tmp -Dinsn-dfatab.c.tmp \
+               -Linsn-latencytab.c.tmp
+       ${MIC} insn-attrtab.c.tmp insn-attrtab.c
+       ${MIC} insn-dfatab.c.tmp insn-dfatab.c
+       ${MIC} insn-latencytab.c.tmp insn-latencytab.c
+       touch stamp-tabs
+gimple-match.c: genmatch.nx match.pd cfn-operators.pd gimple-match-head.c _MIC
+       ${.OBJDIR}/${.ALLSRC:M*.nx} --gimple ${GCCDIR}/gcc/match.pd \
+       > ${.TARGET}.tmp
+generic-match.c: genmatch.nx match.pd cfn-operators.pd generic-match-head.c _MIC
+       ${.OBJDIR}/${.ALLSRC:M*.nx} --generic ${GCCDIR}/gcc/match.pd \
+       > ${.TARGET}.tmp
+genmatch.c hash-table.c: gtype-desc.h
+
+pass-instances.def: ${GCCDIR}/gcc/passes.def $(PASSES_EXTRA)
+       /usr/bin/awk -f ${GCCDIR}/gcc/gen-pass-instances.awk \
+               ${.ALLSRC} > ${.TARGET}
+
+# XXX plain cpp(1) safe? also /usr/bin/awk?
+params.list: ${GCCDIR}/gcc/params-list.h ${GCCDIR}/gcc/params.def
+       cpp ${GCCDIR}/gcc/params-list.h | sed 's/^#.*//;/^$$/d' \
+       > tmp-params.list
+       ${MIC} tmp-params.list params.list
+
+params.options: ${GCCDIR}/gcc/params-options.h ${GCCDIR}/gcc/params.def
+       cpp ${GCCDIR}/gcc/params-options.h | sed 's/^#.*//;/^$$/d' \
+       > tmp-params.options
+       ${MIC} tmp-params.options params.options
+
+# This is gold, don't ask.
+gengtype-lex.c: gengtype-lex.l ${LEX_HEAD}
+       ${LEX} ${LFLAGS} -o${.TARGET}.tmp ${.IMPSRC}
+       cat ${LEX_HEAD} ${.TARGET}.tmp > ${.TARGET}
+
+GENFILES=      ${simple_generated_h} ${simple_generated_c} \
+               tree-check.h genrtl.h insn-modes.h insn-modes-inline.h \
+               tm-preds.h tm-constrs.h \
+               gtype-desc.c gtype-desc.h gcov-iov.h target-hooks-def.h \
+               common/common-target-hooks-def.h pass-instances.def \
+               c-family/c-target-hooks-def.h min-insn-modes.c \
+               insn-modes.c insn-constants.h insn-conditions.md \
+               gencondmd.c gimple-match.c generic-match.c \
+               case-cfn-macros.h cfn-operators.pd \
+               params.list params.options \
+               stamp-opinit stamp-tabs
+
+CLEANFILES+=   ${GENTOOLS} ${NO_LIST}
+CLEANFILES+=   gengtype-lex.c gengtype-lex.c.tmp
+CLEANFILES+=   ${GENFILES} gtyp-input.list gtype.state
+CLEANFILES+=   gt-* gtype-*.h pass-instances.def
+CLEANFILES+=   insn-opinit.[ch] insn-*tab.c
+CLEANFILES+=   params.list params.options tmp-params.list tmp-params.options
+CLEANDIRS+=    common c-family
+
+dossier:
+       mkdir -p common c-family
+
+genfiles: dossier ${GENTOOLS} ${GENFILES}
+depend all: genfiles
+
+.include <bsd.obj.mk>
+.include <bsd.dep.mk>
diff --git a/gnu/usr.bin/cc80/drivers/Makefile b/gnu/usr.bin/cc80/drivers/Makefile
new file mode 100644 (file)
index 0000000..40817c6
--- /dev/null
@@ -0,0 +1,10 @@
+# These drivers can be built in parallel
+
+SUBDIR_ORDERED=                # maximum parallelism
+
+SUBDIR=                c++
+SUBDIR+=       cc
+SUBDIR+=       cpp
+SUBDIR+=       gcov
+
+.include <bsd.subdir.mk>
diff --git a/gnu/usr.bin/cc80/drivers/Makefile.inc b/gnu/usr.bin/cc80/drivers/Makefile.inc
new file mode 100644 (file)
index 0000000..6a5c1fd
--- /dev/null
@@ -0,0 +1,7 @@
+.if !target(__<driver80.Makefile.inc>__)
+__<driver80.Makefile.inc>__:
+
+TOP_PREFIX=    ../
+
+.include "../Makefile.inc"
+.endif
diff --git a/gnu/usr.bin/cc80/drivers/c++/Makefile b/gnu/usr.bin/cc80/drivers/c++/Makefile
new file mode 100644 (file)
index 0000000..4892a09
--- /dev/null
@@ -0,0 +1,24 @@
+GCC_LANG_DIR=  gcc/cp
+.include "../Makefile.inc"
+.include "../../Makefile.langs"
+.include "../../../Makefile.cco"
+
+PROG_CXX=      c++
+LINKS=         ${BINDIR}/c++ ${BINDIR}/g++
+# Enable this SGI compat once gcc80 becomes default (DPorts anchor)
+#LINKS+=               ${BINDIR}/c++ ${BINDIR}/CC
+MAN=           # man pages installed by cc (MLINK)
+
+SRCS=          ${GCC_SRCS} g++spec.c ${EXTRA_GCC_SRCS}
+
+CFLAGS+=       -DCONFIGURE_SPECS="\"\"" \
+               -DACCEL_DIR_SUFFIX="\"\"" \
+               -DDEFAULT_REAL_TARGET_MACHINE="\"${target_machine}\""
+
+# hack to force c++ compiler to compile *.c files to create program
+.for cfile in ${SRCS}
+${cfile:.c=.o}: ${cfile}
+       ${CXX} ${STATIC_CXXFLAGS} ${CXXFLAGS} -c ${.IMPSRC} -o ${.TARGET}
+.endfor
+
+.include <bsd.prog.mk>
diff --git a/gnu/usr.bin/cc80/drivers/cc/Makefile b/gnu/usr.bin/cc80/drivers/cc/Makefile
new file mode 100644 (file)
index 0000000..f592915
--- /dev/null
@@ -0,0 +1,40 @@
+.include "../Makefile.inc"
+.include "../../Makefile.langs"
+.include "../../../Makefile.cco"
+
+PROG_CXX=      cc
+LINKS=         ${BINDIR}/cc ${BINDIR}/gcc
+MFILE=         gcc${MANPAGEVER}.1
+MAN=           ${MFILE}
+
+SRCS=          ${GCC_SRCS} gccspec.c ${EXTRA_GCC_SRCS}
+
+CFLAGS+=       -DCONFIGURE_SPECS="\"\"" \
+               -DACCEL_DIR_SUFFIX="\"\"" \
+               -DDEFAULT_REAL_TARGET_MACHINE="\"${target_machine}\""
+
+${MFILE}: gcc.1
+       cp ${.ALLSRC} ${.TARGET}
+
+CLEANFILES+=   ${MFILE}
+
+MLINKS+= ${MFILE} cc${MANPAGEVER}.1
+MLINKS+= ${MFILE} CC${MANPAGEVER}.1
+MLINKS+= ${MFILE} c++${MANPAGEVER}.1
+MLINKS+= ${MFILE} g++${MANPAGEVER}.1
+
+.if defined(IS_PRIMARY)
+MLINKS+= ${MFILE} cc.1
+MLINKS+= ${MFILE} CC.1
+MLINKS+= ${MFILE} gcc.1
+MLINKS+= ${MFILE} c++.1
+MLINKS+= ${MFILE} g++.1
+.endif
+
+# hack to force c++ compiler to compile *.c files to create program
+.for cfile in ${SRCS}
+${cfile:.c=.o}: ${cfile}
+       ${CXX} ${STATIC_CXXFLAGS} ${CXXFLAGS} -c ${.IMPSRC} -o ${.TARGET}
+.endfor
+
+.include <bsd.prog.mk>
diff --git a/gnu/usr.bin/cc80/drivers/cpp/Makefile b/gnu/usr.bin/cc80/drivers/cpp/Makefile
new file mode 100644 (file)
index 0000000..97e34f7
--- /dev/null
@@ -0,0 +1,33 @@
+.include "../Makefile.inc"
+.include "../../Makefile.langs"
+.include "../../../Makefile.cco"
+
+PROG_CXX=      cpp
+MFILE=         cpp${MANPAGEVER}.1
+MAN=           ${MFILE}
+
+SRCS=          ${GCC_SRCS} cppspec.c ${EXTRA_GCC_SRCS}
+
+CFLAGS+=       -DCONFIGURE_SPECS="\"\"" \
+               -DACCEL_DIR_SUFFIX="\"\"" \
+               -DDEFAULT_REAL_TARGET_MACHINE="\"${target_machine}\""
+
+DOC_Release=   cpp.1 #${GCCDIR}/gcc/doc/cpp.1
+DOC_Snapshot=  cpp.1
+
+${MFILE}: ${DOC_${GCCRELEASE}}
+       cp ${.ALLSRC} ${.TARGET}
+
+CLEANFILES+=   ${MFILE}
+
+.if defined(IS_PRIMARY)
+MLINKS+= ${MFILE} cpp.1
+.endif
+
+# hack to force c++ compiler to compile *.c files to create program
+.for cfile in ${SRCS}
+${cfile:.c=.o}: ${cfile}
+       ${CXX} ${STATIC_CXXFLAGS} ${CXXFLAGS} -c ${.IMPSRC} -o ${.TARGET}
+.endfor
+
+.include <bsd.prog.mk>
diff --git a/gnu/usr.bin/cc80/drivers/gcov/Makefile b/gnu/usr.bin/cc80/drivers/gcov/Makefile
new file mode 100644 (file)
index 0000000..25ab4ea
--- /dev/null
@@ -0,0 +1,29 @@
+.include "../Makefile.inc"
+.include "../Makefile.langs"
+.include "../../Makefile.cco"
+
+PROG_CXX=      gcov
+MFILE=         gcov${MANPAGEVER}.1
+MAN=           ${MFILE}
+
+SRCS=          gcov.c
+
+DOC_Release=   gcov.1  #${GCCDIR}/gcc/doc/gcov.1
+DOC_Snapshot=  gcov.1
+
+${MFILE}: ${DOC_${GCCRELEASE}}
+       cp ${.ALLSRC} ${.TARGET}
+
+CLEANFILES+=   ${MFILE}
+
+.if defined(IS_PRIMARY)
+MLINKS+= ${MFILE} gcov.1
+.endif
+
+# hack to force c++ compiler to compile *.c files to create program
+.for cfile in ${SRCS}
+${cfile:.c=.o}: ${cfile}
+       ${CXX} ${STATIC_CXXFLAGS} ${CXXFLAGS} -c ${.IMPSRC} -o ${.TARGET}
+.endfor
+
+.include <bsd.prog.mk>
diff --git a/gnu/usr.bin/cc80/libbackend/Makefile b/gnu/usr.bin/cc80/libbackend/Makefile
new file mode 100644 (file)
index 0000000..8d279ef
--- /dev/null
@@ -0,0 +1,439 @@
+GCC_NO_LIBS=   yes
+LOCAL_CONFIG=  yes
+.include "../Makefile.inc"
+.PATH: $(srcdir)/config/i386
+
+CFLAGS+=       -DTARGET_NAME=\"${target_machine}\"
+# needed to compile hsa/brig bits
+CXXFLAGS+=     ${NOEXCEPTION_FLAGS}
+
+LIB=           backend
+INTERNALLIB=   YES
+
+# almost verbatim from Makefile, objects from cc files have been pulled out
+# because the .o=.c is wrong for them
+host_hook_obj=host-default.o
+out_object_file=i386.o
+EXTRA_OBJS=    x86-tune-sched.o x86-tune-sched-bd.o \
+               x86-tune-sched-atom.o x86-tune-sched-core.o
+BACKEND_OBJS= \
+       gimple-match.o \
+       generic-match.o \
+       insn-attrtab.o \
+       insn-automata.o \
+       insn-dfatab.o \
+       insn-emit.o \
+       insn-extract.o \
+       insn-latencytab.o \
+       insn-modes.o \
+       insn-opinit.o \
+       insn-output.o \
+       insn-peep.o \
+       insn-preds.o \
+       insn-recog.o \
+       insn-enums.o \
+       ggc-page.o \
+       alias.o \
+       alloc-pool.o \
+       auto-inc-dec.o \
+       auto-profile.o \
+       bb-reorder.o \
+       bitmap.o \
+       bt-load.o \
+       builtins.o \
+       caller-save.o \
+       calls.o \
+       ccmp.o \
+       cfg.o \
+       cfganal.o \
+       cfgbuild.o \
+       cfgcleanup.o \
+       cfgexpand.o \
+       cfghooks.o \
+       cfgloop.o \
+       cfgloopanal.o \
+       cfgloopmanip.o \
+       cfgrtl.o \
+       symtab.o \
+       cgraph.o \
+       cgraphbuild.o \
+       cgraphunit.o \
+       cgraphclones.o \
+       combine.o \
+       combine-stack-adj.o \
+       compare-elim.o \
+       context.o \
+       convert.o \
+       coverage.o \
+       cppbuiltin.o \
+       cppdefault.o \
+       cprop.o \
+       cse.o \
+       cselib.o \
+       data-streamer.o \
+       data-streamer-in.o \
+       data-streamer-out.o \
+       dbxout.o \
+       dbgcnt.o \
+       dce.o \
+       ddg.o \
+       debug.o \
+       df-core.o \
+       df-problems.o \
+       df-scan.o \
+       dfp.o \
+       dojump.o \
+       dominance.o \
+       domwalk.o \
+       double-int.o \
+       dse.o \
+       dumpfile.o \
+       dwarf2asm.o \
+       dwarf2cfi.o \
+       dwarf2out.o \
+       early-remat.o \
+       emit-rtl.o \
+       et-forest.o \
+       except.o \
+       explow.o \
+       expmed.o \
+       expr.o \
+       fibonacci_heap.o \
+       file-prefix-map.o \
+       final.o \
+       fixed-value.o \
+       fold-const.o \
+       fold-const-call.o \
+       function.o \
+       function-tests.o \
+       fwprop.o \
+       gcc-rich-location.o \
+       gcse.o \
+       gcse-common.o \
+       ggc-common.o \
+       ggc-tests.o \
+       gimple.o \
+       gimple-builder.o \
+       gimple-expr.o \
+       gimple-iterator.o \
+       gimple-fold.o \
+       gimple-laddress.o \
+       gimple-loop-jam.o \
+       gimple-low.o \
+       gimple-pretty-print.o \
+       gimple-ssa-backprop.o \
+       gimple-ssa-evrp.o \
+       gimple-ssa-evrp-analyze.o \
+       gimple-ssa-isolate-paths.o \
+       gimple-ssa-nonnull-compare.o \
+       gimple-ssa-split-paths.o \
+       gimple-ssa-store-merging.o \
+       gimple-ssa-strength-reduction.o \
+       gimple-ssa-sprintf.o \
+       gimple-ssa-warn-alloca.o \
+       gimple-ssa-warn-restrict.o \
+       gimple-streamer-in.o \
+       gimple-streamer-out.o \
+       gimple-walk.o \
+       gimplify.o \
+       gimplify-me.o \
+       godump.o \
+       graph.o \
+       graphds.o \
+       graphite.o \
+       gtype-desc.o \
+       haifa-sched.o \
+       hash-map-tests.o \
+       hash-set-tests.o \
+       hsa-common.o \
+       hsa-gen.o \
+       hsa-regalloc.o \
+       hsa-brig.o \
+       hsa-dump.o \
+       hw-doloop.o \
+       hwint.o \
+       ifcvt.o \
+       ree.o \
+       inchash.o \
+       incpath.o \
+       init-regs.o \
+       internal-fn.o \
+       ipa-chkp.o \
+       ipa-cp.o \
+       ipa-devirt.o \
+       ipa-fnsummary.o \
+       ipa-polymorphic-call.o \
+       ipa-split.o \
+       ipa-inline.o \
+       ipa-comdats.o \
+       ipa-visibility.o \
+       ipa-inline-analysis.o \
+       ipa-inline-transform.o \
+       ipa-predicate.o \
+       ipa-profile.o \
+       ipa-prop.o \
+       ipa-param-manipulation.o \
+       ipa-pure-const.o \
+       ipa-icf.o \
+       ipa-icf-gimple.o \
+       ipa-reference.o \
+       ipa-hsa.o \
+       ipa-ref.o \
+       ipa-utils.o \
+       ipa.o \
+       ira.o \
+       ira-build.o \
+       ira-costs.o \
+       ira-conflicts.o \
+       ira-color.o \
+       ira-emit.o \
+       ira-lives.o \
+       jump.o \
+       langhooks.o \
+       lcm.o \
+       lists.o \
+       loop-doloop.o \
+       loop-init.o \
+       loop-invariant.o \
+       loop-iv.o \
+       loop-unroll.o \
+       lower-subreg.o \
+       lra.o \
+       lra-assigns.o \
+       lra-coalesce.o \
+       lra-constraints.o \
+       lra-eliminations.o \
+       lra-lives.o \
+       lra-remat.o \
+       lra-spills.o \
+       lto-cgraph.o \
+       lto-streamer.o \
+       lto-streamer-in.o \
+       lto-streamer-out.o \
+       lto-section-in.o \
+       lto-section-out.o \
+       lto-opts.o \
+       lto-compress.o \
+       mcf.o \
+       mode-switching.o \
+       modulo-sched.o \
+       multiple_target.o \
+       omp-offload.o \
+       omp-expand.o \
+       omp-general.o \
+       omp-grid.o \
+       omp-low.o \
+       omp-simd-clone.o \
+       optabs.o \
+       optabs-libfuncs.o \
+       optabs-query.o \
+       optabs-tree.o \
+       options-save.o \
+       opts-global.o \
+       passes.o \
+       plugin.o \
+       postreload-gcse.o \
+       postreload.o \
+       predict.o \
+       print-rtl.o \
+       print-rtl-function.o \
+       print-tree.o \
+       profile.o \
+       profile-count.o \
+       read-md.o \
+       read-rtl.o \
+       read-rtl-function.o \
+       real.o \
+       realmpfr.o \
+       recog.o \
+       reg-stack.o \
+       regcprop.o \
+       reginfo.o \
+       regrename.o \
+       regstat.o \
+       reload.o \
+       reload1.o \
+       reorg.o \
+       resource.o \
+       rtl-chkp.o \
+       rtl-error.o \
+       rtl-tests.o \
+       rtl.o \
+       rtlhash.o \
+       rtlanal.o \
+       rtlhooks.o \
+       rtx-vector-builder.o \
+       run-rtl-passes.o \
+       sched-deps.o \
+       sched-ebb.o \
+       sched-rgn.o \
+       sel-sched-ir.o \
+       sel-sched-dump.o \
+       sel-sched.o \
+       selftest-rtl.o \
+       selftest-run-tests.o \
+       sese.o \
+       shrink-wrap.o \
+       simplify-rtx.o \
+       sparseset.o \
+       spellcheck.o \
+       spellcheck-tree.o \
+       sreal.o \
+       stack-ptr-mod.o \
+       statistics.o \
+       stmt.o \
+       stor-layout.o \
+       store-motion.o \
+       streamer-hooks.o \
+       stringpool.o \
+       substring-locations.o \
+       target-globals.o \
+       targhooks.o \
+       timevar.o \
+       toplev.o \
+       tracer.o \
+       trans-mem.o \
+       tree-affine.o \
+       asan.o \
+       tsan.o \
+       ubsan.o \
+       sanopt.o \
+       sancov.o \
+       tree-call-cdce.o \
+       tree-cfg.o \
+       tree-cfgcleanup.o \
+       tree-chrec.o \
+       tree-complex.o \
+       tree-data-ref.o \
+       tree-dfa.o \
+       tree-diagnostic.o \
+       tree-dump.o \
+       tree-eh.o \
+       tree-emutls.o \
+       tree-if-conv.o \
+       tree-inline.o \
+       tree-into-ssa.o \
+       tree-iterator.o \
+       tree-loop-distribution.o \
+       tree-nested.o \
+       tree-nrv.o \
+       tree-object-size.o \
+       tree-outof-ssa.o \
+       tree-parloops.o \
+       tree-phinodes.o \
+       tree-chkp.o \
+       tree-chkp-opt.o \
+       tree-predcom.o \
+       tree-pretty-print.o \
+       tree-profile.o \
+       tree-scalar-evolution.o \
+       tree-sra.o \
+       tree-switch-conversion.o \
+       tree-ssa-address.o \
+       tree-ssa-alias.o \
+       tree-ssa-ccp.o \
+       tree-ssa-coalesce.o \
+       tree-ssa-copy.o \
+       tree-ssa-dce.o \
+       tree-ssa-dom.o \
+       tree-ssa-dse.o \
+       tree-ssa-forwprop.o \
+       tree-ssa-ifcombine.o \
+       tree-ssa-live.o \
+       tree-ssa-loop-ch.o \
+       tree-ssa-loop-im.o \
+       tree-ssa-loop-ivcanon.o \
+       tree-ssa-loop-ivopts.o \
+       tree-ssa-loop-manip.o \
+       tree-ssa-loop-niter.o \
+       tree-ssa-loop-prefetch.o \
+       tree-ssa-loop-split.o \
+       tree-ssa-loop-unswitch.o \
+       tree-ssa-loop.o \
+       tree-ssa-math-opts.o \
+       tree-ssa-operands.o \
+       tree-ssa-phionlycprop.o \
+       tree-ssa-phiopt.o \
+       tree-ssa-phiprop.o \
+       tree-ssa-pre.o \
+       tree-ssa-propagate.o \
+       tree-ssa-reassoc.o \
+       tree-ssa-sccvn.o \
+       tree-ssa-scopedtables.o \
+       tree-ssa-sink.o \
+       tree-ssa-strlen.o \
+       tree-ssa-structalias.o \
+       tree-ssa-tail-merge.o \
+       tree-ssa-ter.o \
+       tree-ssa-threadbackward.o \
+       tree-ssa-threadedge.o \
+       tree-ssa-threadupdate.o \
+       tree-ssa-uncprop.o \
+       tree-ssa-uninit.o \
+       tree-ssa.o \
+       tree-ssanames.o \
+       tree-stdarg.o \
+       tree-streamer.o \
+       tree-streamer-in.o \
+       tree-streamer-out.o \
+       tree-tailcall.o \
+       tree-vect-generic.o \
+       tree-vect-patterns.o \
+       tree-vect-data-refs.o \
+       tree-vect-stmts.o \
+       tree-vect-loop.o \
+       tree-vect-loop-manip.o \
+       tree-vect-slp.o \
+       tree-vectorizer.o \
+       tree-vector-builder.o \
+       tree-vrp.o \
+       tree.o \
+       typed-splay-tree.o \
+       valtrack.o \
+       value-prof.o \
+       var-tracking.o \
+       varasm.o \
+       varpool.o \
+       vec-perm-indices.o \
+       vr-values.o \
+       vtable-verify.o \
+       web.o \
+       $(out_object_file) \
+       $(EXTRA_OBJS) \
+       $(host_hook_obj)
+
+# only whwn HAVE_isl
+#BACKEND_OBJS+= \
+       graphite-isl-ast-to-gimple.o \
+       graphite-dependences.o \
+       graphite-optimize-isl.o \
+       graphite-poly.o \
+       graphite-scop-detection.o \
+       graphite-sese-to-poly.o
+
+# only when VMS_DEBUGGING_INFO
+#BACKEND_OBJS+= \
+       vmsdbgout.o
+
+# only when XCOFF_DEBUGGING_INFO
+#BACKEND_OBJS+= \
+       xcoffout.o
+
+OBJS=  ${BACKEND_OBJS}
+SRCS=  gimple-loop-interchange.cc unique-ptr-tests.cc \
+       wide-int.cc wide-int-print.cc
+
+# hack to force c++ compiler to compile *.c files to create library
+.for cfile in ${BACKEND_OBJS}
+${cfile}: ${cfile:.o=.c}
+       ${CXX} ${STATIC_CXXFLAGS} ${CXXFLAGS} -c ${.IMPSRC} -o ${.TARGET}
+.endfor
+
+dfp.o: gstdint.h
+
+gstdint.h:
+       echo "#include <stdint.h>" > ${.TARGET}
+
+CLEANFILES=    gstdint.h
+
+.include <bsd.lib.mk>
diff --git a/gnu/usr.bin/cc80/support-libs/Makefile b/gnu/usr.bin/cc80/support-libs/Makefile
new file mode 100644 (file)
index 0000000..ac7cfc5
--- /dev/null
@@ -0,0 +1,19 @@
+# All the libraries are standalone except the LTO plugin
+# The plugin is needed by the compiler to functional normally, so it
+# is created along with the backends and drivers rather than with the
+# language libraries
+
+SUBDIR_ORDERED= libiberty_pic liblto_plugin
+
+SUBDIR=                libbacktrace
+SUBDIR+=       libcommon
+SUBDIR+=       libcommon-target
+SUBDIR+=       libcpp
+SUBDIR+=       libdecnumber
+SUBDIR+=       libiberty
+SUBDIR+=       libiberty_pic
+.if !defined(REALLY_NOSHARED)
+SUBDIR+=       liblto_plugin
+.endif
+
+.include <bsd.subdir.mk>
diff --git a/gnu/usr.bin/cc80/support-libs/Makefile.inc b/gnu/usr.bin/cc80/support-libs/Makefile.inc
new file mode 100644 (file)
index 0000000..01eb15f
--- /dev/null
@@ -0,0 +1,7 @@
+.if !target(__<support80.Makefile.inc>__)
+__<support80.Makefile.inc>__:
+
+TOP_PREFIX=    ../
+
+.include "../Makefile.inc"
+.endif
diff --git a/gnu/usr.bin/cc80/support-libs/libbacktrace/Makefile b/gnu/usr.bin/cc80/support-libs/libbacktrace/Makefile
new file mode 100644 (file)
index 0000000..afbe8f7
--- /dev/null
@@ -0,0 +1,36 @@
+GCC_NO_PATH=   yes
+GCC_NO_LIBS=   yes
+LOCAL_CONFIG=  yes
+.include "../Makefile.inc"
+.PATH: ${GCCDIR}/libbacktrace
+.PATH: ${GCCDIR}/libgcc
+
+LIB=           backtrace
+INTERNALLIB=   YES
+
+CFLAGS+=       -I${GCCDIR}/libbacktrace
+
+SRCS=                   \
+               dwarf.c \
+               fileline.c \
+               posix.c \
+               print.c \
+               sort.c \
+               state.c \
+               backtrace.c \
+               simple.c \
+               elf.c \
+               mmapio.c \
+               mmap.c
+
+# only when ! HAVE_ATOMIC_FUNCTIONS
+#SRCS=         atomic.c
+
+backtrace.o:   unwind.h
+
+unwind.h: unwind-generic.h
+       cp ${.ALLSRC} ${.TARGET}
+
+CLEANFILES=    unwind.h
+
+.include <bsd.lib.mk>
diff --git a/gnu/usr.bin/cc80/support-libs/libcommon-target/Makefile b/gnu/usr.bin/cc80/support-libs/libcommon-target/Makefile
new file mode 100644 (file)
index 0000000..6559127
--- /dev/null
@@ -0,0 +1,24 @@
+.include "../Makefile.inc"
+
+LIB=           common-target
+INTERNALLIB=   YES
+
+.PATH: $(srcdir)/common
+.PATH: $(srcdir)/common/config/i386
+
+# Almost verbatim from Makefile
+OBJS-libcommon-target = $(common_out_object_file) prefix.o params.o \
+       opts.o opts-common.o options.o vec.o hooks.o common-targhooks.o \
+       hash-table.o file-find.o spellcheck.o selftest.o
+
+common_out_object_file=        i386-common.o
+
+OBJS=          ${OBJS-libcommon-target}
+CFLAGS+=       -DPREFIX=\"${TOOLS_PREFIX}/usr\"
+
+.for ofile in ${OBJS-libcommon-target}
+${ofile}: ${ofile:.o=.c}
+       ${CXX} ${STATIC_CXXFLAGS} ${CXXFLAGS} -c ${.IMPSRC} -o ${.TARGET}
+.endfor
+
+.include <bsd.lib.mk>
diff --git a/gnu/usr.bin/cc80/support-libs/libcommon/Makefile b/gnu/usr.bin/cc80/support-libs/libcommon/Makefile
new file mode 100644 (file)
index 0000000..4b29394
--- /dev/null
@@ -0,0 +1,21 @@
+.include "../Makefile.inc"
+
+LIB=           common
+INTERNALLIB=   YES
+
+# verbatim from Makefile
+OBJS-libcommon= diagnostic.o diagnostic-color.o diagnostic-show-locus.o \
+       edit-context.o pretty-print.o intl.o sbitmap.o \
+       vec.o input.o version.o hash-table.o ggc-none.o \
+       selftest.o selftest-diagnostic.o
+
+SRCS+=         memory-block.cc
+OBJS+=         ${OBJS-libcommon}
+CFLAGS+=       -I${GCCDIR}/libbacktrace
+
+.for ofile in ${OBJS-libcommon}
+${ofile}: ${ofile:.o=.c}
+       ${CXX} ${STATIC_CXXFLAGS} ${CXXFLAGS} -c ${.IMPSRC} -o ${.TARGET}
+.endfor
+
+.include <bsd.lib.mk>
diff --git a/gnu/usr.bin/cc80/support-libs/libcpp/Makefile b/gnu/usr.bin/cc80/support-libs/libcpp/Makefile
new file mode 100644 (file)
index 0000000..e151f86
--- /dev/null
@@ -0,0 +1,42 @@
+GCC_NO_PATH=   yes
+GCC_NO_LIBS=   yes
+LOCAL_CONFIG=  yes
+.include "../Makefile.inc"
+.PATH: ${GCCDIR}/libcpp
+
+LIB=           cpp
+INTERNALLIB=   YES
+
+CFLAGS+=       -Duchar="unsigned char"
+CXXFLAGS+=     ${NOEXCEPTION_FLAGS}
+
+CXX_BUILD=     charset.c \
+               directives-only.c \
+               directives.c \
+               errors.c \
+               expr.c \
+               files.c \
+               identifiers.c \
+               init.c \
+               lex.c \
+               line-map.c \
+               macro.c \
+               mkdeps.c \
+               pch.c \
+               symtab.c \
+               traditional.c
+
+OBJS=          ${CXX_BUILD:.c=.o}
+
+# hack to force c++ compiler to compile *.c files to create library
+.for cfile in ${CXX_BUILD}
+${cfile:.c=.o}: ${cfile} localedir.h
+       ${CXX} ${STATIC_CXXFLAGS} ${CXXFLAGS} -c ${.IMPSRC} -o ${.TARGET}
+.endfor
+
+localedir.h:
+       touch $@
+
+CLEANFILES=    localedir.h
+
+.include <bsd.lib.mk>
diff --git a/gnu/usr.bin/cc80/support-libs/libdecnumber/Makefile b/gnu/usr.bin/cc80/support-libs/libdecnumber/Makefile
new file mode 100644 (file)
index 0000000..f101bb6
--- /dev/null
@@ -0,0 +1,24 @@
+GCC_NO_PATH=   yes
+GCC_NO_LIBS=   yes
+LOCAL_CONFIG=  yes
+.include "../Makefile.inc"
+.PATH: ${GCCDIR}/libdecnumber
+.PATH: ${GCCDIR}/libdecnumber/dpd
+
+LIB=           decnumber
+INTERNALLIB=   YES
+
+SRCS=  decContext.c \
+       decNumber.c \
+       decimal32.c \
+       decimal64.c \
+       decimal128.c
+
+gstdint.h:
+       echo "#include <stdint.h>" > ${.TARGET}
+
+depend all: gstdint.h
+
+CLEANFILES+=   gstdint.h
+
+.include <bsd.lib.mk>
diff --git a/gnu/usr.bin/cc80/support-libs/libiberty/Makefile b/gnu/usr.bin/cc80/support-libs/libiberty/Makefile
new file mode 100644 (file)
index 0000000..7b9d145
--- /dev/null
@@ -0,0 +1,79 @@
+GCC_NO_PATH=   yes
+GCC_NO_LIBS=   yes
+LOCAL_CONFIG=  yes
+.include "../Makefile.inc"
+.PATH: ${GCCDIR}/libiberty
+
+LIB=           iberty
+INTERNALLIB=   YES
+
+# Object files present after vendor-built libiberty created.
+REQUIRED_OFILES= \
+       alloca.o \
+       argv.o \
+       choose-temp.o \
+       concat.o \
+       cp-demangle.o \
+       cp-demint.o \
+       cplus-dem.o \
+       crc32.o \
+       d-demangle.o \
+       dwarfnames.o \
+       dyn-string.o \
+       fdmatch.o \
+       fibheap.o \
+       filename_cmp.o \
+       floatformat.o \
+       fnmatch.o \
+       fopen_unlocked.o \
+       getopt.o \
+       getopt1.o \
+       getpwd.o \
+       getruntime.o \
+       hashtab.o \
+       hex.o \
+       lbasename.o \
+       lrealpath.o \
+       make-relative-prefix.o \
+       make-temp-file.o \
+       md5.o \
+       objalloc.o \
+       obstack.o \
+       partition.o \
+       pex-common.o \
+       pex-one.o \
+       pex-unix.o \
+       pexecute.o \
+       physmem.o \
+       regex.o \
+       rust-demangle.o \
+       safe-ctype.o \
+       sha1.o \
+       simple-object-coff.o \
+       simple-object-elf.o \
+       simple-object-mach-o.o \
+       simple-object-xcoff.o \
+       simple-object.o \
+       sort.o \
+       spaces.o \
+       splay-tree.o \
+       stack-limit.o\
+       strerror.o \
+       strsignal.o \
+       strverscmp.o \
+       timeval-utils.o \
+       unlink-if-ordinary.o \
+       vprintf-support.o \
+       xatexit.o \
+       xasprintf.o \
+       xexit.o \
+       xmalloc.o \
+       xmemdup.o \
+       xstrdup.o \
+       xstrerror.o \
+       xstrndup.o \
+       xvasprintf.o
+
+SRCS=  ${REQUIRED_OFILES:T:.o=.c}
+
+.include <bsd.lib.mk>
diff --git a/gnu/usr.bin/cc80/support-libs/libiberty_pic/Makefile b/gnu/usr.bin/cc80/support-libs/libiberty_pic/Makefile
new file mode 100644 (file)
index 0000000..c0153b3
--- /dev/null
@@ -0,0 +1,43 @@
+GCC_NO_PATH=   yes
+GCC_NO_LIBS=   yes
+LOCAL_CONFIG=  yes
+.include "../Makefile.inc"
+.PATH: ${GCCDIR}/libiberty
+
+LIB=           iberty_pic
+NOPROFILE=     yes
+INTERNALLIB=   yes
+
+# Bare minimum for liblto_plugin.so, this is a special case
+NOSHARED=      YES
+CFLAGS+=       -fpic
+
+GOOD_CONFIG=   ${.CURDIR}/../libiberty/config.h
+CLEANFILES=    config.h
+
+SRCS=          argv.c \
+               concat.c \
+               hashtab.c \
+               make-temp-file.c \
+               pex-common.c \
+               pex-unix.c \
+               safe-ctype.c \
+               simple-object-coff.c \
+               simple-object-elf.c \
+               simple-object-mach-o.c \
+               simple-object-xcoff.c \
+               simple-object.c \
+               vprintf-support.c \
+               xasprintf.c \
+               xexit.c \
+               xmalloc.c \
+               xstrdup.c \
+               xstrerror.c \
+               xvasprintf.c
+
+config.h: ${GOOD_CONFIG}
+       cp ${.ALLSRC} .
+
+depend all: config.h
+
+.include <bsd.lib.mk>
diff --git a/gnu/usr.bin/cc80/support-libs/liblto_plugin/Makefile b/gnu/usr.bin/cc80/support-libs/liblto_plugin/Makefile
new file mode 100644 (file)
index 0000000..799a469
--- /dev/null
@@ -0,0 +1,70 @@
+# include helpers to decide if lto plugin needs to be installed and where
+.include "../../../Makefile.buo"
+.include "../../../Makefile.cco"
+
+# liblto_plugin.so needs to linked to a PIC version of libiberty
+# A special tailed version of libiberty has been created for this purpose
+
+GCC_NO_LIBS=   # defined
+.include "Makefile.headers"
+.include "../Makefile.inc"
+.PATH: ${GCCDIR}/lto-plugin
+.PATH: ${GCCDIR}/libiberty
+.PATH: ${GCCDIR}/include
+.PATH: ${GCCDIR}/gcc/ada/gcc-interface
+.PATH: ${GCCDIR}/gcc/cp
+.PATH: ${GCCDIR}/gcc/c
+.PATH: ${GCCDIR}/gcc/objc
+.PATH: ${GCCDIR}/libcpp/include
+
+LIB=           lto_plugin
+SHLIB_MAJOR=   0
+NOPROFILE=     yes
+NOINSTALLLIB=  yes
+# For gcc -print-prog-name=liblto_plugin.so to work
+LIBMODE=       555
+
+# GCC driver looks for LTO plugin library in libexec, not lib
+TARGET_SHLIBDIR=       /usr/libexec/gcc80
+
+# Plugin support file locations
+PLUGIN_RESOURCE_DIR=   /usr/lib/gcc80/plugin
+PLUGIN_HEADER_DIR=     ${PLUGIN_RESOURCE_DIR}/include
+
+SRCS=          lto-plugin.c
+LDADD=         ../libiberty_pic/libiberty_pic.a
+
+FILESGROUPS+=  LVL1_ LVL2_ LVL2_1_ LVL2_2_ LVL2_3_ LVL2_4_ LVL3_ LVL3_ADA_
+LVL1_DIR=      ${PLUGIN_RESOURCE_DIR}
+LVL2_DIR=      ${PLUGIN_HEADER_DIR}
+LVL2_1_DIR=    ${PLUGIN_HEADER_DIR}/c-family
+LVL2_2_DIR=    ${PLUGIN_HEADER_DIR}/cp
+LVL2_3_DIR=    ${PLUGIN_HEADER_DIR}/objc
+LVL2_4_DIR=    ${PLUGIN_HEADER_DIR}/config
+LVL3_DIR=      ${PLUGIN_HEADER_DIR}/config/i386
+LVL3_ADA_DIR=  ${PLUGIN_HEADER_DIR}/ada/gcc-interface
+
+LVL1_=         ${STOPDIR}/cc_prep/config/dragonfly-native.h \
+               ${OTOPDIR}/cc_tools/tools/gtype.state
+LVL2_=         ${PLUGIN_HEADERS} ${STOPDIR}/cc_prep/config.h
+LVL2_1_=       ${PLUGIN_HEADERS_CFAMILY}
+LVL2_2_=       ${PLUGIN_HEADERS_CP}
+LVL2_3_=       ${PLUGIN_HEADERS_OBJC}
+LVL2_4_=       ${PLUGIN_HEADERS_CONFIG}
+LVL3_=         ${PLUGIN_HEADERS_CONFIG_I386}
+LVL3_ADA_=     ${PLUGIN_HEADERS_ADA_GCC}
+
+# SYMLINK lto plugin to primary/backup binutils bfd-plugin dirs
+.if ${CC_PRIMARY} == "gcc80" # we are default gcc compiler
+LTOPLUGIN=     liblto_plugin.so
+.if exists(${DESTDIR}/usr/libexec/${BU_PRIMARY}/bfd-plugins)
+BFDPLUGINS=    /usr/libexec/${BU_PRIMARY}/bfd-plugins
+SYMLINKS+=     ../../${CC_PRIMARY}/${LTOPLUGIN} ${BFDPLUGINS}/${LTOPLUGIN}
+.endif
+.if exists(${DESTDIR}/usr/libexec/${BU_BACKUP}/bfd-plugins)
+BFDPLUGINSB=   /usr/libexec/${BU_BACKUP}/bfd-plugins
+SYMLINKS+=     ../../${CC_PRIMARY}/${LTOPLUGIN} ${BFDPLUGINSB}/${LTOPLUGIN}
+.endif
+.endif
+
+.include <bsd.lib.mk>
diff --git a/gnu/usr.bin/cc80/support-libs/liblto_plugin/Makefile.headers b/gnu/usr.bin/cc80/support-libs/liblto_plugin/Makefile.headers
new file mode 100644 (file)
index 0000000..27112f2
--- /dev/null
@@ -0,0 +1,424 @@
+# The logic to define PLUGIN_HEADERS is filled with dozens of variables that
+# is impossible for a human to wade through.  To keep this simple, generate
+# a list manually from a vendor-built and installed version of gcc, e.g.
+# stage/usr/local/lib/gcc8/gcc/x86_64-portbld-dragonfly5.1/8.0.0/plugin/include
+
+PLUGIN_HEADERS= \
+       addresses.h \
+       alias.h \
+       all-tree.def \
+       alloc-pool.h \
+       ansidecl.h \
+       asan.h \
+       attribs.h \
+       auto-host.h \
+       auto-profile.h \
+       b-header-vars \
+       backend.h \
+       basic-block.h \
+       bb-reorder.h \
+       bitmap.h \
+       brig-builtins.def \
+       builtin-attrs.def \
+       builtin-types.def \
+       builtins.def \
+       builtins.h \
+       bversion.h \
+       c-tree.h \
+       calls.h \
+       ccmp.h \
+       cfg-flags.def \
+       cfg.h \
+       cfganal.h \
+       cfgbuild.h \
+       cfgcleanup.h \
+       cfgexpand.h \
+       cfghooks.h \
+       cfgloop.h \
+       cfgloopmanip.h \
+       cfgrtl.h \
+       cgraph.h \
+       chkp-builtins.def \
+       cif-code.def \
+       collect-utils.h \
+       collect2-aix.h \
+       collect2.h \
+       color-macros.h \
+       conditions.h \
+       configargs.h \
+       context.h \
+       convert.h \
+       coretypes.h \
+       coverage.h \
+       cppbuiltin.h \
+       cppdefault.h \
+       cpplib.h \
+       cselib.h \
+       data-streamer.h \
+       dbgcnt.def \
+       dbgcnt.h \
+       dbxout.h \
+       dce.h \
+       ddg.h \
+       debug.h \
+       defaults.h \
+       df.h \
+       dfp.h \
+       diagnostic-color.h \
+       diagnostic-core.h \
+       diagnostic.def \
+       diagnostic.h \
+       dojump.h \
+       dominance.h \
+       domwalk.h \
+       double-int.h \
+       dumpfile.h \
+       dwarf2asm.h \
+       dwarf2out.h \
+       edit-context.h \
+       emit-rtl.h \
+       errors.h \
+       et-forest.h \
+       except.h \
+       explow.h \
+       expmed.h \
+       expr.h \
+       fibonacci_heap.h \
+       file-find.h \
+       file-prefix-map.h \
+       filenames.h \
+       fixed-value.h \
+       flag-types.h \
+       flags.h \
+       fold-const-call.h \
+       fold-const.h \
+       function.h \
+       gcc-plugin.h \
+       gcc-rich-location.h \
+       gcc-symtab.h \
+       gcc.h \
+       gcov-counter.def \
+       gcov-io.h \
+       gcse-common.h \
+       gcse.h \
+       generic-match.h \
+       gengtype.h \
+       genrtl.h \
+       gensupport.h \
+       ggc-internal.h \
+       ggc.h \
+       gimple-builder.h \
+       gimple-expr.h \
+       gimple-fold.h \
+       gimple-iterator.h \
+       gimple-low.h \
+       gimple-match.h \
+       gimple-predict.h \
+       gimple-pretty-print.h \
+       gimple-ssa-evrp-analyze.h \
+       gimple-ssa-warn-restrict.h \
+       gimple-ssa.h \
+       gimple-streamer.h \
+       gimple-walk.h \
+       gimple.def \
+       gimple.h \
+       gimplify-me.h \
+       gimplify.h \
+       glimits.h \
+       graph.h \
+       graphds.h \
+       graphite.h \
+       gsstruct.def \
+       gstab.h \
+       gsyms.h \
+       gsyslimits.h \
+       gtm-builtins.def \
+       gtype-desc.h \
+       hard-reg-set.h \
+       hash-map-traits.h \
+       hash-map.h \
+       hash-set.h \
+       hash-table.h \
+       hash-traits.h \
+       hashtab.h \
+       highlev-plugin-common.h \
+       hooks.h \
+       hosthooks-def.h \
+       hosthooks.h \
+       hsa-brig-format.h \
+       hsa-builtins.def \
+       hsa-common.h \
+       hw-doloop.h \
+       hwint.h \
+       ifcvt.h \
+       inchash.h \
+       incpath.h \
+       input.h \
+       insn-addr.h \
+       insn-codes.h \
+       insn-constants.h \
+       insn-flags.h \
+       insn-modes-inline.h \
+       insn-modes.h \
+       insn-notes.def \
+       int-vector-builder.h \
+       internal-fn.def \
+       internal-fn.h \
+       intl.h \
+       ipa-chkp.h \
+       ipa-fnsummary.h \
+       ipa-icf-gimple.h \
+       ipa-icf.h \
+       ipa-inline.h \
+       ipa-param-manipulation.h \
+       ipa-predicate.h \
+       ipa-prop.h \
+       ipa-ref.h \
+       ipa-reference.h \
+       ipa-utils.h \
+       ira-int.h \
+       ira.h \
+       is-a.h \
+       langhooks-def.h \
+       langhooks.h \
+       lcm.h \
+       libfuncs.h \
+       libiberty.h \
+       limitx.h \
+       limity.h \
+       line-map.h \
+       loop-unroll.h \
+       lower-subreg.h \
+       lra-int.h \
+       lra.h \
+       lto-compress.h \
+       lto-section-names.h \
+       lto-streamer.h \
+       machmode.def \
+       machmode.h \
+       md5.h \
+       mem-stats-traits.h \
+       mem-stats.h \
+       memmodel.h \
+       memory-block.h \
+       mode-classes.def \
+       obstack.h \
+       omp-builtins.def \
+       omp-expand.h \
+       omp-general.h \
+       omp-grid.h \
+       omp-low.h \
+       omp-offload.h \
+       optabs-libfuncs.h \
+       optabs-query.h \
+       optabs-tree.h \
+       optabs.def \
+       optabs.h \
+       options.h \
+       opts-diagnostic.h \
+       opts.h \
+       output.h \
+       params-enum.h \
+       params-list.h \
+       params-options.h \
+       params.def \
+       params.h \
+       params.list \
+       pass-instances.def \
+       pass_manager.h \
+       passes.def \
+       plugin-api.h \
+       plugin-version.h \
+       plugin.def \
+       plugin.h \
+       poly-int-types.h \
+       poly-int.h \
+       predict.def \
+       predict.h \
+       prefix.h \
+       pretty-print.h \
+       print-rtl.h \
+       print-tree.h \
+       profile-count.h \
+       profile.h \
+       read-md.h \
+       read-rtl-function.h \
+       real.h \
+       realmpfr.h \
+       recog.h \
+       reg-notes.def \
+       regcprop.h \
+       regrename.h \
+       regs.h \
+       regset.h \
+       reload.h \
+       resource.h \
+       rtl-chkp.h \
+       rtl-error.h \
+       rtl-iter.h \
+       rtl.def \
+       rtl.h \
+       rtlhash.h \
+       rtlhooks-def.h \
+       rtx-vector-builder.h \
+       run-rtl-passes.h \
+       safe-ctype.h \
+       sanitizer.def \
+       sbitmap.h \
+       sched-int.h \
+       sel-sched-dump.h \
+       sel-sched-ir.h \
+       sel-sched.h \
+       selftest-diagnostic.h \
+       selftest-rtl.h \
+       selftest.h \
+       sese.h \
+       shrink-wrap.h \
+       signop.h \
+       sparseset.h \
+       spellcheck-tree.h \
+       spellcheck.h \
+       splay-tree.h \
+       sreal.h \
+       ssa-iterators.h \
+       ssa.h \
+       stab.def \
+       statistics.h \
+       stmt.h \
+       stor-layout.h \
+       streamer-hooks.h \
+       stringpool.h \
+       substring-locations.h \
+       symbol-summary.h \
+       symtab.h \
+       sync-builtins.def \
+       system.h \
+       target-def.h \
+       target-globals.h \
+       target-hooks-macros.h \
+       target-insns.def \
+       target.def \
+       target.h \
+       targhooks.h \
+       timevar.def \
+       timevar.h \
+       tm-preds.h \
+       tm.h \
+       tm_p.h \
+       toplev.h \
+       tracer.h \
+       trans-mem.h \
+       tree-affine.h \
+       tree-cfg.h \
+       tree-cfgcleanup.h \
+       tree-check.h \
+       tree-chkp.h \
+       tree-chrec.h \
+       tree-core.h \
+       tree-data-ref.h \
+       tree-dfa.h \
+       tree-diagnostic.h \
+       tree-dump.h \
+       tree-eh.h \
+       tree-hash-traits.h \
+       tree-hasher.h \
+       tree-if-conv.h \
+       tree-inline.h \
+       tree-into-ssa.h \
+       tree-iterator.h \
+       tree-nested.h \
+       tree-object-size.h \
+       tree-outof-ssa.h \
+       tree-parloops.h \
+       tree-pass.h \
+       tree-phinodes.h \
+       tree-pretty-print.h \
+       tree-scalar-evolution.h \
+       tree-ssa-address.h \
+       tree-ssa-alias.h \
+       tree-ssa-ccp.h \
+       tree-ssa-coalesce.h \
+       tree-ssa-dce.h \
+       tree-ssa-dom.h \
+       tree-ssa-live.h \
+       tree-ssa-loop-ivopts.h \
+       tree-ssa-loop-manip.h \
+       tree-ssa-loop-niter.h \
+       tree-ssa-loop.h \
+       tree-ssa-operands.h \
+       tree-ssa-propagate.h \
+       tree-ssa-sccvn.h \
+       tree-ssa-scopedtables.h \
+       tree-ssa-ter.h \
+       tree-ssa-threadedge.h \
+       tree-ssa-threadupdate.h \
+       tree-ssa.h \
+       tree-ssanames.h \
+       tree-stdarg.h \
+       tree-streamer.h \
+       tree-vector-builder.h \
+       tree-vectorizer.h \
+       tree-vrp.h \
+       tree.def \
+       tree.h \
+       treestruct.def \
+       tsan.h \
+       tsystem.h \
+       typeclass.h \
+       typed-splay-tree.h \
+       ubsan.h \
+       valtrack.h \
+       value-prof.h \
+       varasm.h \
+       vec-perm-indices.h \
+       vec.h \
+       vector-builder.h \
+       version.h \
+       vmsdbg.h \
+       vr-values.h \
+       vtable-verify.h \
+       wide-int-print.h \
+       wide-int.h \
+       xcoff.h \
+       xcoffout.h
+
+PLUGIN_HEADERS_CFAMILY= \
+       c-common.def \
+       c-common.h \
+       c-objc.h \
+       c-pragma.h \
+       c-pretty-print.h
+
+PLUGIN_HEADERS_CP= \
+       cp-tree.def \
+       cp-tree.h \
+       cxx-pretty-print.h \
+       name-lookup.h \
+       operators.def \
+       type-utils.h
+
+PLUGIN_HEADERS_OBJC= \
+       objc-tree.def \
+
+PLUGIN_HEADERS_ADA_GCC= \
+       ada-tree.def \
+
+PLUGIN_HEADERS_CONFIG= \
+       dbxelf.h \
+       dragonfly-stdint.h \
+       dragonfly.h \
+       elfos.h \
+       initfini-array.h \
+       vxworks-dummy.h
+
+PLUGIN_HEADERS_CONFIG_I386= \
+       i386/att.h \
+       i386/biarch64.h \
+       i386/dragonfly.h \
+       i386/i386-opts.h \
+       i386/i386-protos.h \
+       i386/i386.h \
+       i386/stringop.def \
+       i386/unix.h \
+       i386/x86-64.h \
+       i386/x86-tune.def
diff --git a/share/mk/bsd.cpu.gcc80.mk b/share/mk/bsd.cpu.gcc80.mk
new file mode 100644 (file)
index 0000000..818f50c
--- /dev/null
@@ -0,0 +1,124 @@
+# Set default CPU compile flags and baseline CPUTYPE for each arch.  The
+# compile flags must support the minimum CPU type for each architecture but
+# may tune support for more advanced processors.
+
+generic_x86_64=        x86_64 mmx sse sse2
+generic_i386=  i386
+
+.if !defined(CPUTYPE) || empty(CPUTYPE) || ${CPUTYPE} == "native"
+
+. if defined(CPUTYPE) && ${CPUTYPE:Mnative}
+_CPUCFLAGS=    -march=native
+. else
+_CPUCFLAGS=
+. endif
+
+MACHINE_CPU=   ${generic_${MACHINE_ARCH}}
+
+.else
+
+###############################################################################
+# Logic to set up correct gcc optimization flag.  This must be included
+# after /etc/make.conf so it can react to the local value of CPUTYPE
+# defined therein.  Consult:
+#      https://gcc.gnu.org/onlinedocs/gcc-5.3.0/gcc/x86-Options.html
+###############################################################################
+
+# Some GCC cpu-types have aliases, rename them to a single identifier
+# If the value for cpu-type is not recognized, throw it away and use -native
+
+. if ${CPUTYPE} == "k8" \
+  || ${CPUTYPE} == "opteron" \
+  || ${CPUTYPE} == "athlon-fx"
+CT2=   athlon64
+. elif ${CPUTYPE} == "k8-sse3" \
+    || ${CPUTYPE} == "opteron-sse3"
+CT2=   athlon64-sse3
+. elif ${CPUTYPE} == "amdfam10"
+CT2=   barcelona
+. else
+CT2=   ${CPUTYPE}
+. endif
+
+known_x86_64=  athlon64 \
+               athlon64-sse3 \
+               barcelona \
+               bdver1 bdver2 bdver3 bdver4 \
+               bonnell \
+               broadwell \
+               btver1 btver2 \
+               core2 \
+               haswell \
+               i386 \
+               ivybridge \
+               knl \
+               nocona \
+               nehalem \
+               sandybridge \
+               silvermont \
+               skylake \
+               skylake-avx512 \
+               westmere \
+               znver1
+
+known_i386=    i386
+
+. if defined(known_${MACHINE_ARCH}) && \
+     !empty(known_${MACHINE_ARCH}:M${CT2})             # CID: Check CPUTYPE
+
+# Set up the list of CPU features based on the CPU type.  This is an
+# unordered list to make it easy for client makefiles to test for the
+# presence of a CPU feature.
+
+.  if ${MACHINE_ARCH} == "x86_64"
+C_nocona=      ${generic_x86_64} sse3
+C_core2=       ${C_nocona} ssse3
+C_nehalem=     ${C_core2} sse41 sse42 popcnt
+C_westmere=    ${C_nehalem} aes pclmul
+C_sandybridge= ${C_westmere} avx
+C_ivybridge=   ${C_sandybridge} fsgsbase rdrnd f16c
+C_haswell=     ${C_ivybridge} movbe avx2 fma bmi bmi2
+C_broadwell=   ${C_haswell} rdseed adcx prefetchw
+C_skylake=     ${C_broadwell} xsavec xsaves clflushop
+C_knl=         ${C_broadwell} avx512f avx512pf avx512er avx512cd
+C_bonnell=     ${C_core2} movbe
+C_silvermont=  ${C_westmere} movbe rdrnd
+C_skylakeavx512=${C_skylake} pku avx512f avx512vl avx512bw avx512dq avx512cd
+C_athlon64=    ${generic_x86_64} 3dnow
+C_athlon64sse3=        ${C_athlon64} sse3
+C_barcelona=   ${C_athlon64sse3} sse4a abm
+C_bdver1=      ${C_core2} sse4a sse41 sse42 abm fma4 avx xop lwp aes \
+               pclmul cx16
+C_bdver2=      ${C_bdver1} bmi f16c fma tbm
+C_bdver3=      ${C_bdver2} fsgsbase
+C_bdver4=      ${C_bdver3} bmi2 avx2 movbe
+C_znver1=      ${C_core2} bmi bmi2 f16c fma fsgsbase avx avx2 adcx rdseed \
+               mwaitx sha clzero aes pclmul cx16 movbe sse4a sse41 sse42 \
+               abm xsavec xsaves clflushop popcnt
+C_btver1=      ${C_barcelona} cx16
+C_btver2=      ${C_btver1} movbe f16c bmi avx pclmul aes sse41 sse42
+C_i386=                ${generic_i386}
+
+.  endif       # end of x86_64 feature list
+
+# i386 used for 32-bit BIOS-based boot loaders
+
+.  if ${MACHINE_ARCH} == "i386"
+C_i386=                ${generic_i386}
+.  endif       # end of i386 feature list
+
+_CPUCFLAGS=    -march=${CT2}
+MACHINE_CPU=   ${C_${CT2:S|-||}}
+
+. else                                                 # CID: Check CPUTYPE
+
+# CPUTYPE was defined and was not empty, but the value does not match known
+# CPU types of the defined MACHINE_ARCH.  Set -march to native and define
+# generic features based on MACHINE_ARCH
+
+_CPUCFLAGS=    -march=native
+MACHINE_CPU=   ${generic_${MACHINE_ARCH}}
+
+. endif                                                        # CID: Check CPUTYPE
+
+.endif