gcc80: Hook into the buildworld as optional compiler.
authorzrj <rimvydas.jasinskas@gmail.com>
Wed, 2 May 2018 13:42:24 +0000 (16:42 +0300)
committerzrj <zrj@dragonflybsd.org>
Mon, 14 May 2018 17:21:09 +0000 (20:21 +0300)
This alternative compiler can be activated by WORLD_ALTCOMPILER variable.
It will not be built by default.

Makefile.inc1
etc/mtree/BSD.include.dist
etc/mtree/BSD.usr.dist
gnu/lib/Makefile
gnu/usr.bin/Makefile
share/mk/Makefile
share/mk/bsd.README
share/mk/bsd.cpu.mk

index 35cfbfb..5235b46 100644 (file)
@@ -937,6 +937,12 @@ _gcc47_tools= gnu/usr.bin/cc47/cc_prep gnu/usr.bin/cc47/cc_tools
 _altcompiler_cross+= ${_gcc47_cross}
 _altcompiler_tools+= _gcc47_tools
 . endif
+. if defined(WORLD_ALTCOMPILER) && (${WORLD_ALTCOMPILER} == "all" || ${WORLD_ALTCOMPILER:Mgcc80})
+_gcc80_cross= gnu/usr.bin/cc80
+_gcc80_tools= gnu/usr.bin/cc80/cc_prep gnu/usr.bin/cc80/cc_tools
+_altcompiler_cross+= ${_gcc80_cross}
+_altcompiler_tools+= _gcc80_tools
+. endif
 .endif
 _custom_cross= libexec/customcc
 _binutils= gnu/usr.bin/${WORLD_BINUTILSVER}
@@ -1021,6 +1027,11 @@ libraries:
            HOST_CCVER=${HOST_CCVER} CCVER=gcc47 \
                make -f Makefile.inc1 _startup_libs47 -DSYSBUILD;
 . endif
+. if defined(WORLD_ALTCOMPILER) && (${WORLD_ALTCOMPILER} == "all" || ${WORLD_ALTCOMPILER:Mgcc80})
+       cd ${.CURDIR}; \
+           HOST_CCVER=${HOST_CCVER} CCVER=gcc80 \
+               make -f Makefile.inc1 _startup_libs80 -DSYSBUILD;
+. endif
 .endif
        cd ${.CURDIR}; \
            make -f Makefile.inc1 _startup_libs -DSYSBUILD; \
@@ -1051,6 +1062,18 @@ _startup_libs50= gnu/usr.bin/cc50/cc_prep \
                        gnu/lib/gcc50/libgcc \
                        gnu/lib/gcc50/libgcc_eh \
                        gnu/lib/gcc50/libgcc_pic
+_startup_libs80=       gnu/usr.bin/cc80/cc_prep \
+                       gnu/usr.bin/cc80/cc_tools \
+                       gnu/lib/gcc80/csu \
+                       gnu/lib/gcc80/libgcc \
+                       gnu/lib/gcc80/libgcc_eh \
+                       gnu/lib/gcc80/libgcc_pic
+.if !defined(NO_ALTCOMPILER)
+. if defined(WORLD_ALTCOMPILER) && (${WORLD_ALTCOMPILER} == "all" || ${WORLD_ALTCOMPILER:Mgcc80})
+_startup_libs_alt+=     _startup_libs80
+. endif
+.endif
+
 _startup_libs=         lib/csu lib/libc lib/libc_rtld
 
 _prebuild_libs=                lib/libbz2 lib/libz
index d4cad98..ca12541 100644 (file)
             tr2
             ..
         ..
+        8.0
+            backward
+            ..
+            bits
+            ..
+            debug
+            ..
+            decimal
+            ..
+            experimental
+                bits
+                ..
+            ..
+            ext
+                pb_ds
+                    detail
+                        bin_search_tree_
+                        ..
+                        binary_heap_
+                        ..
+                        binomial_heap_
+                        ..
+                        binomial_heap_base_
+                        ..
+                        branch_policy
+                        ..
+                        cc_hash_table_map_
+                        ..
+                        eq_fn
+                        ..
+                        gp_hash_table_map_
+                        ..
+                        hash_fn
+                        ..
+                        left_child_next_sibling_heap_
+                        ..
+                        list_update_map_
+                        ..
+                        list_update_policy
+                        ..
+                        ov_tree_map_
+                        ..
+                        pairing_heap_
+                        ..
+                        pat_trie_
+                        ..
+                        rb_tree_map_
+                        ..
+                        rc_binomial_heap_
+                        ..
+                        resize_policy
+                        ..
+                        splay_tree_
+                        ..
+                        thin_heap_
+                        ..
+                        tree_policy
+                        ..
+                        trie_policy
+                        ..
+                        unordered_iterator
+                        ..
+                    ..
+                ..
+            ..
+            parallel
+            ..
+            profile
+                impl
+                ..
+            ..
+            tr1
+            ..
+            tr2
+            ..
+        ..
     ..
     cpu
     ..
