1 # Buildsheet autogenerated by ravenadm tool -- Do not edit.
7 SDESC[standard]= GNU Compiler collection (GCC), Series 9
8 HOMEPAGE= https://gcc.gnu.org/
9 CONTACT= John_Marino[draco@marino.st]
12 SITES[main]= GCC/releases/gcc-9.3.0
13 DISTFILE[1]= gcc-9.3.0.tar.xz:main
15 SPKGS[standard]= complete
23 OPTIONS_AVAILABLE= none
24 OPTIONS_STANDARD= none
26 BUILD_DEPENDS= gmp:static:standard
29 BUILDRUN_DEPENDS= binutils:single:ravensys
30 B_DEPS[freebsd]= libiconv:static:standard
31 B_DEPS[darwin]= libiconv:static:standard
32 B_DEPS[solaris]= libiconv:static:standard
33 B_DEPS[dragonfly]= libiconv:static:standard
34 EXRUN[fortran_run]= gcc9:libs:standard
35 EXRUN[cxx_run]= gcc9:libs:standard
36 EXRUN[compilers]= gcc9:cxx_run:standard
37 EXRUN[ada_run]= gcc9:libs:standard
39 USES= cpe gmake libtool perl:build
43 LICENSE= GPLv3+:compilers LGPL3+:compilers
45 LICENSE_TERMS= compilers:{{WRKDIR}}/TERMS
46 LICENSE_FILE= GPLv3+:{{WRKSRC}}/COPYING3
47 LGPL3+:{{WRKSRC}}/COPYING3.LIB
48 GPLv3RLE+:{{WRKSRC}}/COPYING.RUNTIME
51 PREFIX= {{LOCALBASE}}/toolchain/{{NAMEBASE}}
54 FPC_EQUIVALENT= lang/gcc9
57 CONFIGURE_OUTSOURCE= yes
58 CONFIGURE_ARGS= --enable-languages="c,c++,ada,fortran"
59 --with-local-prefix={{LOCALBASE}}
60 --with-gmp={{LOCALBASE}}
61 --with-mpc={{LOCALBASE}}
62 --with-mpfr={{LOCALBASE}}
64 --enable-threads=posix
65 --enable-checking=release
69 --disable-libsanitizer
73 --with-pkgversion="Ravenports"
76 INSTALL_TARGET= install-strip
77 PLIST_SUB= GCCVER=9.3.0
78 TARGET={{CONFIGURE_TARGET}}
82 VAR_OPSYS[freebsd]= CONFIGURE_ARGS=--disable-libstdcxx-pch
83 CONFIGURE_ARGS=--with-gnu-as
84 CONFIGURE_ARGS=--with-as={{LOCALBASE}}/toolchain/bin/as
85 CONFIGURE_ARGS=--with-ld={{LOCALBASE}}/toolchain/bin/ld
86 CONFIGURE_ARGS=--with-libiconv-prefix={{WRKDIR}}/fake
87 VAR_OPSYS[sunos]= CONFIGURE_ARGS=--enable-symvers=no
88 CONFIGURE_ARGS=--with-gnu-as
89 CONFIGURE_ARGS=--with-as={{LOCALBASE}}/toolchain/bin/as
90 CONFIGURE_ARGS=--without-gnu-ld
91 CONFIGURE_ARGS=--with-libiconv-prefix={{WRKDIR}}/fake
92 VAR_OPSYS[darwin]= CONFIGURE_ARGS=--disable-libstdcxx-pch
93 CONFIGURE_ARGS=--with-ld=/usr/bin/ld
94 CONFIGURE_ARGS=--with-as=/usr/bin/as
95 CONFIGURE_ARGS=--with-libiconv-prefix={{WRKDIR}}/fake
96 VAR_OPSYS[dragonfly]= CONFIGURE_ARGS=--with-gnu-as
97 CONFIGURE_ARGS=--with-as={{LOCALBASE}}/toolchain/bin/as
98 CONFIGURE_ARGS=--with-ld={{LOCALBASE}}/toolchain/bin/ld
99 CONFIGURE_ARGS=--with-libiconv-prefix={{WRKDIR}}/fake
102 # Update LINK_SPEC to add gcc-aux lib runpath in every binary
103 @${ECHO} "Configuring LINK_SPEC runpath"
104 ${REINPLACE_CMD} -e 's;\@PREFIX\@;${PREFIX:H};g' \
105 -e 's;\@GCCAUX\@;${NAMEBASE};' \
106 -e 's;\@LOCALBASE\@;${LOCALBASE};g' \
107 ${WRKSRC}/gcc/gcc.c \
108 ${WRKSRC}/gcc/config/darwin.h \
109 ${WRKSRC}/gcc/config/dragonfly.h \
110 ${WRKSRC}/gcc/config/sol2.h \
111 ${WRKSRC}/gcc/config/i386/freebsd64.h \
112 ${WRKSRC}/gcc/config/i386/freebsd.h \
113 ${WRKSRC}/gcc/config/i386/gnu-user64.h \
114 ${WRKSRC}/gcc/config/aarch64/aarch64-freebsd.h \
115 ${WRKSRC}/gcc/ada/gnatls.adb
116 # Ensure dwarf4-compatible addr2line
117 ${REINPLACE_CMD} -e 's|/usr/bin/addr2line|${PREFIX:H}/bin/addr2line|g'\
118 ${WRKSRC}/gcc/ada/traceback_symbolic.c
119 ${REINPLACE_CMD} -e 's|static:crtbeginT.o%s;||' \
120 ${WRKSRC}/gcc/config/freebsd-spec.h
121 # Honor disable-dependency-tracking, fixed in master
122 ${REINPLACE_CMD} -E -e 's|^(M_DEPS = .*)|@AMDEP_TRUE@\1|'\
123 ${WRKSRC}/libatomic/Makefile.in
126 # undo BSD thin socket modification
127 ${MV} ${WRKSRC}/gcc/ada/libgnat/g-socthi.ads.orig \
128 ${WRKSRC}/gcc/ada/libgnat/g-socthi.ads
129 ${FIND} ${WRKSRC} -name configure | ${XARGS} \
130 ${SED} -i.mac -e 's|apple-darwin|raven-darwin|' \
131 ${WRKSRC}/gcc/configure
134 # undo BSD thin socket modification
135 ${MV} ${WRKSRC}/gcc/ada/libgnat/g-socthi.ads.orig \
136 ${WRKSRC}/gcc/ada/libgnat/g-socthi.ads
138 post-install-freebsd:
139 ${RM} -r ${STAGEDIR}${PREFIX}/lib/gcc/${CONFIGURE_TARGET}/9.3.0/include-fixed
141 post-install-dragonfly:
142 ${RM} -r ${STAGEDIR}${PREFIX}/lib/gcc/${CONFIGURE_TARGET}/9.3.0/include-fixed
145 cp ${STAGEDIR}${PREFIX}/bin/gcc ${STAGEDIR}${PREFIX}/bin/cc
146 ${RM} ${STAGEDIR}${MANPREFIX}/man/man7/*
147 ${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/gcc/${CONFIGURE_TARGET}/9.3.0/adalib/libgnarl.${LIBEXT}
148 ${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/gcc/${CONFIGURE_TARGET}/9.3.0/adalib/libgnat.${LIBEXT}
149 # remove when info pages re-enabled
150 ${RM} ${STAGEDIR}${PREFIX}/share/info/libitm.info
151 ${RM} ${STAGEDIR}${PREFIX}/share/info/libgomp.info
152 ${RM} ${STAGEDIR}${PREFIX}/share/info/libquadmath.info
155 ${HEAD} -n 19 ${WRKSRC}/gcc/gcc.h > ${WRKDIR}/TERMS
156 ${HEAD} -n 31 ${WRKSRC}/gcc/ada/adaint.h >> ${WRKDIR}/TERMS
157 ${HEAD} -n 18 ${WRKSRC}/libiberty/hex.c >> ${WRKDIR}/TERMS
158 # Use iconv_pic.a instead of iconv.a
159 if [ -f ${LOCALBASE}/include/iconv.h ]; then \
160 ${MKDIR} ${WRKDIR}/fake/include ${WRKDIR}/fake/lib ;\
161 ${INSTALL_DATA} ${LOCALBASE}/include/iconv.h \
162 ${WRKDIR}/fake/include/ ;\
163 ${INSTALL_DATA} ${LOCALBASE}/lib/libiconv_pic.a \
164 ${WRKDIR}/fake/lib/libiconv.a ;\
168 ${REINPLACE_CMD} -e 's|cp -p -r |cp -RP |' \
169 ${WRKSRC}/gcc/Makefile.in
170 ${REINPLACE_CMD} -e 's| install-gcc-specs||' \
171 ${WRKSRC}/gcc/ada/gcc-interface/Makefile.in
172 # undo BSD thin socket modification
173 ${MV} ${WRKSRC}/gcc/ada/libgnat/g-socthi.ads.orig \
174 ${WRKSRC}/gcc/ada/libgnat/g-socthi.ads
176 [FILE:329:descriptions/desc.compilers]
177 This is series 9 of the GNU Compiler Collection (GCC)
179 This compiler supports the following languages: C, C++, Fortran and Ada.
180 The GNAT front-end implements the full Ada-83, Ada-95, Ada-2005 and
181 Ada-2012 standards. The C++ front-end defaults to the gnu++14 standard.
183 This package contains the compilers, drivers, and headers.
186 [FILE:104:descriptions/desc.ada_run]
187 This is series 9 of the GNU Compiler Collection (GCC)
189 This package contains the Ada runtime libraries.
192 [FILE:104:descriptions/desc.cxx_run]
193 This is series 9 of the GNU Compiler Collection (GCC)
195 This package contains the C++ runtime libraries.
198 [FILE:108:descriptions/desc.fortran_run]
199 This is series 9 of the GNU Compiler Collection (GCC)
201 This package contains the Fortran runtime libraries.
204 [FILE:162:descriptions/desc.libs]
205 This is series 9 of the GNU Compiler Collection (GCC)
207 This package contains the remaining runtime libraries after excluding
208 the Ada, C++, and Fortran libraries.
211 [FILE:126:descriptions/desc.infopages]
212 This is series 9 of the GNU Compiler Collection (GCC)
214 This package contains the man pages and info pages that come with GCC.
218 71e197867611f6054aa1119b13a0c0abac12834765fe2d81f35ac57f84f742d1 70533868 gcc-9.3.0.tar.xz
221 [FILE:28970:manifests/plist.compilers]
222 @comment lib/gcc/%%TARGET%%/%%GCCVER%%/include/cilk/cilk.h
223 @comment lib/gcc/%%TARGET%%/%%GCCVER%%/include/cilk/cilk_api.h
224 @comment lib/gcc/%%TARGET%%/%%GCCVER%%/include/cilk/cilk_api_linux.h
225 @comment lib/gcc/%%TARGET%%/%%GCCVER%%/include/cilk/cilk_stub.h
226 @comment lib/gcc/%%TARGET%%/%%GCCVER%%/include/cilk/cilk_undocumented.h
227 @comment lib/gcc/%%TARGET%%/%%GCCVER%%/include/cilk/common.h
228 @comment lib/gcc/%%TARGET%%/%%GCCVER%%/include/cilk/holder.h
229 @comment lib/gcc/%%TARGET%%/%%GCCVER%%/include/cilk/hyperobject_base.h
230 @comment lib/gcc/%%TARGET%%/%%GCCVER%%/include/cilk/metaprogramming.h
231 @comment lib/gcc/%%TARGET%%/%%GCCVER%%/include/cilk/reducer.h
232 @comment lib/gcc/%%TARGET%%/%%GCCVER%%/include/cilk/reducer_file.h
233 @comment lib/gcc/%%TARGET%%/%%GCCVER%%/include/cilk/reducer_list.h
234 @comment lib/gcc/%%TARGET%%/%%GCCVER%%/include/cilk/reducer_max.h
235 @comment lib/gcc/%%TARGET%%/%%GCCVER%%/include/cilk/reducer_min.h
236 @comment lib/gcc/%%TARGET%%/%%GCCVER%%/include/cilk/reducer_min_max.h
237 @comment lib/gcc/%%TARGET%%/%%GCCVER%%/include/cilk/reducer_opadd.h
238 @comment lib/gcc/%%TARGET%%/%%GCCVER%%/include/cilk/reducer_opand.h
239 @comment lib/gcc/%%TARGET%%/%%GCCVER%%/include/cilk/reducer_opmul.h
240 @comment lib/gcc/%%TARGET%%/%%GCCVER%%/include/cilk/reducer_opor.h
241 @comment lib/gcc/%%TARGET%%/%%GCCVER%%/include/cilk/reducer_opxor.h
242 @comment lib/gcc/%%TARGET%%/%%GCCVER%%/include/cilk/reducer_ostream.h
243 @comment lib/gcc/%%TARGET%%/%%GCCVER%%/include/cilk/reducer_string.h
244 %%EXCLUDE-DARWIN%%lib/gcc/%%TARGET%%/%%GCCVER%%/
247 %%EXCLUDE-DARWIN%%lib/gcc/%%TARGET%%/%%GCCVER%%/plugin/
249 libcc1plugin.so.0.0.0
251 libcp1plugin.so.0.0.0
252 %%EXCLUDE-DARWIN%%lib/gcc/%%TARGET%%/%%GCCVER%%/plugin/include/config/
255 %%EXCLUDE-DARWIN%%lib/gcc/%%TARGET%%/%%GCCVER%%/plugin/include/config/i386/
259 %%EXCLUDE-DARWIN%%libexec/gcc/%%TARGET%%/%%GCCVER%%/
262 liblto_plugin.so.0.0.0
263 %%ONLY-DARWIN%%lib/gcc/%%TARGET%%/%%GCCVER%%/
271 %%ONLY-DARWIN%%lib/gcc/%%TARGET%%/%%GCCVER%%/include/tgmath.h
272 %%ONLY-DARWIN%%lib/gcc/%%TARGET%%/%%GCCVER%%/include-fixed/
273 AvailabilityInternal.h
280 %%ONLY-DARWIN%%lib/gcc/%%TARGET%%/%%GCCVER%%/include-fixed/os/trace.h
281 %%ONLY-DARWIN%%lib/gcc/%%TARGET%%/%%GCCVER%%/plugin/
282 libcc1plugin.0.%%SHARED_OBJECT%%
283 libcp1plugin.0.%%SHARED_OBJECT%%
284 %%ONLY-DARWIN%%lib/gcc/%%TARGET%%/%%GCCVER%%/plugin/include/config/
291 %%ONLY-DARWIN%%lib/gcc/%%TARGET%%/%%GCCVER%%/plugin/include/config/i386/
294 %%ONLY-DRAGONFLY%%lib/gcc/%%TARGET%%/%%GCCVER%%/
297 %%ONLY-DRAGONFLY%%lib/gcc/%%TARGET%%/%%GCCVER%%/include/tgmath.h
298 %%ONLY-DRAGONFLY%%lib/gcc/%%TARGET%%/%%GCCVER%%/plugin/include/config/
301 %%ONLY-DRAGONFLY%%lib/gcc/%%TARGET%%/%%GCCVER%%/plugin/include/config/i386/dragonfly.h
302 %%ONLY-FREEBSD%%lib/gcc/%%TARGET%%/%%GCCVER%%/
305 %%ONLY-FREEBSD%%lib/gcc/%%TARGET%%/%%GCCVER%%/include/tgmath.h
306 %%ONLY-FREEBSD%%lib/gcc/%%TARGET%%/%%GCCVER%%/plugin/include/config/
310 %%ONLY-FREEBSD%%lib/gcc/%%TARGET%%/%%GCCVER%%/plugin/include/config/i386/
313 %%ONLY-LINUX%%lib/gcc/%%TARGET%%/%%GCCVER%%/
321 %%ONLY-LINUX%%lib/gcc/%%TARGET%%/%%GCCVER%%/include-fixed/
325 %%ONLY-LINUX%%lib/gcc/%%TARGET%%/%%GCCVER%%/include-fixed/linux/a.out.h
326 %%ONLY-LINUX%%lib/gcc/%%TARGET%%/%%GCCVER%%/plugin/include/config/
332 %%ONLY-LINUX%%lib/gcc/%%TARGET%%/%%GCCVER%%/plugin/include/config/i386/
340 %%ONLY-SUNOS%%lib/gcc/%%TARGET%%/%%GCCVER%%/
346 %%ONLY-SUNOS%%lib/gcc/%%TARGET%%/%%GCCVER%%/include/tgmath.h
347 %%ONLY-SUNOS%%lib/gcc/%%TARGET%%/%%GCCVER%%/include-fixed/
356 %%ONLY-SUNOS%%lib/gcc/%%TARGET%%/%%GCCVER%%/include-fixed/dat/dat_platform_specific.h
357 %%ONLY-SUNOS%%lib/gcc/%%TARGET%%/%%GCCVER%%/include-fixed/iso/
363 %%ONLY-SUNOS%%lib/gcc/%%TARGET%%/%%GCCVER%%/include-fixed/mps/secport.h
364 %%ONLY-SUNOS%%lib/gcc/%%TARGET%%/%%GCCVER%%/include-fixed/netinet/
372 %%ONLY-SUNOS%%lib/gcc/%%TARGET%%/%%GCCVER%%/include-fixed/sys/
377 %%ONLY-SUNOS%%lib/gcc/%%TARGET%%/%%GCCVER%%/plugin/include/config/
381 %%ONLY-SUNOS%%lib/gcc/%%TARGET%%/%%GCCVER%%/plugin/include/config/i386/
388 %%TARGET%%-gcc-%%GCCVER%%
391 %%TARGET%%-gcc-ranlib
418 include/c++/%%GCCVER%%/
514 include/c++/%%GCCVER%%/%%TARGET%%/bits/
537 include/c++/%%GCCVER%%/%%TARGET%%/ext/opt_random.h
538 include/c++/%%GCCVER%%/backward/
547 include/c++/%%GCCVER%%/bits/
554 atomic_lockfree_defines.h
559 boost_concept_check.h
566 cxxabi_init_exception.h
568 enable_special_members.h
597 locale_facets_nonio.h
598 locale_facets_nonio.tcc
645 stl_iterator_base_funcs.h
646 stl_iterator_base_types.h
654 stl_raw_storage_iter.h
678 include/c++/%%GCCVER%%/debug/
698 safe_local_iterator.h
699 safe_local_iterator.tcc
702 safe_unordered_base.h
703 safe_unordered_container.h
704 safe_unordered_container.tcc
712 include/c++/%%GCCVER%%/decimal/
715 include/c++/%%GCCVER%%/experimental/
754 include/c++/%%GCCVER%%/experimental/bits/
763 include/c++/%%GCCVER%%/ext/
772 codecvt_specializations.h
808 include/c++/%%GCCVER%%/ext/pb_ds/
812 list_update_policy.hpp
817 include/c++/%%GCCVER%%/ext/pb_ds/detail/
819 container_base_dispatch.hpp
821 priority_queue_base_dispatch.hpp
822 standard_policies.hpp
826 include/c++/%%GCCVER%%/ext/pb_ds/detail/bin_search_tree_/
828 constructors_destructor_fn_imps.hpp
834 iterators_fn_imps.hpp
837 policy_access_fn_imps.hpp
840 split_join_fn_imps.hpp
842 include/c++/%%GCCVER%%/ext/pb_ds/detail/binary_heap_/
845 constructors_destructor_fn_imps.hpp
853 iterators_fn_imps.hpp
854 point_const_iterator.hpp
855 policy_access_fn_imps.hpp
857 split_join_fn_imps.hpp
859 include/c++/%%GCCVER%%/ext/pb_ds/detail/binomial_heap_/
861 constructors_destructor_fn_imps.hpp
863 include/c++/%%GCCVER%%/ext/pb_ds/detail/binomial_heap_base_/
864 binomial_heap_base_.hpp
865 constructors_destructor_fn_imps.hpp
870 split_join_fn_imps.hpp
871 include/c++/%%GCCVER%%/ext/pb_ds/detail/branch_policy/
873 null_node_metadata.hpp
875 include/c++/%%GCCVER%%/ext/pb_ds/detail/cc_hash_table_map_/
878 cond_key_dtor_entry_dealtor.hpp
879 constructor_destructor_fn_imps.hpp
880 constructor_destructor_no_store_hash_fn_imps.hpp
881 constructor_destructor_store_hash_fn_imps.hpp
883 debug_no_store_hash_fn_imps.hpp
884 debug_store_hash_fn_imps.hpp
885 entry_list_fn_imps.hpp
887 erase_no_store_hash_fn_imps.hpp
888 erase_store_hash_fn_imps.hpp
890 find_store_hash_fn_imps.hpp
893 insert_no_store_hash_fn_imps.hpp
894 insert_store_hash_fn_imps.hpp
895 iterators_fn_imps.hpp
896 policy_access_fn_imps.hpp
898 resize_no_store_hash_fn_imps.hpp
899 resize_store_hash_fn_imps.hpp
902 include/c++/%%GCCVER%%/ext/pb_ds/detail/eq_fn/
905 include/c++/%%GCCVER%%/ext/pb_ds/detail/gp_hash_table_map_/
906 constructor_destructor_fn_imps.hpp
907 constructor_destructor_no_store_hash_fn_imps.hpp
908 constructor_destructor_store_hash_fn_imps.hpp
910 debug_no_store_hash_fn_imps.hpp
911 debug_store_hash_fn_imps.hpp
913 erase_no_store_hash_fn_imps.hpp
914 erase_store_hash_fn_imps.hpp
916 find_no_store_hash_fn_imps.hpp
917 find_store_hash_fn_imps.hpp
921 insert_no_store_hash_fn_imps.hpp
922 insert_store_hash_fn_imps.hpp
924 policy_access_fn_imps.hpp
926 resize_no_store_hash_fn_imps.hpp
927 resize_store_hash_fn_imps.hpp
929 include/c++/%%GCCVER%%/ext/pb_ds/detail/hash_fn/
930 direct_mask_range_hashing_imp.hpp
931 direct_mod_range_hashing_imp.hpp
932 linear_probe_fn_imp.hpp
933 mask_based_range_hashing.hpp
934 mod_based_range_hashing.hpp
936 quadratic_probe_fn_imp.hpp
940 sample_range_hashing.hpp
941 sample_ranged_hash_fn.hpp
942 sample_ranged_probe_fn.hpp
943 include/c++/%%GCCVER%%/ext/pb_ds/detail/left_child_next_sibling_heap_/
945 constructors_destructor_fn_imps.hpp
950 iterators_fn_imps.hpp
951 left_child_next_sibling_heap_.hpp
953 point_const_iterator.hpp
954 policy_access_fn_imps.hpp
956 include/c++/%%GCCVER%%/ext/pb_ds/detail/list_update_map_/
957 constructor_destructor_fn_imps.hpp
959 entry_metadata_base.hpp
964 iterators_fn_imps.hpp
967 include/c++/%%GCCVER%%/ext/pb_ds/detail/list_update_policy/
968 lu_counter_metadata.hpp
969 sample_update_policy.hpp
970 include/c++/%%GCCVER%%/ext/pb_ds/detail/ov_tree_map_/
971 constructors_destructor_fn_imps.hpp
976 iterators_fn_imps.hpp
979 policy_access_fn_imps.hpp
980 split_join_fn_imps.hpp
982 include/c++/%%GCCVER%%/ext/pb_ds/detail/pairing_heap_/
983 constructors_destructor_fn_imps.hpp
989 split_join_fn_imps.hpp
990 include/c++/%%GCCVER%%/ext/pb_ds/detail/pat_trie_/
991 constructors_destructor_fn_imps.hpp
996 insert_join_fn_imps.hpp
997 iterators_fn_imps.hpp
1000 policy_access_fn_imps.hpp
1004 synth_access_traits.hpp
1008 include/c++/%%GCCVER%%/ext/pb_ds/detail/rb_tree_map_/
1009 constructors_destructor_fn_imps.hpp
1017 split_join_fn_imps.hpp
1019 include/c++/%%GCCVER%%/ext/pb_ds/detail/rc_binomial_heap_/
1020 constructors_destructor_fn_imps.hpp
1025 rc_binomial_heap_.hpp
1026 split_join_fn_imps.hpp
1028 include/c++/%%GCCVER%%/ext/pb_ds/detail/resize_policy/
1029 cc_hash_max_collision_check_resize_trigger_imp.hpp
1030 hash_exponential_size_policy_imp.hpp
1031 hash_load_check_resize_trigger_imp.hpp
1032 hash_load_check_resize_trigger_size_base.hpp
1033 hash_prime_size_policy_imp.hpp
1034 hash_standard_resize_policy_imp.hpp
1035 sample_resize_policy.hpp
1036 sample_resize_trigger.hpp
1037 sample_size_policy.hpp
1038 include/c++/%%GCCVER%%/ext/pb_ds/detail/splay_tree_/
1039 constructors_destructor_fn_imps.hpp
1048 split_join_fn_imps.hpp
1050 include/c++/%%GCCVER%%/ext/pb_ds/detail/thin_heap_/
1051 constructors_destructor_fn_imps.hpp
1056 split_join_fn_imps.hpp
1059 include/c++/%%GCCVER%%/ext/pb_ds/detail/tree_policy/
1060 node_metadata_selector.hpp
1061 order_statistics_imp.hpp
1062 sample_tree_node_update.hpp
1063 include/c++/%%GCCVER%%/ext/pb_ds/detail/trie_policy/
1064 node_metadata_selector.hpp
1065 order_statistics_imp.hpp
1066 prefix_search_node_update_imp.hpp
1067 sample_trie_access_traits.hpp
1068 sample_trie_node_update.hpp
1069 trie_policy_base.hpp
1070 trie_string_access_traits_imp.hpp
1071 include/c++/%%GCCVER%%/ext/pb_ds/detail/unordered_iterator/
1074 point_const_iterator.hpp
1076 include/c++/%%GCCVER%%/parallel/
1081 balanced_quicksort.h
1086 compiletime_settings.h
1092 for_each_selectors.h
1097 multiseq_selection.h
1099 multiway_mergesort.h
1120 include/c++/%%GCCVER%%/profile/
1139 include/c++/%%GCCVER%%/profile/impl/
1142 profiler_container_size.h
1143 profiler_hash_func.h
1144 profiler_hashtable_size.h
1145 profiler_list_to_slist.h
1146 profiler_list_to_vector.h
1147 profiler_map_to_unordered_map.h
1151 profiler_vector_size.h
1152 profiler_vector_to_list.h
1153 include/c++/%%GCCVER%%/pstl/
1158 glue_algorithm_defs.h
1159 glue_algorithm_impl.h
1160 glue_execution_defs.h
1169 parallel_backend_tbb.h
1170 parallel_backend_utils.h
1173 unseq_backend_simd.h
1175 include/c++/%%GCCVER%%/tr1/
1209 legendre_function.tcc
1213 modified_bessel_func.tcc
1222 special_function_util.h
1238 include/c++/%%GCCVER%%/tr2/
1245 lib/gcc/%%TARGET%%/%%GCCVER%%/
1250 lib/gcc/%%TARGET%%/%%GCCVER%%/finclude/
1262 lib/gcc/%%TARGET%%/%%GCCVER%%/include/
1263 ISO_Fortran_binding.h
1267 avx5124fmapsintrin.h
1268 avx5124vnniwintrin.h
1269 avx512bitalgintrin.h
1276 avx512ifmavlintrin.h
1279 avx512vbmi2vlintrin.h
1281 avx512vbmivlintrin.h
1286 avx512vnnivlintrin.h
1287 avx512vpopcntdqintrin.h
1288 avx512vpopcntdqvlintrin.h
1360 lib/gcc/%%TARGET%%/%%GCCVER%%/include/ssp/
1365 lib/gcc/%%TARGET%%/%%GCCVER%%/install-tools/
1370 lib/gcc/%%TARGET%%/%%GCCVER%%/install-tools/include/
1373 lib/gcc/%%TARGET%%/%%GCCVER%%/plugin/
1375 libcc1plugin.%%SHARED_OBJECT%%
1376 libcp1plugin.%%SHARED_OBJECT%%
1377 lib/gcc/%%TARGET%%/%%GCCVER%%/plugin/include/
1490 gimple-pretty-print.h
1491 gimple-ssa-evrp-analyze.h
1492 gimple-ssa-warn-restrict.h
1517 highlev-plugin-common.h
1539 int-vector-builder.h
1547 ipa-param-manipulation.h
1642 rtx-vector-builder.h
1651 selftest-diagnostic.h
1670 substring-locations.h
1677 target-hooks-macros.h
1714 tree-scalar-evolution.h
1722 tree-ssa-loop-ivopts.h
1723 tree-ssa-loop-manip.h
1724 tree-ssa-loop-niter.h
1727 tree-ssa-propagate.h
1729 tree-ssa-scopedtables.h
1732 tree-ssa-threadedge.h
1733 tree-ssa-threadupdate.h
1738 tree-switch-conversion.h
1739 tree-vector-builder.h
1766 lib/gcc/%%TARGET%%/%%GCCVER%%/plugin/include/ada/gcc-interface/ada-tree.def
1767 lib/gcc/%%TARGET%%/%%GCCVER%%/plugin/include/c-family/
1773 lib/gcc/%%TARGET%%/%%GCCVER%%/plugin/include/config/
1776 lib/gcc/%%TARGET%%/%%GCCVER%%/plugin/include/config/i386/
1783 lib/gcc/%%TARGET%%/%%GCCVER%%/plugin/include/cp/
1790 lib/gcc/%%TARGET%%/%%GCCVER%%/plugin/include/d/d-tree.def
1791 lib/gcc/%%TARGET%%/%%GCCVER%%/plugin/include/objc/objc-tree.def
1792 libexec/gcc/%%TARGET%%/%%GCCVER%%/
1800 libexec/gcc/%%TARGET%%/%%GCCVER%%/install-tools/
1805 libexec/gcc/%%TARGET%%/%%GCCVER%%/plugin/gengtype
1808 [FILE:28653:manifests/plist.ada_run]
1809 %%EXCLUDE-DARWIN%%lib/gcc/%%TARGET%%/%%GCCVER%%/adainclude/
1813 %%EXCLUDE-DARWIN%%lib/gcc/%%TARGET%%/%%GCCVER%%/adalib/
1819 %%ONLY-DARWIN%%lib/gcc/%%TARGET%%/%%GCCVER%%/adainclude/a-exetim.adb
1820 %%ONLY-DARWIN%%lib/gcc/%%TARGET%%/%%GCCVER%%/adalib/a-exetim.ali
1821 %%ONLY-DARWIN%%lib/gcc/%%TARGET%%/%%GCCVER%%/adalib/libgnarl-%%BRANCH%%.dylib.dSYM/Contents/Info.plist
1822 %%ONLY-DARWIN%%lib/gcc/%%TARGET%%/%%GCCVER%%/adalib/libgnarl-%%BRANCH%%.dylib.dSYM/Contents/Resources/DWARF/libgnarl-%%BRANCH%%.dylib
1823 %%ONLY-DARWIN%%lib/gcc/%%TARGET%%/%%GCCVER%%/adalib/libgnat-%%BRANCH%%.dylib.dSYM/Contents/Info.plist
1824 %%ONLY-DARWIN%%lib/gcc/%%TARGET%%/%%GCCVER%%/adalib/libgnat-%%BRANCH%%.dylib.dSYM/Contents/Resources/DWARF/libgnat-%%BRANCH%%.dylib
1825 %%ONLY-LINUX%%lib/gcc/%%TARGET%%/%%GCCVER%%/adainclude/
1828 %%ONLY-LINUX%%lib/gcc/%%TARGET%%/%%GCCVER%%/adalib/
1831 lib/gcc/%%TARGET%%/%%GCCVER%%/adainclude/
3107 lib/gcc/%%TARGET%%/%%GCCVER%%/adalib/
3538 libgnarl-%%BRANCH%%.so
3542 libgnat-%%BRANCH%%.so
3816 [FILE:345:manifests/plist.cxx_run]
3823 %%EXCLUDE-DARWIN%%%%ASLIB%%/
3824 libstdc++.so.%%VSTDCXX%%
3825 libstdc++.so.%%VSTDCXX%%-gdb.py
3826 %%ONLY-DARWIN%%%%ASLIB%%/libstdc++.a-gdb.py
3827 share/gcc-%%GCCVER%%/python/libstdcxx/__init__.py
3828 share/gcc-%%GCCVER%%/python/libstdcxx/v6/
3834 [FILE:269:manifests/plist.fortran_run]
3847 %%EXCLUDE-DARWIN%%%%ASLIB%%/
3848 libgfortran.so.5.0.0
3850 libquadmath.so.0.0.0
3853 [FILE:660:manifests/plist.libs]
3854 @comment %%ASLIB%%/libcilkrts.a
3855 @comment %%ASLIB%%/libcilkrts.so
3856 @comment %%ASLIB%%/libcilkrts.so.5
3857 @comment %%ASLIB%%/libcilkrts.so.5.0.0
3858 @comment %%ASLIB%%/libcilkrts.spec
3863 libcc1.%%SHARED_OBJECT%%
3873 %%EXCLUDE-DARWIN%%%%ASLIB%%/
3875 libcc1.%%SHARED_OBJECT%%.0
3880 %%ONLY-DARWIN%%%%ASLIB%%/
3881 libcc1.0.%%SHARED_OBJECT%%
3882 libgcc_ext.10.4.dylib
3883 libgcc_ext.10.5.dylib
3884 libgcc_s_ppc64.1.dylib
3885 libgcc_s_x86_64.1.dylib
3888 [FILE:104:manifests/plist.infopages]
3899 [FILE:43251:patches/patch-diff-ada]
3900 --- gcc/ada/Makefile.rtl.orig
3901 +++ gcc/ada/Makefile.rtl
3902 @@ -1377,6 +1377,7 @@
3903 s-linux.ads<libgnarl/s-linux__android.ads \
3904 s-osinte.adb<libgnarl/s-osinte__android.adb \
3905 s-osinte.ads<libgnarl/s-osinte__android.ads \
3906 + g-socthi.adb<libgnat/g-socthi__bsd.adb \
3907 s-osprim.adb<libgnat/s-osprim__posix.adb \
3908 s-taprop.adb<libgnarl/s-taprop__posix.adb \
3909 s-taspri.ads<libgnarl/s-taspri__posix.ads \
3910 @@ -1470,6 +1471,7 @@
3911 s-osinte.adb<libgnarl/s-osinte__solaris.adb \
3912 s-osinte.ads<libgnarl/s-osinte__solaris.ads \
3913 s-osprim.adb<libgnat/s-osprim__solaris.adb \
3914 + s-trasym.adb<libgnat/s-trasym__bsd.adb \
3915 s-taprop.adb<libgnarl/s-taprop__solaris.adb \
3916 s-tasinf.adb<libgnarl/s-tasinf__solaris.adb \
3917 s-tasinf.ads<libgnarl/s-tasinf__solaris.ads \
3918 @@ -1502,6 +1504,8 @@
3919 EXTRA_GNATRTL_NONTASKING_OBJS += $(TRASYM_DWARF_UNIX_OBJS)
3922 + EXTRA_LIBGNAT_SRCS+= traceback_symbolic.c
3923 + EXTRA_LIBGNAT_OBJS+= traceback_symbolic.o
3924 THREADSLIB = -lposix4 -lthread
3925 MISCLIB = -lposix4 -lnsl -lsocket
3927 @@ -1641,6 +1645,38 @@
3928 LIBRARY_VERSION := $(LIB_VERSION)
3932 +ifeq ($(strip $(filter-out %86 linux-android,$(target_cpu) $(target_os))),)
3933 + LIBGNAT_TARGET_PAIRS = \
3934 + a-intnam.ads<libgnarl/a-intnam__linux.ads \
3935 + s-inmaop.adb<libgnarl/s-inmaop__posix.adb \
3936 + s-intman.adb<libgnarl/s-intman__posix.adb \
3937 + s-linux.ads<libgnarl/s-linux__android.ads \
3938 + s-osinte.adb<libgnarl/s-osinte__android.adb \
3939 + s-osinte.ads<libgnarl/s-osinte__android.ads \
3940 + g-socthi.adb<libgnat/g-socthi__bsd.adb \
3941 + s-osprim.adb<libgnat/s-osprim__posix.adb \
3942 + s-taprop.adb<libgnarl/s-taprop__posix.adb \
3943 + s-taspri.ads<libgnarl/s-taspri__posix.ads \
3944 + s-tpopsp.adb<libgnarl/s-tpopsp__posix-foreign.adb \
3945 + $(ATOMICS_TARGET_PAIRS) \
3946 + $(ATOMICS_BUILTINS_TARGET_PAIRS) \
3947 + system.ads<libgnat/system-linux-x86.ads
3949 + TOOLS_TARGET_PAIRS = indepsw.adb<indepsw-gnu.adb
3951 + EXTRA_LIBGNAT_OBJS=
3952 + EXTRA_GNATRTL_TASKING_OBJS=s-linux.o
3953 + EXTRA_GNATRTL_NONTASKING_OBJS=
3958 + GNATLIB_SHARED = gnatlib-shared-dual
3959 + LIBRARY_VERSION := $(LIB_VERSION)
3964 ifeq ($(strip $(filter-out %aarch64 freebsd%,$(target_cpu) $(target_os))),)
3965 LIBGNAT_TARGET_PAIRS = \
3966 @@ -1650,7 +1686,9 @@
3967 s-mudido.adb<libgnarl/s-mudido__affinity.adb \
3968 s-osinte.adb<libgnarl/s-osinte__freebsd.adb \
3969 s-osinte.ads<libgnarl/s-osinte__freebsd.ads \
3970 + g-socthi.adb<libgnat/g-socthi__bsd.adb \
3971 s-osprim.adb<libgnat/s-osprim__posix.adb \
3972 + s-trasym.adb<libgnat/s-trasym__bsd.adb \
3973 s-taprop.adb<libgnarl/s-taprop__posix.adb \
3974 s-taspri.ads<libgnarl/s-taspri__posix.ads \
3975 s-tpopsp.adb<libgnarl/s-tpopsp__posix.adb \
3976 @@ -1660,6 +1698,9 @@
3978 GNATLIB_SHARED = gnatlib-shared-dual
3980 + EXTRA_LIBGNAT_SRCS+= traceback_symbolic.c
3981 + EXTRA_LIBGNAT_OBJS+= traceback_symbolic.o
3984 THREADSLIB= -lpthread
3986 @@ -1676,7 +1717,9 @@
3987 s-mudido.adb<libgnarl/s-mudido__affinity.adb \
3988 s-osinte.adb<libgnarl/s-osinte__freebsd.adb \
3989 s-osinte.ads<libgnarl/s-osinte__freebsd.ads \
3990 + g-socthi.adb<libgnat/g-socthi__bsd.adb \
3991 s-osprim.adb<libgnat/s-osprim__posix.adb \
3992 + s-trasym.adb<libgnat/s-trasym__bsd.adb \
3993 s-taprop.adb<libgnarl/s-taprop__posix.adb \
3994 s-taspri.ads<libgnarl/s-taspri__posix.ads \
3995 s-tpopsp.adb<libgnarl/s-tpopsp__posix.adb \
3996 @@ -1687,6 +1730,8 @@
3998 GNATLIB_SHARED = gnatlib-shared-dual
4000 + EXTRA_LIBGNAT_SRCS+= traceback_symbolic.c
4001 + EXTRA_LIBGNAT_OBJS+= traceback_symbolic.o
4002 EXTRA_GNATRTL_NONTASKING_OBJS += g-sse.o g-ssvety.o
4003 EXTRA_GNATRTL_NONTASKING_OBJS += $(TRASYM_DWARF_UNIX_OBJS)
4005 @@ -1706,7 +1751,9 @@
4006 s-mudido.adb<libgnarl/s-mudido__affinity.adb \
4007 s-osinte.adb<libgnarl/s-osinte__freebsd.adb \
4008 s-osinte.ads<libgnarl/s-osinte__freebsd.ads \
4009 + g-socthi.adb<libgnat/g-socthi__bsd.adb \
4010 s-osprim.adb<libgnat/s-osprim__posix.adb \
4011 + s-trasym.adb<libgnat/s-trasym__bsd.adb \
4012 s-taprop.adb<libgnarl/s-taprop__posix.adb \
4013 s-taspri.ads<libgnarl/s-taspri__posix.ads \
4014 s-tpopsp.adb<libgnarl/s-tpopsp__posix.adb \
4015 @@ -1717,6 +1764,8 @@
4017 GNATLIB_SHARED = gnatlib-shared-dual
4019 + EXTRA_LIBGNAT_SRCS+= traceback_symbolic.c
4020 + EXTRA_LIBGNAT_OBJS+= traceback_symbolic.o
4021 EXTRA_GNATRTL_NONTASKING_OBJS += g-sse.o g-ssvety.o
4022 EXTRA_GNATRTL_NONTASKING_OBJS += $(TRASYM_DWARF_UNIX_OBJS)
4024 @@ -1736,17 +1785,23 @@
4025 s-mudido.adb<libgnarl/s-mudido__affinity.adb \
4026 s-osinte.adb<libgnarl/s-osinte__dragonfly.adb \
4027 s-osinte.ads<libgnarl/s-osinte__dragonfly.ads \
4028 + g-socthi.adb<libgnat/g-socthi__bsd.adb \
4029 s-osprim.adb<libgnat/s-osprim__posix.adb \
4030 + s-trasym.adb<libgnat/s-trasym__bsd.adb \
4031 s-taprop.adb<libgnarl/s-taprop__posix.adb \
4032 s-taspri.ads<libgnarl/s-taspri__posix.ads \
4033 s-tpopsp.adb<libgnarl/s-tpopsp__posix.adb \
4034 + $(TRASYM_DWARF_UNIX_PAIRS) \
4035 $(ATOMICS_TARGET_PAIRS) \
4036 $(X86_64_TARGET_PAIRS) \
4037 system.ads<libgnat/system-dragonfly-x86_64.ads
4039 GNATLIB_SHARED = gnatlib-shared-dual
4041 - EXTRA_GNATRTL_NONTASKING_OBJS=g-sse.o g-ssvety.o
4042 + EXTRA_LIBGNAT_SRCS+= traceback_symbolic.c
4043 + EXTRA_LIBGNAT_OBJS+= traceback_symbolic.o
4044 + EXTRA_GNATRTL_NONTASKING_OBJS += g-sse.o g-ssvety.o
4045 + EXTRA_GNATRTL_NONTASKING_OBJS += $(TRASYM_DWARF_UNIX_OBJS)
4048 THREADSLIB= -lpthread
4049 --- gcc/ada/adaint.c.orig
4050 +++ gcc/ada/adaint.c
4051 @@ -1190,6 +1190,47 @@
4055 +#elif defined (__ANDROID__)
4058 + * ext2 /ext3/ext4/fat16/fat32 have no path limits
4059 + * /data/local/tmp normally requires rooted devices, if it even exists
4060 + * /sdcard is the standard location for external storage. Nativeactivity
4061 + * manifest needs to authorize its use, otherwise it might not have the
4062 + * proper permissions.
4066 + char *datadir = getenv ("ANDROID_DATA");
4068 + if (datadir == NULL)
4069 + strncpy (tmp_filename, "/data/local/tmp/gnat-XXXXXX", L_tmpnam);
4071 + snprintf (tmp_filename, L_tmpnam, "%s/local/tmp/gnat-XXXXXX", datadir);
4073 + testfd = mkstemp (tmp_filename);
4080 + char *sdcard = getenv ("EXTERNAL_STORAGE");
4082 + if (sdcard == NULL)
4083 + strncpy (tmp_filename, "/sdcard/gnat-XXXXXX", L_tmpnam);
4085 + snprintf (tmp_filename, L_tmpnam, "%s/gnat-XXXXXX", sdcard);
4087 + testfd = mkstemp (tmp_filename);
4094 + tmpnam (tmp_filename);
4096 #elif defined (__linux__) || defined (__FreeBSD__) || defined (__NetBSD__) \
4097 || defined (__OpenBSD__) || defined (__GLIBC__) || defined (__ANDROID__) \
4098 || defined (__DragonFly__) || defined (__QNX__)
4099 --- gcc/ada/cio.c.orig
4103 /* Don't use macros on GNU/Linux since they cause incompatible changes between
4104 glibc 2.0 and 2.1 */
4106 +#if defined __linux__ && !defined __ANDROID__
4110 --- gcc/ada/cstreams.c.orig
4111 +++ gcc/ada/cstreams.c
4117 +#if defined __linux__ && !defined __ANDROID__
4118 /* Don't use macros on GNU/Linux since they cause incompatible changes between
4119 glibc 2.0 and 2.1 */
4121 --- gcc/ada/gnatchop.adb.orig
4122 +++ gcc/ada/gnatchop.adb
4124 Config_File_Name : constant String_Access := new String'("gnat.adc");
4125 -- The name of the file holding the GNAT configuration pragmas
4127 - Gcc : String_Access := new String'("gcc");
4128 + Gcc : String_Access := new String'("ada");
4129 -- May be modified by switch --GCC=
4131 Gcc_Set : Boolean := False;
4132 --- gcc/ada/gnatlink.adb.orig
4133 +++ gcc/ada/gnatlink.adb
4135 -- This table collects the arguments to be passed to compile the binder
4138 - Gcc : String_Access := Program_Name ("gcc", "gnatlink");
4139 + Gcc : String_Access := Program_Name ("ada", "gnatlink");
4141 Read_Mode : constant String := "r" & ASCII.NUL;
4143 --- gcc/ada/gnatls.adb.orig
4144 +++ gcc/ada/gnatls.adb
4147 with Fname; use Fname;
4148 with Gnatvsn; use Gnatvsn;
4149 -with Make_Util; use Make_Util;
4150 with Namet; use Namet;
4152 with Osint; use Osint;
4153 @@ -1285,31 +1284,10 @@
4154 -- The path name(s) of directories where project files may reside.
4157 - Prefix : String_Ptr;
4158 - Runtime : String_Ptr;
4160 - procedure Add_Target (Suffix : String);
4161 - -- Add :<prefix>/<target>/Suffix to the project path
4163 FD : File_Descriptor;
4170 - procedure Add_Target (Suffix : String) is
4171 - Extra_Sep : constant String :=
4172 - (if Target_Name (Target_Name'Last) = '/' then
4175 - (1 => Directory_Separator));
4176 - -- Note: Target_Name has a trailing / when it comes from Sdefault
4179 - Add_Str_To_Name_Buffer
4180 - (Path_Separator & Prefix.all & Target_Name & Extra_Sep & Suffix);
4182 + pragma Unreferenced (Runtime_Name);
4184 -- Start of processing for Initialize_Default_Project_Path
4186 @@ -1493,81 +1471,15 @@
4187 -- Set the initial value of Current_Project_Path
4189 if Add_Default_Dir then
4190 - if Sdefault.Search_Dir_Prefix = null then
4194 - Prefix := new String'(Executable_Prefix_Path);
4197 - Prefix := new String'(Sdefault.Search_Dir_Prefix.all
4198 - & ".." & Dir_Separator
4199 - & ".." & Dir_Separator
4200 - & ".." & Dir_Separator
4201 - & ".." & Dir_Separator);
4204 - if Prefix.all /= "" then
4205 - if Target_Name /= "" then
4207 - if Runtime_Name /= "" then
4208 - if Base_Name (Runtime_Name) = Runtime_Name then
4210 - -- $prefix/$target/$runtime/lib/gnat
4213 - (Runtime_Name & Directory_Separator &
4214 - "lib" & Directory_Separator & "gnat");
4216 - -- $prefix/$target/$runtime/share/gpr
4219 - (Runtime_Name & Directory_Separator &
4220 - "share" & Directory_Separator & "gpr");
4224 - new String'(Normalize_Pathname (Runtime_Name));
4226 - -- $runtime_dir/lib/gnat
4228 - Add_Str_To_Name_Buffer
4229 - (Path_Separator & Runtime.all & Directory_Separator &
4230 - "lib" & Directory_Separator & "gnat");
4232 - -- $runtime_dir/share/gpr
4234 - Add_Str_To_Name_Buffer
4235 - (Path_Separator & Runtime.all & Directory_Separator &
4236 - "share" & Directory_Separator & "gpr");
4240 - -- $prefix/$target/lib/gnat
4243 - ("lib" & Directory_Separator & "gnat");
4245 - -- $prefix/$target/share/gpr
4248 - ("share" & Directory_Separator & "gpr");
4251 - -- $prefix/share/gpr
4253 - Add_Str_To_Name_Buffer
4254 - (Path_Separator & Prefix.all & "share"
4255 - & Directory_Separator & "gpr");
4257 - -- $prefix/lib/gnat
4259 - Add_Str_To_Name_Buffer
4260 - (Path_Separator & Prefix.all & "lib"
4261 - & Directory_Separator & "gnat");
4263 + -- /raven/share/gpr
4264 + Add_Str_To_Name_Buffer (Path_Separator &
4265 + "@LOCALBASE@/share/gpr");
4267 + -- /raven/lib/gnat
4268 + Add_Str_To_Name_Buffer (Path_Separator &
4269 + "@LOCALBASE@/lib/gnat");
4274 Self := new String'(Name_Buffer (1 .. Name_Len));
4275 --- gcc/ada/make.adb.orig
4276 +++ gcc/ada/make.adb
4278 -- Compiler, Binder & Linker Data and Subprograms --
4279 ----------------------------------------------------
4281 - Gcc : String_Access := Program_Name ("gcc", "gnatmake");
4282 + Gcc : String_Access := Program_Name ("ada", "gnatmake");
4283 Gnatbind : String_Access := Program_Name ("gnatbind", "gnatmake");
4284 Gnatlink : String_Access := Program_Name ("gnatlink", "gnatmake");
4285 -- Default compiler, binder, linker programs
4286 --- gcc/ada/terminals.c.orig
4287 +++ gcc/ada/terminals.c
4289 /* First all usupported platforms. Add stubs for exported routines. */
4291 #if defined (VMS) || defined (__vxworks) || defined (__Lynx__) \
4292 - || defined (__ANDROID__) || defined (__PikeOS__) || defined(__DJGPP__)
4293 + || defined (__PikeOS__) || defined(__DJGPP__)
4296 __gnat_new_tty (void)
4297 @@ -1099,7 +1099,7 @@
4298 || defined (__OpenBSD__) \
4299 || defined (__NetBSD__) \
4300 || defined (__DragonFly__)
4305 /* Include every system header we need */
4306 @@ -1115,21 +1115,25 @@
4307 #include <sys/types.h>
4308 #include <sys/wait.h>
4310 -#if defined (__sun__)
4312 # include <sys/stropts.h>
4314 -#if defined (BSD) || defined (__sun__)
4315 +#if defined (FREEBSD) || defined (sun)
4316 # include <sys/signal.h>
4318 #if defined (__hpux__)
4319 # include <sys/stropts.h>
4323 +#define CDISABLE _PC_VDISABLE
4325 #define CDISABLE _POSIX_VDISABLE
4328 /* On HP-UX and Sun system, there is a bzero function but with a different
4329 signature. Use memset instead */
4330 -#if defined (__hpux__) || defined (__sun__) || defined (_AIX)
4331 +#if defined (__hpux__) || defined (sun) || defined (_AIX)
4332 # define bzero(s,n) memset (s,0,n)
4335 @@ -1147,11 +1151,11 @@
4338 /* Configurable part */
4339 -#if defined (__APPLE__) || defined (BSD)
4340 +#if defined (__APPLE__) || defined (FREEBSD)
4342 -#elif defined (__linux__)
4343 +#elif defined (linux)
4345 -#elif defined (__sun__)
4346 +#elif defined (sun)
4347 #define USE_CLONE_DEVICE "/dev/ptmx"
4348 #elif defined (_AIX)
4349 #define USE_CLONE_DEVICE "/dev/ptc"
4350 @@ -1437,7 +1441,7 @@
4351 desc->slave_fd = open (desc->slave_name, O_RDWR, 0);
4354 -#if defined (__sun__) || defined (__hpux__)
4355 +#if defined (sun) || defined (__hpux__)
4356 /* On systems such as Solaris we are using stream. We need to push the right
4357 "modules" in order to get the expected terminal behaviors. Otherwise
4358 functionalities such as termios are not available. */
4360 +++ gcc/ada/traceback_symbolic.c
4363 + Copyright (C) 1999 by Juergen Pfeifer <juergen.pfeifer@gmx.net>
4364 + Ada for Linux Team (ALT)
4365 + Heavily modified by John Marino <http://www.dragonlace.net>
4367 + Permission is hereby granted, free of charge, to any person obtaining a
4368 + copy of this software and associated documentation files (the
4369 + "Software"), to deal in the Software without restriction, including
4370 + without limitation the rights to use, copy, modify, merge, publish,
4371 + distribute, distribute with modifications, sublicense, and/or sell
4372 + copies of the Software, and to permit persons to whom the Software is
4373 + furnished to do so, subject to the following conditions:
4375 + The above copyright notice and this permission notice shall be included
4376 + in all copies or substantial portions of the Software.
4378 + THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
4379 + OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
4380 + MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
4381 + IN NO EVENT SHALL THE ABOVE COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
4382 + DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
4383 + OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR
4384 + THE USE OR OTHER DEALINGS IN THE SOFTWARE.
4386 + Except as contained in this notice, the name(s) of the above copyright
4387 + holders shall not be used in advertising or otherwise to promote the
4388 + sale, use or other dealings in this Software without prior written
4396 + * Running addr2line doesn't make sense for cross-compiled objects.
4397 + * Create a dummy function to satisfy g-trasym.o
4401 +convert_addresses (const char *file_name ATTRIBUTE_UNUSED,
4402 + void *addrs ATTRIBUTE_UNUSED,
4403 + int n_addr ATTRIBUTE_UNUSED,
4404 + void *buf ATTRIBUTE_UNUSED,
4405 + int *len ATTRIBUTE_UNUSED)
4414 + * use the external program /usr/bin/addr2line to convert addresses
4415 + * into file names and line numbers
4418 +#include <sys/types.h>
4419 +#include <stdlib.h>
4420 +#include <unistd.h>
4421 +#include <string.h>
4422 +#include <signal.h>
4424 +#define CLOSE_SENDPIPE close(sendpipe[0]); close(sendpipe[1])
4425 +#define CLOSE_READPIPE close(readpipe[0]); close(readpipe[1])
4426 +#define DUP2CLOSE(oldfd, newfd) dup2(oldfd, newfd); close(oldfd);
4427 +#define RESTSIG sigaction(SIGPIPE,&oact,NULL)
4429 +#define MAX_LINE 1024
4430 +#define PARENT_READ readpipe[0]
4431 +#define CHILD_WRITE readpipe[1]
4432 +#define CHILD_READ sendpipe[0]
4433 +#define PARENT_WRITE sendpipe[1]
4435 +#if defined (__sun__)
4436 +#define ADDR2LINE_PROG "/usr/gnu/bin/addr2line"
4438 +#define ADDR2LINE_PROG "/usr/bin/addr2line"
4442 +convert_addresses (const char *file_name,
4448 + int max_len = *len;
4451 + struct sigaction act, oact;
4453 + int sendpipe[2] = {-1,-1}, /* parent -> child */
4454 + readpipe[2] = {-1,-1}; /* parent <- child */
4457 + act.sa_handler = SIG_IGN;
4458 + sigemptyset(&act.sa_mask);
4460 + if (sigaction(SIGPIPE,&act,&oact) < 0)
4463 + if (pipe(sendpipe) < 0) { RESTSIG; return; }
4464 + if (pipe(readpipe) < 0) { CLOSE_SENDPIPE; RESTSIG; return; }
4465 + if ((childpid = fork()) < 0) {
4472 + if (childpid == 0) { /* child process */
4473 + close(PARENT_WRITE);
4474 + close(PARENT_READ);
4475 + if ((CHILD_READ != STDIN_FILENO) && (CHILD_WRITE != STDOUT_FILENO)) {
4476 + if ((CHILD_READ == STDOUT_FILENO) && (CHILD_WRITE == STDIN_FILENO)) {
4477 + const int temp_fd = dup(CHILD_WRITE);
4478 + close (CHILD_WRITE);
4479 + DUP2CLOSE (CHILD_READ, STDIN_FILENO);
4480 + DUP2CLOSE (temp_fd, STDOUT_FILENO);
4482 + else if ((CHILD_READ == STDIN_FILENO) && (CHILD_WRITE > 1)) {
4483 + DUP2CLOSE (CHILD_WRITE, STDOUT_FILENO);
4485 + else if ((CHILD_READ > 1) && (CHILD_WRITE == STDOUT_FILENO)) {
4486 + DUP2CLOSE (CHILD_READ, STDIN_FILENO);
4488 + else if ((CHILD_READ > 1) && (CHILD_WRITE == STDIN_FILENO)) {
4489 + DUP2CLOSE (CHILD_WRITE, STDOUT_FILENO);
4490 + DUP2CLOSE (CHILD_READ, STDIN_FILENO);
4493 + /* CHILD_READ >= 1 and CHILD_WRITE > 1 */
4494 + DUP2CLOSE (CHILD_READ, STDIN_FILENO);
4495 + DUP2CLOSE (CHILD_WRITE, STDOUT_FILENO);
4498 + /* As pointed out by Florian Weimer to JP, it is a security threat to call
4499 + the script with a user defined environment and using the path. That
4500 + would be Trojans pleasure. Therefore the absolute path to addr2line
4501 + and an empty environment is used. That should be safe.
4503 + char *const argv[] = { "addr2line",
4505 + "--demangle=gnat",
4509 + char *const envp[] = { NULL };
4510 + if (execve(ADDR2LINE_PROG, argv, envp) < 0) {
4511 + close (CHILD_WRITE);
4512 + close (CHILD_READ);
4518 + /* Below this line is parent process */
4521 + char line[MAX_LINE + 1];
4524 + long *trace_address = addrs;
4526 + close(CHILD_WRITE);
4527 + close(CHILD_READ);
4529 + for(i=0; i < n_addr; i++) {
4530 + snprintf(hex,sizeof(hex),"%#lx\n",*trace_address);
4531 + write(PARENT_WRITE,hex,strlen(hex));
4532 + n = read(PARENT_READ,line,MAX_LINE);
4537 + /* We have approx. 16 additional chars for "%#lx in " clause.
4538 + We use this info to prevent a buffer overrun. */
4539 + if (n + 16 + (*len) > max_len)
4542 + p = strchr(line,'\n');
4546 + *len += snprintf(s, (max_len - (*len)), "%#lx in %s at %s",
4547 + *trace_address, line, p+1);
4550 + *len += snprintf(s, (max_len - (*len)), "%#lx at %s",
4551 + *trace_address, line);
4555 + trace_address += 1;
4557 + close (PARENT_WRITE);
4558 + close (PARENT_READ);
4564 +++ gcc/ada/libgnat/g-socthi__bsd.adb
4566 +------------------------------------------------------------------------------
4568 +-- GNAT COMPILER COMPONENTS --
4570 +-- G N A T . S O C K E T S . T H I N --
4574 +-- Copyright (C) 2001-2018, AdaCore --
4576 +-- GNAT is free software; you can redistribute it and/or modify it under --
4577 +-- terms of the GNU General Public License as published by the Free Soft- --
4578 +-- ware Foundation; either version 3, or (at your option) any later ver- --
4579 +-- sion. GNAT is distributed in the hope that it will be useful, but WITH- --
4580 +-- OUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY --
4581 +-- or FITNESS FOR A PARTICULAR PURPOSE. --
4583 +-- As a special exception under Section 7 of GPL version 3, you are granted --
4584 +-- additional permissions described in the GCC Runtime Library Exception, --
4585 +-- version 3.1, as published by the Free Software Foundation. --
4587 +-- You should have received a copy of the GNU General Public License and --
4588 +-- a copy of the GCC Runtime Library Exception along with this program; --
4589 +-- see the files COPYING3 and COPYING.RUNTIME respectively. If not, see --
4590 +-- <http://www.gnu.org/licenses/>. --
4592 +-- GNAT was originally developed by the GNAT team at New York University. --
4593 +-- Extensive contributions were provided by Ada Core Technologies Inc. --
4595 +------------------------------------------------------------------------------
4597 +-- This package provides a target dependent thin interface to the sockets
4598 +-- layer for use by the GNAT.Sockets package (g-socket.ads). This package
4599 +-- should not be directly with'ed by an applications program.
4601 +-- This is the *BSD version which uses fcntl rather than ioctl
4602 +-- The constant SCON.Thread_Blocking_IO is always true (for all platforms, not
4603 +-- just *BSD), so this binding is significantly simpler than the standard
4604 +-- one it replaces.
4606 +with GNAT.OS_Lib; use GNAT.OS_Lib;
4608 +with Interfaces.C; use Interfaces.C;
4610 +package body GNAT.Sockets.Thin is
4612 + function Syscall_Accept
4614 + Addr : System.Address;
4615 + Addrlen : not null access C.int) return C.int;
4616 + pragma Import (C, Syscall_Accept, "accept");
4617 + -- The accept() function accepts a connection on a socket. An incoming
4618 + -- connection is acknowledged and associated with an immediately created
4619 + -- socket. The original socket is returned to the listening state.
4621 + function Syscall_Connect
4623 + Name : System.Address;
4624 + Namelen : C.int) return C.int;
4625 + pragma Import (C, Syscall_Connect, "connect");
4626 + -- The connect() system call initiates a connection on a socket. If the
4627 + -- parameter S is of type SOCK_DGRAM then connect() permanently specifies
4628 + -- the peer to which datagrams are to be sent. If S is type SOCK_STREAM
4629 + -- then connect() attempts to make a connection with another socket, which
4630 + -- is identified by the parameter Name.
4632 + function Syscall_Recv
4634 + Msg : System.Address;
4636 + Flags : C.int) return C.int;
4637 + pragma Import (C, Syscall_Recv, "recv");
4638 + -- The recv() function receives a message from a socket. The call can be
4639 + -- used on a connection mode socket or a bound, connectionless socket. If
4640 + -- no messages are available at the socket, the recv() call waits for a
4641 + -- message to arrive unless the socket is non-blocking. If a socket is
4642 + -- non-blocking, the call returns a -1 and ERRNO is set to EWOULDBLOCK.
4644 + function Syscall_Recvfrom
4646 + Msg : System.Address;
4649 + From : System.Address;
4650 + Fromlen : not null access C.int) return C.int;
4651 + pragma Import (C, Syscall_Recvfrom, "recvfrom");
4652 + -- The recvfrom() system call receives a message from a socket and captures
4653 + -- the address from which the data was sent. It can be used to receive
4654 + -- data on an unconnected socket as well. If no messages are available,
4655 + -- the call waits for a message to arrive on blocking sockets. For
4656 + -- non-blocking sockets without messages, -1 is returned and ERRNO is set
4657 + -- to EAGAIN or EWOULDBLOCK.
4659 + function Syscall_Recvmsg
4661 + Msg : System.Address;
4662 + Flags : C.int) return System.CRTL.ssize_t;
4663 + pragma Import (C, Syscall_Recvmsg, "recvmsg");
4664 + -- The recvmsg call receives a message from a socket, and can be used to
4665 + -- receive data on an unconnected socket as well. If no messages are
4666 + -- available, the call waits for a message to arrive on blocking sockets.
4667 + -- For non-blocking sockets without messages, -1 is returned and ERRNO is
4668 + -- set to EAGAIN or EWOULDBLOCK.
4670 + function Syscall_Sendmsg
4672 + Msg : System.Address;
4673 + Flags : C.int) return System.CRTL.ssize_t;
4674 + pragma Import (C, Syscall_Sendmsg, "sendmsg");
4675 + -- The sendmsg() function sends a message to a socket, and can be used with
4676 + -- unconnected sockets as well (the msg is ignored in this case). The
4677 + -- function returns the number of bytes sent when successful, otherwise it
4678 + -- returns -1 and ERRNO is set (many possible values).
4680 + function Syscall_Sendto
4682 + Msg : System.Address;
4685 + To : System.Address;
4686 + Tolen : C.int) return C.int;
4687 + pragma Import (C, Syscall_Sendto, "sendto");
4688 + -- The sendto() function only works for connected sockets and it initiates
4689 + -- the transmission of a message. A successful call returns the numbers of
4690 + -- bytes sent, and a failure returns a -1 and ERRNO is set.
4692 + function Syscall_Socket
4695 + Protocol : C.int) return C.int;
4696 + pragma Import (C, Syscall_Socket, "socket");
4697 + -- The socket() function is used to create an unbound socket and returns a
4698 + -- file descriptor that can be used with other socket functions. Upon
4699 + -- failure, a -1 is returned and ERRNO is set.
4701 + procedure Disable_SIGPIPE (S : C.int);
4702 + pragma Import (C, Disable_SIGPIPE, "__gnat_disable_sigpipe");
4704 + procedure Disable_All_SIGPIPEs;
4705 + pragma Import (C, Disable_All_SIGPIPEs, "__gnat_disable_all_sigpipes");
4706 + -- Sets the process to ignore all SIGPIPE signals on platforms that
4707 + -- don't support Disable_SIGPIPE for particular streams.
4712 + Val : C.int) return C.int;
4713 + pragma Import (C, C_Fcntl, "fcntl");
4714 + -- The ioctl of 64-bit DragonFlyBSD, OpenBSD, and NetBSD does not support
4715 + -- setting a socket in non-blocking mode. fcntl must be used instead.
4723 + Addr : System.Address;
4724 + Addrlen : not null access C.int) return C.int
4726 + R : constant C.int := Syscall_Accept (S, Addr, Addrlen);
4729 + Disable_SIGPIPE (R);
4737 + function C_Connect
4739 + Name : System.Address;
4740 + Namelen : C.int) return C.int
4743 + return Syscall_Connect (S, Name, Namelen);
4746 + ------------------
4747 + -- Socket_Ioctl --
4748 + ------------------
4750 + function Socket_Ioctl
4752 + Req : SOSC.IOCTL_Req_T;
4753 + Arg : access C.int) return C.int
4756 + if Req = SOSC.FIONBIO then
4759 + flags : constant Unsigned_32 :=
4760 + Unsigned_32 (C_Fcntl (S, SOSC.F_GETFL, 0));
4761 + nonblock : constant Unsigned_32 := Unsigned_32 (SOSC.O_NDELAY);
4762 + enabled : constant Boolean := Arg.all = 1;
4763 + newval : C.int := C.int (flags);
4766 + newval := C.int (flags or nonblock);
4767 + elsif (flags and nonblock) > 0 then
4768 + newval := C.int (flags - nonblock);
4770 + return C_Fcntl (Fd => S, Cmd => SOSC.F_SETFL, Val => newval);
4774 + return C_Ioctl (S, Req, Arg);
4783 + Msg : System.Address;
4785 + Flags : C.int) return C.int
4788 + return Syscall_Recv (S, Msg, Len, Flags);
4795 + function C_Recvfrom
4797 + Msg : System.Address;
4800 + From : System.Address;
4801 + Fromlen : not null access C.int) return C.int
4804 + return Syscall_Recvfrom (S, Msg, Len, Flags, From, Fromlen);
4811 + function C_Recvmsg
4813 + Msg : System.Address;
4814 + Flags : C.int) return System.CRTL.ssize_t
4817 + return Syscall_Recvmsg (S, Msg, Flags);
4824 + function C_Sendmsg
4826 + Msg : System.Address;
4827 + Flags : C.int) return System.CRTL.ssize_t
4830 + return Syscall_Sendmsg (S, Msg, Flags);
4839 + Msg : System.Address;
4842 + To : System.Address;
4843 + Tolen : C.int) return C.int
4846 + return Syscall_Sendto (S, Msg, Len, Flags, To, Tolen);
4856 + Protocol : C.int) return C.int
4858 + R : constant C.int := Syscall_Socket (Domain, Typ, Protocol);
4860 + Disable_SIGPIPE (R);
4868 + procedure Finalize is
4873 + -------------------------
4874 + -- Host_Error_Messages --
4875 + -------------------------
4877 + package body Host_Error_Messages is separate;
4883 + procedure Initialize is
4885 + Disable_All_SIGPIPEs;
4888 + --------------------
4889 + -- Signalling_Fds --
4890 + --------------------
4892 + package body Signalling_Fds is
4894 + -- In this default implementation, we use a C version of these
4895 + -- subprograms provided by socket.c.
4897 + function C_Create (Fds : not null access Fd_Pair) return C.int;
4898 + function C_Read (Rsig : C.int) return C.int;
4899 + function C_Write (Wsig : C.int) return C.int;
4900 + procedure C_Close (Sig : C.int);
4902 + pragma Import (C, C_Create, "__gnat_create_signalling_fds");
4903 + pragma Import (C, C_Read, "__gnat_read_signalling_fd");
4904 + pragma Import (C, C_Write, "__gnat_write_signalling_fd");
4905 + pragma Import (C, C_Close, "__gnat_close_signalling_fd");
4908 + (Fds : not null access Fd_Pair) return C.int renames C_Create;
4909 + function Read (Rsig : C.int) return C.int renames C_Read;
4910 + function Write (Wsig : C.int) return C.int renames C_Write;
4911 + procedure Close (Sig : C.int) renames C_Close;
4913 + end Signalling_Fds;
4915 + --------------------------
4916 + -- Socket_Error_Message --
4917 + --------------------------
4919 + function Socket_Error_Message (Errno : Integer) return String is separate;
4921 +end GNAT.Sockets.Thin;
4923 +++ gcc/ada/libgnat/s-trasym__bsd.adb
4925 +------------------------------------------------------------------------------
4927 +-- GNAT RUN-TIME COMPONENTS --
4929 +-- S Y S T E M . T R A C E B A C K . S Y M B O L I C --
4933 +-- Copyright (C) 1999-2018, AdaCore --
4935 +-- GNAT is free software; you can redistribute it and/or modify it under --
4936 +-- terms of the GNU General Public License as published by the Free Soft- --
4937 +-- ware Foundation; either version 3, or (at your option) any later ver- --
4938 +-- sion. GNAT is distributed in the hope that it will be useful, but WITH- --
4939 +-- OUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY --
4940 +-- or FITNESS FOR A PARTICULAR PURPOSE. --
4942 +-- As a special exception under Section 7 of GPL version 3, you are granted --
4943 +-- additional permissions described in the GCC Runtime Library Exception, --
4944 +-- version 3.1, as published by the Free Software Foundation. --
4946 +-- You should have received a copy of the GNU General Public License and --
4947 +-- a copy of the GCC Runtime Library Exception along with this program; --
4948 +-- see the files COPYING3 and COPYING.RUNTIME respectively. If not, see --
4949 +-- <http://www.gnu.org/licenses/>. --
4951 +-- GNAT was originally developed by the GNAT team at New York University. --
4952 +-- Extensive contributions were provided by Ada Core Technologies Inc. --
4954 +------------------------------------------------------------------------------
4956 +-- Run-time symbolic traceback support
4957 +-- This file is based on the work by Juergen Pfiefer which is still used
4958 +-- today to provide symbolic traceback support for gnu/kFreeBSD.
4959 +-- Incorporated in GNAT-AUX by John Marino <http://www.dragonlace.net>
4961 +pragma Polling (Off);
4962 +-- We must turn polling off for this unit, because otherwise we can get
4963 +-- elaboration circularities when polling is turned on.
4965 +with Ada.Exceptions.Traceback; use Ada.Exceptions.Traceback;
4966 +with System.Soft_Links;
4968 +package body System.Traceback.Symbolic is
4970 + -- Note that Suppress_Hex is ignored in this version of this package.
4972 + package TSL renames System.Soft_Links;
4974 + -- To perform the raw addresses to symbolic form translation we rely on a
4975 + -- libaddr2line symbolizer which examines debug info from a provided
4976 + -- executable file name, and an absolute path is needed to ensure the file
4977 + -- is always found. This is "__gnat_locate_exec_on_path (gnat_argv [0])"
4978 + -- for our executable file, a fairly heavy operation so we cache the
4981 + Exename : System.Address;
4982 + -- Pointer to the name of the executable file to be used on all
4983 + -- invocations of the libaddr2line symbolization service.
4985 + Exename_Resolved : Boolean := False;
4986 + -- Flag to indicate whether we have performed the executable file name
4987 + -- resolution already. Relying on a not null Exename for this purpose
4988 + -- would be potentially inefficient as this is what we will get if the
4989 + -- resolution attempt fails.
4991 + ------------------------
4992 + -- Symbolic_Traceback --
4993 + ------------------------
4995 + function Symbolic_Traceback
4996 + (Traceback : System.Traceback_Entries.Tracebacks_Array) return String
4998 + procedure convert_addresses
4999 + (filename : System.Address;
5000 + addrs : System.Address;
5001 + n_addrs : Integer;
5002 + buf : System.Address;
5003 + len : System.Address);
5004 + pragma Import (C, convert_addresses, "convert_addresses");
5005 + -- This is the procedure version of the Ada-aware addr2line. It places
5006 + -- in BUF a string representing the symbolic translation of the N_ADDRS
5007 + -- raw addresses provided in ADDRS, looked up in debug information from
5008 + -- FILENAME. LEN points to an integer which contains the size of the
5009 + -- BUF buffer at input and the result length at output.
5011 + -- Note that this procedure is *not* thread-safe.
5013 + type Argv_Array is array (0 .. 0) of System.Address;
5014 + gnat_argv : access Argv_Array;
5015 + pragma Import (C, gnat_argv, "gnat_argv");
5017 + function locate_exec_on_path
5018 + (c_exename : System.Address) return System.Address;
5019 + pragma Import (C, locate_exec_on_path, "__gnat_locate_exec_on_path");
5021 + B_Size : constant Integer := 256 * Traceback'Length;
5022 + Len : Integer := B_Size;
5023 + Res : String (1 .. B_Size);
5026 + if Traceback'Length = 0 then
5030 + -- If our input set of raw addresses is not empty, resort to the
5031 + -- libaddr2line service to symbolize it all.
5033 + -- Compute, cache and provide the absolute path to our executable file
5034 + -- name as the binary file where the relevant debug information is to be
5035 + -- found. If the executable file name resolution fails, we have no
5036 + -- sensible basis to invoke the symbolizer at all.
5038 + -- Protect all this against concurrent accesses explicitly, as the
5039 + -- underlying services are potentially thread unsafe.
5041 + TSL.Lock_Task.all;
5043 + if not Exename_Resolved then
5044 + Exename := locate_exec_on_path (gnat_argv (0));
5045 + Exename_Resolved := True;
5048 + if Exename /= System.Null_Address then
5049 + Len := Res'Length;
5051 + (Exename, Traceback'Address, Traceback'Length,
5052 + Res (1)'Address, Len'Address);
5055 + TSL.Unlock_Task.all;
5057 + -- Return what the addr2line symbolizer has produced if we have called
5058 + -- it (the executable name resolution succeeded), or an empty string
5061 + if Exename /= System.Null_Address then
5062 + return Res (1 .. Len);
5066 + end Symbolic_Traceback;
5068 + -- "No_Hex" is ignored in this version, because otherwise we have nothing
5069 + -- at all to print.
5071 + function Symbolic_Traceback_No_Hex
5072 + (Traceback : System.Traceback_Entries.Tracebacks_Array) return String is
5074 + return Symbolic_Traceback (Traceback);
5075 + end Symbolic_Traceback_No_Hex;
5077 + function Symbolic_Traceback
5078 + (E : Ada.Exceptions.Exception_Occurrence) return String
5081 + return Symbolic_Traceback (Tracebacks (E));
5082 + end Symbolic_Traceback;
5084 + function Symbolic_Traceback_No_Hex
5085 + (E : Ada.Exceptions.Exception_Occurrence) return String is
5087 + return Symbolic_Traceback (E);
5088 + end Symbolic_Traceback_No_Hex;
5090 + ------------------
5091 + -- Enable_Cache --
5092 + ------------------
5094 + procedure Enable_Cache (Include_Modules : Boolean := False) is
5099 +end System.Traceback.Symbolic;
5100 --- gcc/ada/gcc-interface/Make-lang.in.orig
5101 +++ gcc/ada/gcc-interface/Make-lang.in
5105 # Language-independent object files.
5106 -ADA_BACKEND = $(BACKEND) attribs.o
5107 +ADA_BACKEND = $(BACKEND2) attribs.o
5109 # List of target dependent sources, overridden below as necessary
5111 --- gcc/ada/init.c.orig
5113 @@ -2643,8 +2643,15 @@
5115 mcontext_t *mcontext = &((ucontext_t *) ucontext)->uc_mcontext;
5117 +#if defined (__i386__)
5118 + unsigned long *pc = (unsigned long *)mcontext->gregs[REG_EIP];
5119 + /* The pattern is "orl $0x0,(%esp)" for a probe in 32-bit mode. */
5120 + if (signo == SIGSEGV && pc && *pc == 0x00240c83)
5121 + mcontext->gregs[REG_ESP] += 4096 + 4 * sizeof (unsigned long);
5122 +#elif defined (__ARMEL__)
5123 /* ARM Bump has to be an even number because of odd/even architecture. */
5124 - ((mcontext_t *) mcontext)->arm_pc += 2;
5125 + mcontext->arm_pc += 2;
5130 --- gcc/ada/libgnat/g-socthi.ads.orig
5131 +++ gcc/ada/libgnat/g-socthi.ads
5134 package C renames Interfaces.C;
5136 - use type System.CRTL.ssize_t;
5138 function Socket_Errno return Integer renames GNAT.OS_Lib.Errno;
5139 -- Returns last socket error number
5143 [FILE:19397:patches/patch-diff-ada-testsuite]
5144 --- gcc/testsuite/ada/acats/run_acats.sh.orig
5145 +++ gcc/testsuite/ada/acats/run_acats.sh
5150 -# Provide which replacement.
5152 -# type -p is missing from Solaris 2 /bin/sh and /bin/ksh (ksh88), but both
5153 -# ksh93 and bash have it.
5154 -# type output format differs between ksh88 and ksh93, so avoid it if
5155 -# type -p is present. Unfortunately, HP-UX /bin/sh ignores -p with type.
5156 -# Fall back to whence which ksh88 and ksh93 provide, but bash does not.
5159 - path=`type -p $* 2>/dev/null` && { echo $path | awk '{print $NF}'; return 0; }
5160 - path=`type $* 2>/dev/null` && { echo $path | awk '{print $NF}'; return 0; }
5161 - path=`whence $* 2>/dev/null` && { echo $path; return 0; }
5165 # Set up environment to use the Ada compiler from the object tree
5167 --- gcc/testsuite/ada/acats/run_all.sh.orig
5168 +++ gcc/testsuite/ada/acats/run_all.sh
5171 # End of customization section.
5173 -# Perform arithmetic evaluation on the ARGs, and store the result in the
5174 -# global $as_val. Take advantage of shells that can avoid forks. The arguments
5175 -# must be portable across $(()) and expr.
5176 -if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
5177 - eval 'as_fn_arith ()
5184 - as_val=`expr "$@" || test $? -eq 1`
5190 printf "$@" >> $dir/acats.sum
5192 echo "$@" >> $dir/acats.log
5196 + printf "%04d %7s" $1 $2
5205 if [ "$dir" = "$testdir" ]; then
5207 gnatls -v >> $dir/acats.log
5210 -if [ -n "$GCC_RUNTEST_PARALLELIZE_DIR" ]; then
5211 - dir_support=$dir/../acats/support
5214 - mv $dir/tests $dir/tests.$$ 2> /dev/null
5215 - rm -rf $dir/tests.$$ &
5218 - cp -pr $dir/../acats/tests $dir/
5220 - dir_support=$dir/support
5222 display " === acats support ==="
5223 display_noeol "Generating support files..."
5232 display " === acats tests ==="
5234 if [ $# -eq 0 ]; then
5235 @@ -228,14 +206,20 @@
5244 for chapter in $chapters; do
5245 - # Used to generate support once and finish after that.
5246 - [ "$chapter" = "NONE" ] && continue
5247 + if [ -d $dir/tests/$chapter ]; then
5248 + cd $dir/tests/$chapter
5249 + ls *.a *.ada *.adt *.am *.dep 2> /dev/null | sed -e 's/\(.*\)\..*/\1/g' | \
5250 + cut -c1-7 | sort | uniq | comm -23 - $dir/support/norun.lst \
5251 + > $dir/tests/$chapter/${chapter}.lst
5252 + countn=`wc -l < $dir/tests/$chapter/${chapter}.lst`
5253 + countdown=`expr $countdown + $countn`
5257 +for chapter in $chapters; do
5258 display Running chapter $chapter ...
5260 if [ ! -d $dir/tests/$chapter ]; then
5261 @@ -244,45 +228,11 @@
5265 - cd $dir/tests/$chapter
5266 - ls *.a *.ada *.adt *.am *.dep 2> /dev/null | sed -e 's/\(.*\)\..*/\1/g' | \
5267 - cut -c1-7 | sort | uniq | comm -23 - $dir_support/norun.lst \
5268 - > $dir/tests/$chapter/${chapter}.lst
5269 countn=`wc -l < $dir/tests/$chapter/${chapter}.lst`
5270 - as_fn_arith $glob_countn + $countn
5271 - glob_countn=$as_val
5272 + glob_countn=`expr $glob_countn + $countn`
5274 for i in `cat $dir/tests/$chapter/${chapter}.lst`; do
5276 - # If running multiple run_all.sh jobs in parallel, decide
5277 - # if we should run this test in the current instance.
5278 - if [ -n "$GCC_RUNTEST_PARALLELIZE_DIR" ]; then
5280 - # Ugh, some tests have inter-test dependencies, those
5281 - # tests have to be scheduled on the same parallel instance
5282 - # as previous test.
5283 - ce2108f | ce2108h | ce3112d) ;;
5284 - # All others can be hopefully scheduled freely.
5286 - as_fn_arith $par_countm + 1
5287 - par_countm=$as_val
5288 - [ $par_countm -eq 10 ] && par_countm=0
5289 - if [ $par_countm -eq 1 ]; then
5290 - as_fn_arith $par_count + 1
5292 - if mkdir $GCC_RUNTEST_PARALLELIZE_DIR/$par_count 2>/dev/null; then
5299 - if [ -z "$par_last" ]; then
5300 - as_fn_arith $glob_countn - 1
5301 - glob_countn=$as_val
5306 + counti=`expr $counti + 1`
5307 extraflags="-gnat95"
5308 grep $i $testdir/overflow.lst > /dev/null 2>&1
5309 if [ $? -eq 0 ]; then
5310 @@ -300,10 +250,13 @@
5311 if [ $? -eq 0 ]; then
5312 extraflags="$extraflags -fstack-check"
5314 + inform $countdown $i
5315 + countdown=`expr $countdown - 1`
5316 test=$dir/tests/$chapter/$i
5317 mkdir $test && cd $test >> $dir/acats.log 2>&1
5319 if [ $? -ne 0 ]; then
5322 failed="${failed}${i} "
5324 @@ -321,19 +274,22 @@
5325 echo "BUILD $main" >> $dir/acats.log
5328 - cxb30*) EXTERNAL_OBJECTS="$dir_support/cxb30040.o $dir_support/cxb30060.o $dir_support/cxb30130.o $dir_support/cxb30131.o";;
5329 + cxb30*) EXTERNAL_OBJECTS="$dir/support/cxb30040.o $dir/support/cxb30060.o $dir/support/cxb30130.o $dir/support/cxb30131.o";;
5330 ca1020e) rm -f ca1020e_func1.adb ca1020e_func2.adb ca1020e_proc1.adb ca1020e_proc2.adb > /dev/null 2>&1;;
5331 ca14028) rm -f ca14028_func2.ads ca14028_func3.ads ca14028_proc1.ads ca14028_proc3.ads > /dev/null 2>&1;;
5332 + cxh1001) extraflags="-a -f"; echo "pragma Normalize_Scalars;" > gnat.adc
5334 if [ "$main" = "" ]; then
5337 failed="${failed}${i} "
5342 - target_gnatmake $extraflags -I$dir_support $main >> $dir/acats.log 2>&1
5343 + target_gnatmake $extraflags -I$dir/support $main >> $dir/acats.log 2>&1
5344 if [ $? -ne 0 ]; then
5347 failed="${failed}${i} "
5350 target_run $dir/tests/$chapter/$i/$binmain > $dir/tests/$chapter/$i/${i}.log 2>&1
5351 cd $dir/tests/$chapter/$i
5352 cat ${i}.log >> $dir/acats.log
5354 egrep -e '(==== |\+\+\+\+ |\!\!\!\! )' ${i}.log > /dev/null 2>&1
5355 if [ $? -ne 0 ]; then
5356 grep 'tasking not implemented' ${i}.log > /dev/null 2>&1
5357 @@ -357,15 +314,12 @@
5358 failed="${failed}${i} "
5360 log "UNSUPPORTED: $i"
5361 - as_fn_arith $glob_countn - 1
5362 - glob_countn=$as_val
5363 - as_fn_arith $glob_countu + 1
5364 - glob_countu=$as_val
5365 + glob_countn=`expr $glob_countn - 1`
5366 + glob_countu=`expr $glob_countu + 1`
5370 - as_fn_arith $glob_countok + 1
5371 - glob_countok=$as_val
5372 + glob_countok=`expr $glob_countok + 1`
5377 +++ gcc/testsuite/ada/acats/run_remote.sh
5380 +# Run ACATS with the GNU Ada compiler
5382 +# The following functions are to be customized if you run in cross
5383 +# environment or want to change compilation flags. Note that for
5384 +# tests requiring checks not turned on by default, this script
5385 +# automatically adds the needed flags to pass (ie: -gnato or -gnatE).
5387 +# gccflags="-O3 -fomit-frame-pointer -funroll-all-loops -finline-functions"
5388 +# gnatflags="-gnatN"
5391 +gnatflags="-gnatws"
5392 +tabtarget="/data/local/testsuite"
5393 +STRIP="@REMOTE_TARGET@-strip"
5396 + # Run on rooted tablet (port 22 vs port 2222)
5398 + $STRIP_FOR_TARGET $*
5399 + /usr/bin/scp -qp $* root@tablet:$tabtarget/
5400 + /usr/bin/ssh -q tablet $tabtarget/$BN
5404 + /usr/bin/ssh -q tablet "$1"
5407 +# End of customization section.
5411 + printf "$@" >> $dir/acats.sum
5412 + printf "$@" >> $dir/acats.log
5417 + echo "$@" >> $dir/acats.sum
5418 + echo "$@" >> $dir/acats.log
5422 + echo "$@" >> $dir/acats.sum
5423 + echo "$@" >> $dir/acats.log
5427 + printf "%04d %7s" $1 $2
5434 +dir=`${PWDCMD-pwd}`
5436 +if [ "$testdir" = "" ]; then
5437 + echo You must use make check or make check-ada
5441 +if [ "$dir" = "$testdir" ]; then
5442 + echo "error: srcdir must be different than objdir, exiting."
5446 +target_gnatmake () {
5447 + echo gnatmake-cross --GCC=\"$GCC\" $gnatflags $gccflags $* -largs $EXTERNAL_OBJECTS --GCC=\"$GCC\" -fPIE -pie
5448 + gnatmake-cross --GCC="$GCC" $gnatflags $gccflags $* -largs $EXTERNAL_OBJECTS --GCC="$GCC" -fPIE -pie
5456 + rm -f "$binmain" *.o *.ali > /dev/null 2>&1
5460 + ls ${i}?.adb > ${i}.lst 2> /dev/null
5461 + ls ${i}*m.adb >> ${i}.lst 2> /dev/null
5462 + ls ${i}.adb >> ${i}.lst 2> /dev/null
5463 + main=`tail -1 ${i}.lst`
5467 + local mysplit=`echo $1 | awk -F/ '{print "section=" $1 "; TN=" $2 "; prog=" $3 ";"}'`
5471 +EXTERNAL_OBJECTS=""
5472 +# Global variable to communicate external objects to link with.
5474 +rm -f $dir/acats.sum $dir/acats.log $dir/transfer.lst
5476 +display "Test Run By $USER on `date`"
5478 +display " === acats configuration ==="
5480 +target=`$GCC -dumpmachine`
5482 +display target gcc is $GCC
5483 +display `$GCC -v 2>&1`
5484 +display host=`gcc -dumpmachine`
5485 +display target=$target
5486 +display `type gnatmake-cross`
5487 +gnatls-cross -v >> $dir/acats.log
5490 +# Let's be tidy and clear off the remote device first
5491 +target_cmd "cd ${tabtarget}; rm logs/*; rmdir logs; rm *"
5493 +display " === acats support ==="
5494 +display_noeol "Generating support files..."
5496 +rm -rf $dir/support
5497 +mkdir -p $dir/support
5500 +cp $testdir/support/*.ada $testdir/support/*.a $testdir/support/*.tst $dir/support
5502 +# Find out the size in bit of an address on the target
5503 +target_gnatmake $testdir/support/impbit.adb >> $dir/acats.log 2>&1
5504 +target_run $dir/support/impbit > $dir/support/impbit.out 2>&1
5505 +target_bit=`cat $dir/support/impbit.out`
5506 +echo target_bit="$target_bit" >> $dir/acats.log
5508 +# Find out a suitable asm statement
5509 +# Adapted from configure.ac gcc_cv_as_dwarf2_debug_line
5511 + ia64*-*-* | s390*-*-*)
5512 + target_insn="nop 0"
5515 + target_insn="swym 0"
5521 +echo target_insn="$target_insn" >> $dir/acats.log
5523 +sed -e "s,ACATS4GNATDIR,$dir,g" \
5524 + < $testdir/support/impdef.a > $dir/support/impdef.a
5525 +sed -e "s,ACATS4GNATDIR,$dir,g" \
5526 + -e "s,ACATS4GNATBIT,$target_bit,g" \
5527 + -e "s,ACATS4GNATINSN,$target_insn,g" \
5528 + < $testdir/support/macro.dfs > $dir/support/MACRO.DFS
5529 +sed -e "s,ACATS4GNATDIR,$dir,g" \
5530 + < $testdir/support/tsttests.dat > $dir/support/TSTTESTS.DAT
5532 +cp $testdir/tests/cd/*.c $dir/support
5533 +cp $testdir/tests/cxb/*.c $dir/support
5534 +grep -v '^#' $testdir/norun.lst | sort > $dir/support/norun.lst
5537 +mv $dir/tests $dir/tests.$$ 2> /dev/null
5538 +rm -rf $dir/tests.$$ &
5541 +cp -pr $testdir/tests $dir/
5543 +for i in $dir/support/*.ada $dir/support/*.a; do
5544 + host_gnatchop $i >> $dir/acats.log 2>&1
5547 +# These tools are used to preprocess some ACATS sources
5548 +# they need to be compiled native on the host.
5550 +host_gnatmake -q -gnatws macrosub.adb
5551 +if [ $? -ne 0 ]; then
5552 + display "**** Failed to compile macrosub"
5555 +./macrosub > macrosub.out 2>&1
5558 +host_gnatmake -q -gnatws widechr.adb
5559 +if [ $? -ne 0 ]; then
5560 + display "**** Failed to compile widechr"
5563 +./widechr > widechr.out 2>&1
5565 +rm -f $dir/support/macrosub
5566 +rm -f $dir/support/widechr
5567 +rm -f $dir/support/*.ali
5568 +rm -f $dir/support/*.o
5572 +# From here, all compilations will be made by the target compiler
5574 +display_noeol "Compiling support files..."
5577 +if [ $? -ne 0 ]; then
5578 + display "**** Failed to compile C code"
5582 +host_gnatchop *.adt >> $dir/acats.log 2>&1
5584 +target_gnatmake -c -gnato -gnatE *.ads >> $dir/acats.log 2>&1
5585 +target_gnatmake -c -gnato -gnatE *.adb >> $dir/acats.log 2>&1
5589 +display " === acats tests ==="
5591 +if [ $# -eq 0 ]; then
5592 + chapters=`cd $dir/tests; echo [a-z]*`
5602 +for chapter in $chapters; do
5603 + if [ -d $dir/tests/$chapter ]; then
5604 + cd $dir/tests/$chapter
5605 + ls *.a *.ada *.adt *.am *.dep 2> /dev/null | sed -e 's/\(.*\)\..*/\1/g' | \
5606 + cut -c1-7 | sort | uniq | comm -23 - $dir/support/norun.lst \
5607 + > $dir/tests/$chapter/${chapter}.lst
5608 + countn=`wc -l < $dir/tests/$chapter/${chapter}.lst`
5609 + countdown=`expr $countdown + $countn`
5613 +cat > $dir/execute.sh << EOF
5615 + printf "left: %04d" \$1
5622 + local total=\$(echo \$testlist | awk '{print NF}')
5624 + echo "Executing \$total tests on remote device"
5626 + for x in \$testlist; do
5627 + timeout -t 30 ./\${x} > logs/\${x}.log 2>&1
5628 + countx=\$(expr \$countx + 1)
5629 + if [ \$countx -eq 25 ]; then
5630 + total=\$(expr \$total - 25)
5637 + tar -czf remote.logs.tar.gz logs
5642 +display "All tests are being cross-compiled without execution first."
5644 +for chapter in $chapters; do
5645 + if [ ! -d $dir/tests/$chapter ]; then
5649 + countn=`wc -l < $dir/tests/$chapter/${chapter}.lst`
5650 + glob_countn=`expr $glob_countn + $countn`
5652 + for i in `cat $dir/tests/$chapter/${chapter}.lst`; do
5653 + counti=`expr $counti + 1`
5654 + extraflags="-gnat95"
5655 + grep $i $testdir/overflow.lst > /dev/null 2>&1
5656 + if [ $? -eq 0 ]; then
5657 + extraflags="$extraflags -gnato"
5659 + grep $i $testdir/elabd.lst > /dev/null 2>&1
5660 + if [ $? -eq 0 ]; then
5661 + extraflags="$extraflags -gnatE"
5663 + grep $i $testdir/floatstore.lst > /dev/null 2>&1
5664 + if [ $? -eq 0 ]; then
5665 + extraflags="$extraflags -ffloat-store"
5667 + grep $i $testdir/stackcheck.lst > /dev/null 2>&1
5668 + if [ $? -eq 0 ]; then
5669 + extraflags="$extraflags -fstack-check"
5671 + inform $countdown $i
5672 + countdown=`expr $countdown - 1`
5673 + test=$dir/tests/$chapter/$i
5674 + mkdir $test && cd $test >> $dir/acats.log 2>&1
5676 + if [ $? -ne 0 ]; then
5678 + display "FAIL: $i"
5679 + failed="${failed}${i} "
5684 + host_gnatchop -c -w `ls ${test}*.a ${test}*.ada ${test}*.adt ${test}*.am ${test}*.dep 2> /dev/null` >> $dir/acats.log 2>&1
5686 + if [ -z "$main" ]; then
5690 + binmain=`echo $main | sed -e 's/\(.*\)\..*/\1/g'`
5691 + echo "BUILD $main" >> $dir/acats.log
5692 + EXTERNAL_OBJECTS=""
5694 + cxb30*) EXTERNAL_OBJECTS="$dir/support/cxb30040.o $dir/support/cxb30060.o $dir/support/cxb30130.o $dir/support/cxb30131.o";;
5695 + ca1020e) rm -f ca1020e_func1.adb ca1020e_func2.adb ca1020e_proc1.adb ca1020e_proc2.adb > /dev/null 2>&1;;
5696 + ca14028) rm -f ca14028_func2.ads ca14028_func3.ads ca14028_proc1.ads ca14028_proc3.ads > /dev/null 2>&1;;
5697 + cxh1001) extraflags="-a -f"; echo "pragma Normalize_Scalars;" > gnat.adc
5699 + if [ "$main" = "" ]; then
5701 + display "FAIL: $i"
5702 + failed="${failed}${i} "
5707 + target_gnatmake $extraflags -I$dir/support $main >> $dir/acats.log 2>&1
5708 + if [ $? -ne 0 ]; then
5710 + display "FAIL: $i"
5711 + failed="${failed}${i} "
5715 + echo $chapter/$i/$binmain >> $dir/transfer.lst
5716 + echo "$binmain \\" >> $dir/execute.sh
5721 +echo '"' >> $dir/execute.sh
5722 +echo "cycle" >> $dir/execute.sh
5725 +display "Transfer files to remote device: root@tablet:$tabtarget/"
5727 +cat $dir/transfer.lst | xargs tar --strip-components=2 -czf - | \
5728 + target_cmd "tar -C $tabtarget -xzf -"
5730 +tar -czf - execute.sh | target_cmd "tar -C $tabtarget -xzf -"
5731 +target_cmd "cd $tabtarget; sh execute.sh"
5732 +rm -rf $dir/logs $dir/remote.logs.tar.gz
5733 +/usr/bin/scp -q root@tablet:$tabtarget/remote.logs.tar.gz $dir/
5734 +tar -xzf $dir/remote.logs.tar.gz
5736 +countdown=`wc -l < $dir/transfer.lst`
5737 +glob_countn=${countdown}
5738 +for i in `cat $dir/transfer.lst`; do
5740 + if [ "$section" != "$savedsect" ]; then
5741 + display Running chapter $section ...
5743 + savedsect=$section
5745 + #inform $countdown $TN
5746 + countdown=`expr $countdown - 1`
5747 + proglog="$dir/logs/${prog}.log"
5748 + echo "RUN $prog" >> $dir/acats.log
5749 + if [ ! -f $proglog ]; then
5750 + echo "LOG NOT FOUND!" >> $proglog
5753 + cat $proglog >> $dir/acats.log
5755 + egrep -e '(==== |\+\+\+\+ |\!\!\!\! )' $proglog > /dev/null 2>&1
5756 + if [ $? -ne 0 ]; then
5757 + grep 'tasking not implemented' $proglog > /dev/null 2>&1
5759 + if [ $? -ne 0 ]; then
5760 + display "FAIL: ${TN}"
5761 + failed="${failed}${TN} "
5763 + log "UNSUPPORTED: ${TN}"
5764 + glob_countn=`expr $glob_countn - 1`
5765 + glob_countu=`expr $glob_countu + 1`
5769 + glob_countok=`expr $glob_countok + 1`
5771 + cd $dir/tests/$section/$TN
5776 +display " === acats Summary ==="
5777 +display "# of expected passes $glob_countok"
5778 +display "# of unexpected failures `expr $glob_countn - $glob_countok`"
5780 +if [ $glob_countu -ne 0 ]; then
5781 + display "# of unsupported tests $glob_countu"
5784 +if [ $glob_countok -ne $glob_countn ]; then
5785 + display "*** FAILURES: $failed"
5788 +display "$0 completed at `date`"
5791 --- gcc/testsuite/gnat.dg/test_raise_from_pure.adb.orig
5792 +++ gcc/testsuite/gnat.dg/test_raise_from_pure.adb
5795 +-- { dg-do run { xfail *-*-openbsd* } }
5796 -- { dg-options "-O2" }
5798 -- This is an optimization test and its failure is only a missed optimization.
5799 --- gcc/testsuite/gnat.dg/unchecked_convert5.adb.orig
5800 +++ gcc/testsuite/gnat.dg/unchecked_convert5.adb
5802 --- { dg-do run { target hppa*-*-* sparc*-*-* powerpc*-*-* } }
5804 -with Unchecked_Conversion;
5806 -procedure Unchecked_Convert5 is
5808 - subtype c_1 is string(1..1);
5810 - function int2c1 is -- { dg-warning "different sizes" }
5811 - new unchecked_conversion (source => integer, target => c_1);
5817 - c1 := int2c1(16#12#);
5819 - if c1 (1) /= ASCII.Nul then
5820 - raise Program_Error;
5824 --- gcc/testsuite/gnat.dg/unchecked_convert6.adb.orig
5825 +++ gcc/testsuite/gnat.dg/unchecked_convert6.adb
5827 --- { dg-do run { target hppa*-*-* sparc*-*-* powerpc*-*-* } }
5829 -with Unchecked_Conversion;
5831 -procedure Unchecked_Convert6 is
5833 - subtype c_5 is string(1..5);
5835 - function int2c5 is -- { dg-warning "different sizes" }
5836 - new unchecked_conversion (source => integer, target => c_5);
5842 - c5 := int2c5(16#12#);
5844 - if c5 (4) /= ASCII.DC2 then
5845 - raise Program_Error;
5851 [FILE:6122:patches/patch-diff-core]
5852 --- gcc/config/darwin.h.orig
5853 +++ gcc/config/darwin.h
5855 multiple times on a command line with different arguments each time,
5856 so put a * after their names so all of them get passed. */
5858 - "%{static}%{!static:-dynamic} \
5859 + "%{static}%{!static:-dynamic -rpath @PREFIX@/@GCCAUX@/lib:@LOCALBASE@/lib} \
5860 %:remove-outfile(-ldl) \
5861 %:remove-outfile(-lm) \
5862 %:remove-outfile(-lpthread) \
5863 --- gcc/config/dragonfly.h.orig
5864 +++ gcc/config/dragonfly.h
5867 %{static:-Bstatic} \
5869 - %{!static:--hash-style=gnu} \
5870 + %{!static:--hash-style=gnu --enable-new-dtags -rpath @PREFIX@/@GCCAUX@/lib:@LOCALBASE@/lib} \
5871 %{symbolic:-Bsymbolic}"
5874 #define LINK_SPEC DFBSD_LINK_SPEC
5876 -#define DFBSD_DYNAMIC_LINKER "/usr/libexec/ld-elf.so.2"
5877 +#define DFBSD_DYNAMIC_LINKER "/libexec/ld-elf.so.2"
5880 /* Use --as-needed -lgcc_s for eh support. */
5881 --- gcc/config/sol2.h.orig
5882 +++ gcc/config/sol2.h
5884 %{static:-dn -Bstatic} \
5885 %{shared:-G -dy %{!mimpure-text:-z text}} " \
5886 LINK_LIBGCC_MAPFILE_SPEC LINK_CLEARCAP_SPEC " \
5887 + %{!static:-R/lib/amd64:@PREFIX@/@GCCAUX@/lib/amd64:@LOCALBASE@/lib} \
5888 %{symbolic:-Bsymbolic -G -dy -z text} \
5891 --- gcc/config/aarch64/aarch64-freebsd.h.orig
5892 +++ gcc/config/aarch64/aarch64-freebsd.h
5894 %{shared:-Bshareable %{h*} %{soname*}} \
5895 %{symbolic:-Bsymbolic} \
5896 %{static:-Bstatic} \
5898 + %{!static:--hash-style=gnu --enable-new-dtags -rpath @PREFIX@/@GCCAUX@/lib:@LOCALBASE@/lib \
5899 %{rdynamic:-export-dynamic} \
5900 %{!shared:-dynamic-linker " FBSD_DYNAMIC_LINKER " }} \
5901 -X" SUBTARGET_EXTRA_LINK_SPEC " \
5904 #define MCOUNT_NAME ".mcount"
5906 +/* Static stack checking is supported by means of probes. */
5907 +#define STACK_CHECK_STATIC_BUILTIN 1
5908 #endif /* GCC_AARCH64_FREEBSD_H */
5909 --- gcc/config/i386/freebsd.h.orig
5910 +++ gcc/config/i386/freebsd.h
5912 %{rdynamic:-export-dynamic} \
5913 -dynamic-linker %(fbsd_dynamic_linker) } \
5914 %{static:-Bstatic}} \
5915 + %{!static:--hash-style=gnu --enable-new-dtags -rpath @PREFIX@/@GCCAUX@/lib:@LOCALBASE@/lib} \
5916 %{symbolic:-Bsymbolic}"
5918 /* A C statement to output to the stdio stream FILE an assembler
5919 --- gcc/config/i386/freebsd64.h.orig
5920 +++ gcc/config/i386/freebsd64.h
5922 %{rdynamic:-export-dynamic} \
5923 -dynamic-linker %(fbsd_dynamic_linker) } \
5924 %{static:-Bstatic}} \
5925 + %{!static:--hash-style=gnu -rpath @PREFIX@/@GCCAUX@/lib:@LOCALBASE@/lib} \
5926 %{symbolic:-Bsymbolic}"
5927 --- gcc/Makefile.in.orig
5929 @@ -1225,7 +1225,6 @@
5937 @@ -1637,6 +1636,7 @@
5938 $(OBJS-libcommon-target) main.o c-family/cppspec.o \
5939 $(COLLECT2_OBJS) $(EXTRA_GCC_OBJS) $(GCOV_OBJS) $(GCOV_DUMP_OBJS) \
5940 $(GCOV_TOOL_OBJS) $(GENGTYPE_OBJS) gcc-ar.o gcc-nm.o gcc-ranlib.o \
5941 + insn-modes.o insn-modes-ada.o \
5942 lto-wrapper.o collect-utils.o
5944 # for anything that is shared use the cc1plus profile data, as that
5945 @@ -1652,6 +1652,11 @@
5946 ALL_HOST_OBJS = $(ALL_HOST_FRONTEND_OBJS) $(ALL_HOST_BACKEND_OBJS)
5948 BACKEND = libbackend.a main.o libcommon-target.a libcommon.a \
5950 + $(CPPLIB) $(LIBDECNUMBER)
5952 +BACKEND2 = libbackend.a main.o libcommon-target.a libcommon.a \
5953 + insn-modes-ada.o \
5954 $(CPPLIB) $(LIBDECNUMBER)
5956 # This is defined to "yes" if Tree checking is enabled, which roughly means
5957 @@ -2362,6 +2367,7 @@
5959 insn-modes.c: s-modes; @true
5960 insn-modes.h: s-modes-h; @true
5961 +insn-modes-ada.c: s-modes-ada; @true
5962 insn-modes-inline.h: s-modes-inline-h; @true
5963 min-insn-modes.c: s-modes-m; @true
5965 @@ -2386,6 +2392,12 @@
5966 $(SHELL) $(srcdir)/../move-if-change tmp-min-modes.c min-insn-modes.c
5969 +s-modes-ada: s-modes
5970 + $(shell sed -e 's/: TARGET_96_ROUND_53_LONG_DOUBLE \? &ieee_extended_intel_96_round_53_format //' \
5971 + < insn-modes.c > tmp-modes-ada.c)
5972 + $(SHELL) $(srcdir)/../move-if-change tmp-modes-ada.c insn-modes-ada.c
5973 + $(STAMP) s-modes-ada
5975 insn-preds.c: s-preds; @true
5976 tm-preds.h: s-preds-h; @true
5977 tm-constrs.h: s-constrs-h; @true
5978 @@ -3617,6 +3629,9 @@
5979 ( cd $(DESTDIR)$(bindir) && \
5980 $(LN) $(GCC_INSTALL_NAME)$(exeext) $(FULL_DRIVER_NAME) ); \
5982 + if [ -f gnat1$(exeext) ] ; then \
5983 + ( cd $(DESTDIR)$(bindir) && $(LN) $(GCC_INSTALL_NAME)$(exeext) ada$(exeext) ) \
5985 if [ ! -f gcc-cross$(exeext) ] \
5986 && [ "$(GCC_INSTALL_NAME)" != "$(GCC_TARGET_INSTALL_NAME)" ]; then \
5987 rm -f $(DESTDIR)$(bindir)/$(target_noncanonical)-gcc-tmp$(exeext); \
5988 --- gcc/config/i386/gnu-user64.h.orig
5989 +++ gcc/config/i386/gnu-user64.h
5991 %{" SPEC_32 ":-m " GNU_USER_LINK_EMULATION32 "} \
5992 %{" SPEC_X32 ":-m " GNU_USER_LINK_EMULATIONX32 "} \
5994 + %{!static:--enable-new-dtags -rpath @PREFIX@/@GCCAUX@/lib64:@LOCALBASE@/lib} \
6000 @@ -1513,6 +1513,9 @@
6001 static const char *const standard_startfile_prefix_2
6002 = STANDARD_STARTFILE_PREFIX_2;
6004 +/* Since we hardset rpath to LOCALBASE, follow with library search path */
6005 +static const char *const standard_raven_prefix = "@LOCALBASE@/lib/";
6007 /* A relative path to be used in finding the location of tools
6008 relative to the driver. */
6009 static const char *const tooldir_base_prefix = TOOLDIR_BASE_PREFIX;
6010 @@ -4695,6 +4698,8 @@
6012 add_prefix (&startfile_prefixes, standard_exec_prefix, "BINUTILS",
6013 PREFIX_PRIORITY_LAST, 1, 0);
6014 + add_prefix (&startfile_prefixes, standard_raven_prefix, "BINUTILS",
6015 + PREFIX_PRIORITY_LAST, 0, 0);
6018 gcc_assert (!IS_ABSOLUTE_PATH (tooldir_base_prefix));
6021 [FILE:8497:patches/patch-diff-cxx]
6022 --- libstdc++-v3/configure.host.orig
6023 +++ libstdc++-v3/configure.host
6026 os_include_dir="os/bsd/freebsd"
6029 + os_include_dir="os/bionic"
6032 os_include_dir="os/generic"
6034 --- libstdc++-v3/config/os/bionic/ctype_base.h.orig
6035 +++ libstdc++-v3/config/os/bionic/ctype_base.h
6037 // Non-standard typedefs.
6038 typedef const int* __to_type;
6041 +#define _U _CTYPE_U
6042 +#define _L _CTYPE_L
6043 +#define _D _CTYPE_D
6044 +#define _S _CTYPE_S
6045 +#define _P _CTYPE_P
6046 +#define _C _CTYPE_C
6047 +#define _X _CTYPE_X
6048 +#define _B _CTYPE_B
6049 +#define _N _CTYPE_D
6052 // NB: Offsets into ctype<char>::_M_table force a particular size
6053 // on the mask type. Because of this, we don't use an enum.
6055 --- libstdc++-v3/src/c++11/futex.cc.orig
6056 +++ libstdc++-v3/src/c++11/futex.cc
6058 #if defined(_GLIBCXX_HAVE_LINUX_FUTEX) && ATOMIC_INT_LOCK_FREE > 1
6062 +#include <sys/syscall.h>
6064 #include <syscall.h>
6067 #include <sys/time.h>
6069 --- libstdc++-v3/include/bits/c++config.orig
6070 +++ libstdc++-v3/include/bits/c++config
6072 #ifndef _GLIBCXX_CXX_CONFIG_H
6073 #define _GLIBCXX_CXX_CONFIG_H 1
6078 +#define _GTHROW throw()
6081 // The major release number for the GCC release the C++ library belongs to.
6082 #define _GLIBCXX_RELEASE
6084 --- libstdc++-v3/include/c_global/cstdio.orig
6085 +++ libstdc++-v3/include/c_global/cstdio
6086 @@ -159,16 +159,16 @@
6087 #if _GLIBCXX_USE_C99_CHECK || _GLIBCXX_USE_C99_DYNAMIC
6089 (snprintf)(char * __restrict, std::size_t, const char * __restrict, ...)
6093 (vfscanf)(FILE * __restrict, const char * __restrict, __gnuc_va_list);
6094 extern "C" int (vscanf)(const char * __restrict, __gnuc_va_list);
6096 (vsnprintf)(char * __restrict, std::size_t, const char * __restrict,
6097 - __gnuc_va_list) throw ();
6098 + __gnuc_va_list) _GTHROW;
6100 (vsscanf)(const char * __restrict, const char * __restrict, __gnuc_va_list)
6105 #if !_GLIBCXX_USE_C99_DYNAMIC
6106 --- libstdc++-v3/include/c_global/cstdlib.orig
6107 +++ libstdc++-v3/include/c_global/cstdlib
6112 - extern "C" void abort(void) throw () _GLIBCXX_NORETURN;
6113 - extern "C" int atexit(void (*)(void)) throw ();
6114 - extern "C" void exit(int) throw () _GLIBCXX_NORETURN;
6115 + extern "C" void abort(void) _GTHROW _GLIBCXX_NORETURN;
6116 + extern "C" int atexit(void (*)(void)) _GTHROW;
6117 + extern "C" void exit(int) _GTHROW _GLIBCXX_NORETURN;
6118 #if __cplusplus >= 201103L
6119 # ifdef _GLIBCXX_HAVE_AT_QUICK_EXIT
6120 - extern "C" int at_quick_exit(void (*)(void)) throw ();
6121 + extern "C" int at_quick_exit(void (*)(void)) _GTHROW;
6123 # ifdef _GLIBCXX_HAVE_QUICK_EXIT
6124 - extern "C" void quick_exit(int) throw() _GLIBCXX_NORETURN;
6125 + extern "C" void quick_exit(int) _GTHROW _GLIBCXX_NORETURN;
6132 #if _GLIBCXX_USE_C99_CHECK || _GLIBCXX_USE_C99_DYNAMIC
6133 - extern "C" void (_Exit)(int) throw () _GLIBCXX_NORETURN;
6134 + extern "C" void (_Exit)(int) _GTHROW _GLIBCXX_NORETURN;
6136 #if !_GLIBCXX_USE_C99_DYNAMIC
6138 @@ -217,11 +217,11 @@
6141 #if _GLIBCXX_USE_C99_LONG_LONG_CHECK || _GLIBCXX_USE_C99_LONG_LONG_DYNAMIC
6142 - extern "C" long long int (atoll)(const char *) throw ();
6143 + extern "C" long long int (atoll)(const char *) _GTHROW;
6144 extern "C" long long int
6145 - (strtoll)(const char * __restrict, char ** __restrict, int) throw ();
6146 + (strtoll)(const char * __restrict, char ** __restrict, int) _GTHROW;
6147 extern "C" unsigned long long int
6148 - (strtoull)(const char * __restrict, char ** __restrict, int) throw ();
6149 + (strtoull)(const char * __restrict, char ** __restrict, int) _GTHROW;
6151 #if !_GLIBCXX_USE_C99_LONG_LONG_DYNAMIC
6153 --- libstdc++-v3/include/c_global/cwchar.orig
6154 +++ libstdc++-v3/include/c_global/cwchar
6155 @@ -245,16 +245,16 @@
6157 #if _GLIBCXX_USE_C99_CHECK || _GLIBCXX_USE_C99_DYNAMIC
6158 extern "C" long double
6159 - (wcstold)(const wchar_t * __restrict, wchar_t ** __restrict) throw ();
6160 + (wcstold)(const wchar_t * __restrict, wchar_t ** __restrict) _GTHROW;
6162 #if !_GLIBCXX_USE_C99_DYNAMIC
6165 #if _GLIBCXX_USE_C99_LONG_LONG_CHECK || _GLIBCXX_USE_C99_LONG_LONG_DYNAMIC
6166 extern "C" long long int
6167 - (wcstoll)(const wchar_t * __restrict, wchar_t ** __restrict, int) throw ();
6168 + (wcstoll)(const wchar_t * __restrict, wchar_t ** __restrict, int) _GTHROW;
6169 extern "C" unsigned long long int
6170 - (wcstoull)(const wchar_t * __restrict, wchar_t ** __restrict, int) throw ();
6171 + (wcstoull)(const wchar_t * __restrict, wchar_t ** __restrict, int) _GTHROW;
6173 #if !_GLIBCXX_USE_C99_LONG_LONG_DYNAMIC
6175 --- libstdc++-v3/include/c_std/cstdio.orig
6176 +++ libstdc++-v3/include/c_std/cstdio
6177 @@ -157,16 +157,16 @@
6178 #if _GLIBCXX_USE_C99_CHECK || _GLIBCXX_USE_C99_DYNAMIC
6180 (snprintf)(char * __restrict, std::size_t, const char * __restrict, ...)
6184 (vfscanf)(FILE * __restrict, const char * __restrict, __gnuc_va_list);
6185 extern "C" int (vscanf)(const char * __restrict, __gnuc_va_list);
6187 (vsnprintf)(char * __restrict, std::size_t, const char * __restrict,
6188 - __gnuc_va_list) throw ();
6189 + __gnuc_va_list) _GTHROW;
6191 (vsscanf)(const char * __restrict, const char * __restrict, __gnuc_va_list)
6196 #if !_GLIBCXX_USE_C99_DYNAMIC
6197 --- libstdc++-v3/include/c_std/cstdlib.orig
6198 +++ libstdc++-v3/include/c_std/cstdlib
6203 - extern "C" void abort(void) throw () _GLIBCXX_NORETURN;
6204 - extern "C" int atexit(void (*)(void)) throw ();
6205 - extern "C" void exit(int) throw () _GLIBCXX_NORETURN;
6206 + extern "C" void abort(void) _GTHROW _GLIBCXX_NORETURN;
6207 + extern "C" int atexit(void (*)(void)) _GTHROW;
6208 + extern "C" void exit(int) _GTHROW _GLIBCXX_NORETURN;
6209 #if __cplusplus >= 201103L
6210 # ifdef _GLIBCXX_HAVE_AT_QUICK_EXIT
6211 - extern "C" int at_quick_exit(void (*)(void)) throw ();
6212 + extern "C" int at_quick_exit(void (*)(void)) _GTHROW;
6214 # ifdef _GLIBCXX_HAVE_QUICK_EXIT
6215 - extern "C" void quick_exit(int) throw() _GLIBCXX_NORETURN;
6216 + extern "C" void quick_exit(int) _GTHROW _GLIBCXX_NORETURN;
6223 #if _GLIBCXX_USE_C99_CHECK || _GLIBCXX_USE_C99_DYNAMIC
6224 - extern "C" void (_Exit)(int) throw () _GLIBCXX_NORETURN;
6225 + extern "C" void (_Exit)(int) _GTHROW _GLIBCXX_NORETURN;
6227 #if !_GLIBCXX_USE_C99_DYNAMIC
6229 @@ -228,11 +228,11 @@
6232 #if _GLIBCXX_USE_C99_LONG_LONG_CHECK || _GLIBCXX_USE_C99_LONG_LONG_DYNAMIC
6233 - extern "C" long long int (atoll)(const char *) throw ();
6234 + extern "C" long long int (atoll)(const char *) _GTHROW;
6235 extern "C" long long int
6236 - (strtoll)(const char * __restrict, char ** __restrict, int) throw ();
6237 + (strtoll)(const char * __restrict, char ** __restrict, int) _GTHROW;
6238 extern "C" unsigned long long int
6239 - (strtoull)(const char * __restrict, char ** __restrict, int) throw ();
6240 + (strtoull)(const char * __restrict, char ** __restrict, int) _GTHROW;
6242 #if !_GLIBCXX_USE_C99_LONG_LONG_DYNAMIC
6244 --- libstdc++-v3/include/c_std/cwchar.orig
6245 +++ libstdc++-v3/include/c_std/cwchar
6246 @@ -238,16 +238,16 @@
6248 #if _GLIBCXX_USE_C99_CHECK || _GLIBCXX_USE_C99_DYNAMIC
6249 extern "C" long double
6250 - (wcstold)(const wchar_t * __restrict, wchar_t ** __restrict) throw ();
6251 + (wcstold)(const wchar_t * __restrict, wchar_t ** __restrict) _GTHROW;
6253 #if !_GLIBCXX_USE_C99_DYNAMIC
6256 #if _GLIBCXX_USE_C99_LONG_LONG_CHECK || _GLIBCXX_USE_C99_LONG_LONG_DYNAMIC
6257 extern "C" long long int
6258 - (wcstoll)(const wchar_t * __restrict, wchar_t ** __restrict, int) throw ();
6259 + (wcstoll)(const wchar_t * __restrict, wchar_t ** __restrict, int) _GTHROW;
6260 extern "C" unsigned long long int
6261 - (wcstoull)(const wchar_t * __restrict, wchar_t ** __restrict, int) throw ();
6262 + (wcstoull)(const wchar_t * __restrict, wchar_t ** __restrict, int) _GTHROW;
6264 #if !_GLIBCXX_USE_C99_LONG_LONG_DYNAMIC
6268 [FILE:1612:patches/patch-diff-gcc-testsuite]
6269 --- gcc/testsuite/gcc.dg/format/ext-1.c.orig
6270 +++ gcc/testsuite/gcc.dg/format/ext-1.c
6275 -foo (quad_t q, u_quad_t uq, quad_t *qn, size_t z, size_t *zn, long long int ll,
6276 +foo (quad2_t q, u_quad2_t uq, quad2_t *qn, size_t z, size_t *zn, long long int ll,
6277 unsigned long long int ull, int i, unsigned int u, double d,
6278 char *s, void *p, wchar_t *ls, wint_t lc, int *n, long int l)
6280 --- gcc/testsuite/gcc.dg/format/ext-2.c.orig
6281 +++ gcc/testsuite/gcc.dg/format/ext-2.c
6286 -foo (quad_t *qp, u_quad_t *uqp, quad_t *qn, long long int *llp,
6287 +foo (quad2_t *qp, u_quad2_t *uqp, quad2_t *qn, long long int *llp,
6288 unsigned long long int *ullp, float *fp, char *s, void **pp, wchar_t *ls,
6289 int *ip, unsigned int *up)
6291 --- gcc/testsuite/gcc.dg/format/format.h.orig
6292 +++ gcc/testsuite/gcc.dg/format/format.h
6296 /* %q formats want a "quad"; GCC considers this to be a long long. */
6297 -typedef llong quad_t;
6298 -typedef ullong u_quad_t;
6299 +typedef llong quad2_t;
6300 +typedef ullong u_quad2_t;
6302 __extension__ typedef __INTMAX_TYPE__ intmax_t;
6303 __extension__ typedef __UINTMAX_TYPE__ uintmax_t;
6304 --- gcc/testsuite/gcc.dg/pch/pch.exp.orig
6305 +++ gcc/testsuite/gcc.dg/pch/pch.exp
6307 set test "largefile.c"
6308 set testh "largefile.hs"
6309 set f [open $test w]
6310 +puts $f "/* { dg-do run { target *-*-solaris* } } */"
6311 +puts $f "/* { dg-error \"dummy\" \"fool dejagnu\" { target { ! *-*-solaris* } 20 } } */"
6312 puts $f "/* { dg-timeout-factor 4.0 } */"
6314 for { set v 0 } { $v < 10000 } { incr v } {
6317 [FILE:286:sunos/patch-gcc_config.build]
6318 --- gcc/config.build.orig 2017-01-01 12:07:43 UTC
6319 +++ gcc/config.build
6324 -build_install_headers_dir=install-headers-tar
6325 +build_install_headers_dir=install-headers-cp
6326 build_file_translate=
6328 # System-specific settings.