index 39b4484..2e984dd 100644 (file)
             profile
             ..
         ..
+        gcc80
+            plugin
+                include
+                    ada
+                        gcc-interface
+                        ..
+                    ..
+                    objc
+                    ..
+                    c-family
+                    ..
+                    config
+                        i386
+                        ..
+                    ..
+                    cp
+                    ..
+                ..
+            ..
+            profile
+            ..
+        ..
         i18n
         ..
         priv
             ssp
             ..
         ..
+        gcc80
+            ssp
+            ..
+        ..
         pkgconfig
         ..
     ..
         ..
         gcc50
         ..
+        gcc80
+        ..
         lpr
             ru
             ..
index a424f4a..ae2f11e 100644 (file)
@@ -4,6 +4,9 @@ SUBDIR= gcc50 libcryptsetup libdevmapper libdialog libluks liblvm
 . if defined(WORLD_ALTCOMPILER) && (${WORLD_ALTCOMPILER} == "all" || ${WORLD_ALTCOMPILER:Mgcc47})
 SUBDIR+= gcc47
 . endif
+. if defined(WORLD_ALTCOMPILER) && (${WORLD_ALTCOMPILER} == "all" || ${WORLD_ALTCOMPILER:Mgcc80})
+SUBDIR+= gcc80
+. endif
 .endif
 
 SUBDIR_ORDERED=
index 4bcee4f..0f20baa 100644 (file)
@@ -27,6 +27,10 @@ SUBDIR+= cc50
 SUBDIR+= cc47
 _altcompiler_dirs+= cc47
 . endif
+. if defined(WORLD_ALTCOMPILER) && (${WORLD_ALTCOMPILER} == "all" || ${WORLD_ALTCOMPILER:Mgcc80})
+SUBDIR+= cc80
+_altcompiler_dirs+= cc80
+. endif
 .endif
 
 .ORDER: ${BU_PRIMARY} gmp mpfr mpc cc50 ${_altcompiler_dirs}
index 9afd8ed..7a5c23c 100644 (file)
@@ -4,6 +4,7 @@
 FILES= bsd.README
 FILES+=        bsd.cpu.mk bsd.cpu.gcc47.mk bsd.cpu.custom.mk
 FILES+=        bsd.cpu.gcc50.mk
+FILES+=        bsd.cpu.gcc80.mk
 FILES+=        bsd.cpu.clang.mk
 FILES+=        bsd.dep.mk bsd.doc.mk bsd.files.mk bsd.patch.mk
 FILES+=        bsd.incs.mk bsd.init.mk
index 5cbeb8c..268063a 100644 (file)
@@ -19,6 +19,7 @@ bsd.lib.mk.
 bsd.cpu.custom.mk      - handle CPU flags for custom compilers
 bsd.cpu.gcc47.mk       - handle GCC 4.7 specific CPU flags & variables
 bsd.cpu.gcc50.mk       - handle GCC 5.0 specific CPU flags & variables
+bsd.cpu.gcc80.mk       - handle GCC 8.0 specific CPU flags & variables
 bsd.cpu.mk             - handle CPU flags & variables
 bsd.crunchgen.mk       - building crunched binaries using crunchgen(1)
 bsd.dep.mk             - handle Makefile dependencies
index 2d2c59c..faa624d 100644 (file)
@@ -44,6 +44,8 @@ CPUTYPE= ${FORCE_CPUTYPE}
 .  include <bsd.cpu.gcc47.mk>
 .elif ${CCVER} == gcc50
 .  include <bsd.cpu.gcc50.mk>
+.elif ${CCVER} == gcc80
+.  include <bsd.cpu.gcc80.mk>
 .elif ${CCVER:Mclang*}
 .  include <bsd.cpu.clang.mk>
 .else