1 # Buildsheet autogenerated by ravenadm tool -- Do not edit.
7 SDESC[standard]= GNU Compiler collection (GCC), Series 10
8 HOMEPAGE= https://gcc.gnu.org/
9 CONTACT= John_Marino[draco@marino.st]
12 SITES[main]= GCC/releases/gcc-10.3.0
13 DISTFILE[1]= gcc-10.3.0.tar.xz:main
15 SPKGS[standard]= complete
23 OPTIONS_AVAILABLE= none
24 OPTIONS_STANDARD= none
28 BUILD_DEPENDS= gmp:static:standard
31 BUILDRUN_DEPENDS= binutils:single:ravensys
32 B_DEPS[freebsd]= libiconv:static:standard
33 B_DEPS[darwin]= libiconv:static:standard
34 B_DEPS[solaris]= libiconv:static:standard
35 B_DEPS[dragonfly]= libiconv:static:standard
36 EXRUN[fortran_run]= gcc9:libs:standard
37 EXRUN[cxx_run]= gcc9:libs:standard
38 EXRUN[compilers]= gcc9:cxx_run:standard
39 EXRUN[ada_run]= gcc9:libs:standard
41 USES= cpe gmake libtool perl:build
45 LICENSE= GPLv3+:compilers LGPL3+:compilers
47 LICENSE_TERMS= compilers:{{WRKDIR}}/TERMS
48 LICENSE_FILE= GPLv3+:{{WRKSRC}}/COPYING3
49 LGPL3+:{{WRKSRC}}/COPYING3.LIB
50 GPLv3RLE+:{{WRKSRC}}/COPYING.RUNTIME
53 PREFIX= {{LOCALBASE}}/toolchain/{{NAMEBASE}}
56 FPC_EQUIVALENT= lang/gcc10
59 CONFIGURE_OUTSOURCE= yes
60 CONFIGURE_ARGS= --enable-languages="c,c++,ada,fortran"
61 --with-local-prefix={{LOCALBASE}}
62 --with-gmp={{LOCALBASE}}
63 --with-mpc={{LOCALBASE}}
64 --with-mpfr={{LOCALBASE}}
66 --enable-threads=posix
67 --enable-checking=release
71 --disable-libsanitizer
75 --with-pkgversion="Ravenports"
77 INSTALL_TARGET= install-strip
78 PLIST_SUB= GCCVER=10.3.0
79 TARGET={{CONFIGURE_TARGET}}
83 VAR_OPSYS[freebsd]= CONFIGURE_ARGS=--disable-libstdcxx-pch
84 CONFIGURE_ARGS=--with-gnu-as
85 CONFIGURE_ARGS=--with-as={{LOCALBASE}}/toolchain/bin/as
86 CONFIGURE_ARGS=--with-ld={{LOCALBASE}}/toolchain/bin/ld
87 CONFIGURE_ARGS=--with-libiconv-prefix={{WRKDIR}}/fake
88 VAR_OPSYS[sunos]= CONFIGURE_ARGS=--enable-symvers=no
89 CONFIGURE_ARGS=--with-gnu-as
90 CONFIGURE_ARGS=--with-as={{LOCALBASE}}/toolchain/bin/as
91 CONFIGURE_ARGS=--without-gnu-ld
92 CONFIGURE_ARGS=--with-libiconv-prefix={{WRKDIR}}/fake
93 VAR_OPSYS[darwin]= CONFIGURE_ARGS=--disable-libstdcxx-pch
94 CONFIGURE_ARGS=--with-ld=/usr/bin/ld
95 CONFIGURE_ARGS=--with-as=/usr/bin/as
96 CONFIGURE_ARGS=--with-libiconv-prefix={{WRKDIR}}/fake
97 VAR_OPSYS[dragonfly]= CONFIGURE_ARGS=--with-gnu-as
98 CONFIGURE_ARGS=--with-as={{LOCALBASE}}/toolchain/bin/as
99 CONFIGURE_ARGS=--with-ld={{LOCALBASE}}/toolchain/bin/ld
100 CONFIGURE_ARGS=--with-libiconv-prefix={{WRKDIR}}/fake
103 # Update LINK_SPEC to add gcc-aux lib runpath in every binary
104 @${ECHO} "Configuring LINK_SPEC runpath"
105 ${REINPLACE_CMD} -e 's;\@PREFIX\@;${PREFIX:H};g' \
106 -e 's;\@GCCAUX\@;${NAMEBASE};' \
107 -e 's;\@LOCALBASE\@;${LOCALBASE};g' \
108 ${WRKSRC}/gcc/gcc.c \
109 ${WRKSRC}/gcc/config/darwin.h \
110 ${WRKSRC}/gcc/config/dragonfly.h \
111 ${WRKSRC}/gcc/config/sol2.h \
112 ${WRKSRC}/gcc/config/i386/freebsd64.h \
113 ${WRKSRC}/gcc/config/i386/freebsd.h \
114 ${WRKSRC}/gcc/config/i386/gnu-user64.h \
115 ${WRKSRC}/gcc/config/aarch64/aarch64-freebsd.h \
116 ${WRKSRC}/gcc/ada/gnatls.adb
117 # Ensure dwarf4-compatible addr2line
118 ${REINPLACE_CMD} -e 's|/usr/bin/addr2line|${PREFIX:H}/bin/addr2line|g'\
119 ${WRKSRC}/gcc/ada/traceback_symbolic.c
120 ${REINPLACE_CMD} -e 's|static:crtbeginT.o%s;||' \
121 ${WRKSRC}/gcc/config/freebsd-spec.h
124 # undo BSD thin socket modification
125 ${MV} ${WRKSRC}/gcc/ada/libgnat/g-socthi.ads.orig \
126 ${WRKSRC}/gcc/ada/libgnat/g-socthi.ads
127 ${FIND} ${WRKSRC} -name configure | ${XARGS} \
128 ${SED} -i.mac -e 's|apple-darwin|raven-darwin|' \
129 ${WRKSRC}/gcc/configure
132 # undo BSD thin socket modification
133 ${MV} ${WRKSRC}/gcc/ada/libgnat/g-socthi.ads.orig \
134 ${WRKSRC}/gcc/ada/libgnat/g-socthi.ads
136 post-install-freebsd:
137 ${RM} -r ${STAGEDIR}${PREFIX}/lib/gcc/${CONFIGURE_TARGET}/10.3.0/include-fixed
139 post-install-dragonfly:
140 ${RM} -r ${STAGEDIR}${PREFIX}/lib/gcc/${CONFIGURE_TARGET}/10.3.0/include-fixed
143 cp ${STAGEDIR}${PREFIX}/bin/gcc ${STAGEDIR}${PREFIX}/bin/cc
144 ${RM} ${STAGEDIR}${MANPREFIX}/man/man7/*
145 ${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/gcc/${CONFIGURE_TARGET}/10.3.0/adalib/libgnarl.${LIBEXT}
146 ${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/gcc/${CONFIGURE_TARGET}/10.3.0/adalib/libgnat.${LIBEXT}
147 # remove when info pages re-enabled
148 ${RM} ${STAGEDIR}${PREFIX}/share/info/libitm.info
149 ${RM} ${STAGEDIR}${PREFIX}/share/info/libgomp.info
150 ${RM} ${STAGEDIR}${PREFIX}/share/info/libquadmath.info
153 ${HEAD} -n 19 ${WRKSRC}/gcc/gcc.h > ${WRKDIR}/TERMS
154 ${HEAD} -n 31 ${WRKSRC}/gcc/ada/adaint.h >> ${WRKDIR}/TERMS
155 ${HEAD} -n 18 ${WRKSRC}/libiberty/hex.c >> ${WRKDIR}/TERMS
156 # Use iconv_pic.a instead of iconv.a
157 if [ -f ${LOCALBASE}/include/iconv.h ]; then \
158 ${MKDIR} ${WRKDIR}/fake/include ${WRKDIR}/fake/lib ;\
159 ${INSTALL_DATA} ${LOCALBASE}/include/iconv.h \
160 ${WRKDIR}/fake/include/ ;\
161 ${INSTALL_DATA} ${LOCALBASE}/lib/libiconv_pic.a \
162 ${WRKDIR}/fake/lib/libiconv.a ;\
166 ${REINPLACE_CMD} -e 's|cp -p -r |cp -RP |' \
167 ${WRKSRC}/gcc/Makefile.in
168 ${REINPLACE_CMD} -e 's| install-gcc-specs||' \
169 ${WRKSRC}/gcc/ada/gcc-interface/Makefile.in
170 # undo BSD thin socket modification
171 ${MV} ${WRKSRC}/gcc/ada/libgnat/g-socthi.ads.orig \
172 ${WRKSRC}/gcc/ada/libgnat/g-socthi.ads
174 [FILE:330:descriptions/desc.compilers]
175 This is series 10 of the GNU Compiler Collection (GCC)
177 This compiler supports the following languages: C, C++, Fortran and Ada.
178 The GNAT front-end implements the full Ada-83, Ada-95, Ada-2005 and
179 Ada-2012 standards. The C++ front-end defaults to the gnu++14 standard.
181 This package contains the compilers, drivers, and headers.
184 [FILE:105:descriptions/desc.ada_run]
185 This is series 10 of the GNU Compiler Collection (GCC)
187 This package contains the Ada runtime libraries.
190 [FILE:105:descriptions/desc.cxx_run]
191 This is series 10 of the GNU Compiler Collection (GCC)
193 This package contains the C++ runtime libraries.
196 [FILE:109:descriptions/desc.fortran_run]
197 This is series 10 of the GNU Compiler Collection (GCC)
199 This package contains the Fortran runtime libraries.
202 [FILE:163:descriptions/desc.libs]
203 This is series 10 of the GNU Compiler Collection (GCC)
205 This package contains the remaining runtime libraries after excluding
206 the Ada, C++, and Fortran libraries.
209 [FILE:127:descriptions/desc.infopages]
210 This is series 10 of the GNU Compiler Collection (GCC)
212 This package contains the man pages and info pages that come with GCC.
216 64f404c1a650f27fc33da242e1f2df54952e3963a49e06e73f6940f3223ac344 76692288 gcc-10.3.0.tar.xz
219 [FILE:29044:manifests/plist.compilers]
220 @comment lib/gcc/%%TARGET%%/%%GCCVER%%/include/cilk/cilk.h
221 @comment lib/gcc/%%TARGET%%/%%GCCVER%%/include/cilk/cilk_api.h
222 @comment lib/gcc/%%TARGET%%/%%GCCVER%%/include/cilk/cilk_api_linux.h
223 @comment lib/gcc/%%TARGET%%/%%GCCVER%%/include/cilk/cilk_stub.h
224 @comment lib/gcc/%%TARGET%%/%%GCCVER%%/include/cilk/cilk_undocumented.h
225 @comment lib/gcc/%%TARGET%%/%%GCCVER%%/include/cilk/common.h
226 @comment lib/gcc/%%TARGET%%/%%GCCVER%%/include/cilk/holder.h
227 @comment lib/gcc/%%TARGET%%/%%GCCVER%%/include/cilk/hyperobject_base.h
228 @comment lib/gcc/%%TARGET%%/%%GCCVER%%/include/cilk/metaprogramming.h
229 @comment lib/gcc/%%TARGET%%/%%GCCVER%%/include/cilk/reducer.h
230 @comment lib/gcc/%%TARGET%%/%%GCCVER%%/include/cilk/reducer_file.h
231 @comment lib/gcc/%%TARGET%%/%%GCCVER%%/include/cilk/reducer_list.h
232 @comment lib/gcc/%%TARGET%%/%%GCCVER%%/include/cilk/reducer_max.h
233 @comment lib/gcc/%%TARGET%%/%%GCCVER%%/include/cilk/reducer_min.h
234 @comment lib/gcc/%%TARGET%%/%%GCCVER%%/include/cilk/reducer_min_max.h
235 @comment lib/gcc/%%TARGET%%/%%GCCVER%%/include/cilk/reducer_opadd.h
236 @comment lib/gcc/%%TARGET%%/%%GCCVER%%/include/cilk/reducer_opand.h
237 @comment lib/gcc/%%TARGET%%/%%GCCVER%%/include/cilk/reducer_opmul.h
238 @comment lib/gcc/%%TARGET%%/%%GCCVER%%/include/cilk/reducer_opor.h
239 @comment lib/gcc/%%TARGET%%/%%GCCVER%%/include/cilk/reducer_opxor.h
240 @comment lib/gcc/%%TARGET%%/%%GCCVER%%/include/cilk/reducer_ostream.h
241 @comment lib/gcc/%%TARGET%%/%%GCCVER%%/include/cilk/reducer_string.h
242 %%EXCLUDE-DARWIN%%lib/gcc/%%TARGET%%/%%GCCVER%%/
245 %%EXCLUDE-DARWIN%%lib/gcc/%%TARGET%%/%%GCCVER%%/plugin/
247 libcc1plugin.so.0.0.0
249 libcp1plugin.so.0.0.0
250 %%EXCLUDE-DARWIN%%lib/gcc/%%TARGET%%/%%GCCVER%%/plugin/include/config/
253 %%EXCLUDE-DARWIN%%lib/gcc/%%TARGET%%/%%GCCVER%%/plugin/include/config/i386/
257 %%EXCLUDE-DARWIN%%libexec/gcc/%%TARGET%%/%%GCCVER%%/
260 liblto_plugin.so.0.0.0
261 %%ONLY-DARWIN%%lib/gcc/%%TARGET%%/%%GCCVER%%/
269 %%ONLY-DARWIN%%lib/gcc/%%TARGET%%/%%GCCVER%%/include/tgmath.h
270 %%ONLY-DARWIN%%lib/gcc/%%TARGET%%/%%GCCVER%%/include-fixed/
271 AvailabilityInternal.h
278 %%ONLY-DARWIN%%lib/gcc/%%TARGET%%/%%GCCVER%%/include-fixed/os/trace.h
279 %%ONLY-DARWIN%%lib/gcc/%%TARGET%%/%%GCCVER%%/plugin/
280 libcc1plugin.0.%%SHARED_OBJECT%%
281 libcp1plugin.0.%%SHARED_OBJECT%%
282 %%ONLY-DARWIN%%lib/gcc/%%TARGET%%/%%GCCVER%%/plugin/include/config/
289 %%ONLY-DARWIN%%lib/gcc/%%TARGET%%/%%GCCVER%%/plugin/include/config/i386/
292 %%ONLY-DRAGONFLY%%lib/gcc/%%TARGET%%/%%GCCVER%%/
295 %%ONLY-DRAGONFLY%%lib/gcc/%%TARGET%%/%%GCCVER%%/include/tgmath.h
296 %%ONLY-DRAGONFLY%%lib/gcc/%%TARGET%%/%%GCCVER%%/plugin/include/config/
299 %%ONLY-DRAGONFLY%%lib/gcc/%%TARGET%%/%%GCCVER%%/plugin/include/config/i386/dragonfly.h
300 %%ONLY-FREEBSD%%lib/gcc/%%TARGET%%/%%GCCVER%%/
303 %%ONLY-FREEBSD%%lib/gcc/%%TARGET%%/%%GCCVER%%/include/tgmath.h
304 %%ONLY-FREEBSD%%lib/gcc/%%TARGET%%/%%GCCVER%%/plugin/include/config/
308 %%ONLY-FREEBSD%%lib/gcc/%%TARGET%%/%%GCCVER%%/plugin/include/config/i386/
311 %%ONLY-LINUX%%lib/gcc/%%TARGET%%/%%GCCVER%%/
319 %%ONLY-LINUX%%lib/gcc/%%TARGET%%/%%GCCVER%%/include-fixed/
323 %%ONLY-LINUX%%lib/gcc/%%TARGET%%/%%GCCVER%%/include-fixed/linux/a.out.h
324 %%ONLY-LINUX%%lib/gcc/%%TARGET%%/%%GCCVER%%/plugin/include/config/
330 %%ONLY-LINUX%%lib/gcc/%%TARGET%%/%%GCCVER%%/plugin/include/config/i386/
338 %%ONLY-SUNOS%%lib/gcc/%%TARGET%%/%%GCCVER%%/
344 %%ONLY-SUNOS%%lib/gcc/%%TARGET%%/%%GCCVER%%/include/tgmath.h
345 %%ONLY-SUNOS%%lib/gcc/%%TARGET%%/%%GCCVER%%/include-fixed/
354 %%ONLY-SUNOS%%lib/gcc/%%TARGET%%/%%GCCVER%%/include-fixed/dat/dat_platform_specific.h
355 %%ONLY-SUNOS%%lib/gcc/%%TARGET%%/%%GCCVER%%/include-fixed/iso/
361 %%ONLY-SUNOS%%lib/gcc/%%TARGET%%/%%GCCVER%%/include-fixed/mps/secport.h
362 %%ONLY-SUNOS%%lib/gcc/%%TARGET%%/%%GCCVER%%/include-fixed/netinet/
370 %%ONLY-SUNOS%%lib/gcc/%%TARGET%%/%%GCCVER%%/include-fixed/sys/
374 %%ONLY-SUNOS%%lib/gcc/%%TARGET%%/%%GCCVER%%/plugin/include/config/
378 %%ONLY-SUNOS%%lib/gcc/%%TARGET%%/%%GCCVER%%/plugin/include/config/i386/
385 %%TARGET%%-gcc-%%GCCVER%%
388 %%TARGET%%-gcc-ranlib
416 include/c++/%%GCCVER%%/
519 include/c++/%%GCCVER%%/%%TARGET%%/bits/
542 include/c++/%%GCCVER%%/%%TARGET%%/ext/opt_random.h
543 include/c++/%%GCCVER%%/backward/
552 include/c++/%%GCCVER%%/bits/
559 atomic_lockfree_defines.h
564 boost_concept_check.h
572 cxxabi_init_exception.h
574 enable_special_members.h
604 locale_facets_nonio.h
605 locale_facets_nonio.tcc
625 ranges_uninitialized.h
656 stl_iterator_base_funcs.h
657 stl_iterator_base_types.h
665 stl_raw_storage_iter.h
689 include/c++/%%GCCVER%%/debug/
709 safe_local_iterator.h
710 safe_local_iterator.tcc
713 safe_unordered_base.h
714 safe_unordered_container.h
715 safe_unordered_container.tcc
723 include/c++/%%GCCVER%%/decimal/
726 include/c++/%%GCCVER%%/experimental/
765 include/c++/%%GCCVER%%/experimental/bits/
774 include/c++/%%GCCVER%%/ext/
782 codecvt_specializations.h
818 include/c++/%%GCCVER%%/ext/pb_ds/
822 list_update_policy.hpp
827 include/c++/%%GCCVER%%/ext/pb_ds/detail/
829 container_base_dispatch.hpp
831 priority_queue_base_dispatch.hpp
832 standard_policies.hpp
836 include/c++/%%GCCVER%%/ext/pb_ds/detail/bin_search_tree_/
838 constructors_destructor_fn_imps.hpp
844 iterators_fn_imps.hpp
847 policy_access_fn_imps.hpp
850 split_join_fn_imps.hpp
852 include/c++/%%GCCVER%%/ext/pb_ds/detail/binary_heap_/
855 constructors_destructor_fn_imps.hpp
863 iterators_fn_imps.hpp
864 point_const_iterator.hpp
865 policy_access_fn_imps.hpp
867 split_join_fn_imps.hpp
869 include/c++/%%GCCVER%%/ext/pb_ds/detail/binomial_heap_/
871 constructors_destructor_fn_imps.hpp
873 include/c++/%%GCCVER%%/ext/pb_ds/detail/binomial_heap_base_/
874 binomial_heap_base_.hpp
875 constructors_destructor_fn_imps.hpp
880 split_join_fn_imps.hpp
881 include/c++/%%GCCVER%%/ext/pb_ds/detail/branch_policy/
883 null_node_metadata.hpp
885 include/c++/%%GCCVER%%/ext/pb_ds/detail/cc_hash_table_map_/
888 cond_key_dtor_entry_dealtor.hpp
889 constructor_destructor_fn_imps.hpp
890 constructor_destructor_no_store_hash_fn_imps.hpp
891 constructor_destructor_store_hash_fn_imps.hpp
893 debug_no_store_hash_fn_imps.hpp
894 debug_store_hash_fn_imps.hpp
895 entry_list_fn_imps.hpp
897 erase_no_store_hash_fn_imps.hpp
898 erase_store_hash_fn_imps.hpp
900 find_store_hash_fn_imps.hpp
903 insert_no_store_hash_fn_imps.hpp
904 insert_store_hash_fn_imps.hpp
905 iterators_fn_imps.hpp
906 policy_access_fn_imps.hpp
908 resize_no_store_hash_fn_imps.hpp
909 resize_store_hash_fn_imps.hpp
912 include/c++/%%GCCVER%%/ext/pb_ds/detail/eq_fn/
915 include/c++/%%GCCVER%%/ext/pb_ds/detail/gp_hash_table_map_/
916 constructor_destructor_fn_imps.hpp
917 constructor_destructor_no_store_hash_fn_imps.hpp
918 constructor_destructor_store_hash_fn_imps.hpp
920 debug_no_store_hash_fn_imps.hpp
921 debug_store_hash_fn_imps.hpp
923 erase_no_store_hash_fn_imps.hpp
924 erase_store_hash_fn_imps.hpp
926 find_no_store_hash_fn_imps.hpp
927 find_store_hash_fn_imps.hpp
931 insert_no_store_hash_fn_imps.hpp
932 insert_store_hash_fn_imps.hpp
934 policy_access_fn_imps.hpp
936 resize_no_store_hash_fn_imps.hpp
937 resize_store_hash_fn_imps.hpp
939 include/c++/%%GCCVER%%/ext/pb_ds/detail/hash_fn/
940 direct_mask_range_hashing_imp.hpp
941 direct_mod_range_hashing_imp.hpp
942 linear_probe_fn_imp.hpp
943 mask_based_range_hashing.hpp
944 mod_based_range_hashing.hpp
946 quadratic_probe_fn_imp.hpp
950 sample_range_hashing.hpp
951 sample_ranged_hash_fn.hpp
952 sample_ranged_probe_fn.hpp
953 include/c++/%%GCCVER%%/ext/pb_ds/detail/left_child_next_sibling_heap_/
955 constructors_destructor_fn_imps.hpp
960 iterators_fn_imps.hpp
961 left_child_next_sibling_heap_.hpp
963 point_const_iterator.hpp
964 policy_access_fn_imps.hpp
966 include/c++/%%GCCVER%%/ext/pb_ds/detail/list_update_map_/
967 constructor_destructor_fn_imps.hpp
969 entry_metadata_base.hpp
974 iterators_fn_imps.hpp
977 include/c++/%%GCCVER%%/ext/pb_ds/detail/list_update_policy/
978 lu_counter_metadata.hpp
979 sample_update_policy.hpp
980 include/c++/%%GCCVER%%/ext/pb_ds/detail/ov_tree_map_/
981 constructors_destructor_fn_imps.hpp
986 iterators_fn_imps.hpp
989 policy_access_fn_imps.hpp
990 split_join_fn_imps.hpp
992 include/c++/%%GCCVER%%/ext/pb_ds/detail/pairing_heap_/
993 constructors_destructor_fn_imps.hpp
999 split_join_fn_imps.hpp
1000 include/c++/%%GCCVER%%/ext/pb_ds/detail/pat_trie_/
1001 constructors_destructor_fn_imps.hpp
1006 insert_join_fn_imps.hpp
1007 iterators_fn_imps.hpp
1010 policy_access_fn_imps.hpp
1014 synth_access_traits.hpp
1018 include/c++/%%GCCVER%%/ext/pb_ds/detail/rb_tree_map_/
1019 constructors_destructor_fn_imps.hpp
1027 split_join_fn_imps.hpp
1029 include/c++/%%GCCVER%%/ext/pb_ds/detail/rc_binomial_heap_/
1030 constructors_destructor_fn_imps.hpp
1035 rc_binomial_heap_.hpp
1036 split_join_fn_imps.hpp
1038 include/c++/%%GCCVER%%/ext/pb_ds/detail/resize_policy/
1039 cc_hash_max_collision_check_resize_trigger_imp.hpp
1040 hash_exponential_size_policy_imp.hpp
1041 hash_load_check_resize_trigger_imp.hpp
1042 hash_load_check_resize_trigger_size_base.hpp
1043 hash_prime_size_policy_imp.hpp
1044 hash_standard_resize_policy_imp.hpp
1045 sample_resize_policy.hpp
1046 sample_resize_trigger.hpp
1047 sample_size_policy.hpp
1048 include/c++/%%GCCVER%%/ext/pb_ds/detail/splay_tree_/
1049 constructors_destructor_fn_imps.hpp
1058 split_join_fn_imps.hpp
1060 include/c++/%%GCCVER%%/ext/pb_ds/detail/thin_heap_/
1061 constructors_destructor_fn_imps.hpp
1066 split_join_fn_imps.hpp
1069 include/c++/%%GCCVER%%/ext/pb_ds/detail/tree_policy/
1070 node_metadata_selector.hpp
1071 order_statistics_imp.hpp
1072 sample_tree_node_update.hpp
1073 include/c++/%%GCCVER%%/ext/pb_ds/detail/trie_policy/
1074 node_metadata_selector.hpp
1075 order_statistics_imp.hpp
1076 prefix_search_node_update_imp.hpp
1077 sample_trie_access_traits.hpp
1078 sample_trie_node_update.hpp
1079 trie_policy_base.hpp
1080 trie_string_access_traits_imp.hpp
1081 include/c++/%%GCCVER%%/ext/pb_ds/detail/unordered_iterator/
1084 point_const_iterator.hpp
1086 include/c++/%%GCCVER%%/parallel/
1091 balanced_quicksort.h
1096 compiletime_settings.h
1102 for_each_selectors.h
1107 multiseq_selection.h
1109 multiway_mergesort.h
1130 include/c++/%%GCCVER%%/pstl/
1135 glue_algorithm_defs.h
1136 glue_algorithm_impl.h
1137 glue_execution_defs.h
1146 parallel_backend_serial.h
1147 parallel_backend_tbb.h
1148 parallel_backend_utils.h
1151 unseq_backend_simd.h
1153 include/c++/%%GCCVER%%/tr1/
1187 legendre_function.tcc
1191 modified_bessel_func.tcc
1200 special_function_util.h
1216 include/c++/%%GCCVER%%/tr2/
1223 lib/gcc/%%TARGET%%/%%GCCVER%%/
1224 ada_target_properties
1229 lib/gcc/%%TARGET%%/%%GCCVER%%/finclude/
1241 lib/gcc/%%TARGET%%/%%GCCVER%%/include/
1242 ISO_Fortran_binding.h
1247 avx5124fmapsintrin.h
1248 avx5124vnniwintrin.h
1250 avx512bf16vlintrin.h
1251 avx512bitalgintrin.h
1258 avx512ifmavlintrin.h
1261 avx512vbmi2vlintrin.h
1263 avx512vbmivlintrin.h
1268 avx512vnnivlintrin.h
1269 avx512vp2intersectintrin.h
1270 avx512vp2intersectvlintrin.h
1271 avx512vpopcntdqintrin.h
1272 avx512vpopcntdqvlintrin.h
1345 lib/gcc/%%TARGET%%/%%GCCVER%%/include/ssp/
1350 lib/gcc/%%TARGET%%/%%GCCVER%%/install-tools/
1355 lib/gcc/%%TARGET%%/%%GCCVER%%/install-tools/include/
1358 lib/gcc/%%TARGET%%/%%GCCVER%%/plugin/
1360 libcc1plugin.%%SHARED_OBJECT%%
1361 libcp1plugin.%%SHARED_OBJECT%%
1362 lib/gcc/%%TARGET%%/%%GCCVER%%/plugin/include/
1410 coroutine-builtins.def
1428 diagnostic-event-id.h
1429 diagnostic-metadata.h
1484 gimple-pretty-print.h
1485 gimple-ssa-evrp-analyze.h
1486 gimple-ssa-warn-restrict.h
1513 highlev-plugin-common.h
1536 int-vector-builder.h
1544 ipa-param-manipulation.h
1636 rtx-vector-builder.h
1645 selftest-diagnostic.h
1665 substring-locations.h
1672 target-hooks-macros.h
1709 tree-scalar-evolution.h
1719 tree-ssa-loop-ivopts.h
1720 tree-ssa-loop-manip.h
1721 tree-ssa-loop-niter.h
1724 tree-ssa-propagate.h
1726 tree-ssa-scopedtables.h
1729 tree-ssa-threadedge.h
1730 tree-ssa-threadupdate.h
1735 tree-switch-conversion.h
1736 tree-vector-builder.h
1764 lib/gcc/%%TARGET%%/%%GCCVER%%/plugin/include/ada/gcc-interface/ada-tree.def
1765 lib/gcc/%%TARGET%%/%%GCCVER%%/plugin/include/c-family/
1771 lib/gcc/%%TARGET%%/%%GCCVER%%/plugin/include/common/config/i386/i386-cpuinfo.h
1772 lib/gcc/%%TARGET%%/%%GCCVER%%/plugin/include/config/
1775 lib/gcc/%%TARGET%%/%%GCCVER%%/plugin/include/config/i386/
1782 lib/gcc/%%TARGET%%/%%GCCVER%%/plugin/include/cp/
1789 lib/gcc/%%TARGET%%/%%GCCVER%%/plugin/include/d/d-tree.def
1790 lib/gcc/%%TARGET%%/%%GCCVER%%/plugin/include/objc/objc-tree.def
1791 libexec/gcc/%%TARGET%%/%%GCCVER%%/
1799 libexec/gcc/%%TARGET%%/%%GCCVER%%/install-tools/
1804 libexec/gcc/%%TARGET%%/%%GCCVER%%/plugin/gengtype
1807 [FILE:29159:manifests/plist.ada_run]
1808 %%EXCLUDE-DARWIN%%lib/gcc/%%TARGET%%/%%GCCVER%%/adainclude/
1812 %%EXCLUDE-DARWIN%%lib/gcc/%%TARGET%%/%%GCCVER%%/adalib/
1818 %%ONLY-DARWIN%%lib/gcc/%%TARGET%%/%%GCCVER%%/adainclude/a-exetim.adb
1819 %%ONLY-DARWIN%%lib/gcc/%%TARGET%%/%%GCCVER%%/adalib/a-exetim.ali
1820 %%ONLY-DARWIN%%lib/gcc/%%TARGET%%/%%GCCVER%%/adalib/libgnarl-%%BRANCH%%.dylib.dSYM/Contents/Info.plist
1821 %%ONLY-DARWIN%%lib/gcc/%%TARGET%%/%%GCCVER%%/adalib/libgnarl-%%BRANCH%%.dylib.dSYM/Contents/Resources/DWARF/libgnarl-%%BRANCH%%.dylib
1822 %%ONLY-DARWIN%%lib/gcc/%%TARGET%%/%%GCCVER%%/adalib/libgnat-%%BRANCH%%.dylib.dSYM/Contents/Info.plist
1823 %%ONLY-DARWIN%%lib/gcc/%%TARGET%%/%%GCCVER%%/adalib/libgnat-%%BRANCH%%.dylib.dSYM/Contents/Resources/DWARF/libgnat-%%BRANCH%%.dylib
1824 %%ONLY-LINUX%%lib/gcc/%%TARGET%%/%%GCCVER%%/adainclude/
1827 %%ONLY-LINUX%%lib/gcc/%%TARGET%%/%%GCCVER%%/adalib/
1830 lib/gcc/%%TARGET%%/%%GCCVER%%/adainclude/
3129 lib/gcc/%%TARGET%%/%%GCCVER%%/adalib/
3566 libgnarl-%%BRANCH%%.so
3570 libgnat-%%BRANCH%%.so
3851 [FILE:345:manifests/plist.cxx_run]
3858 %%EXCLUDE-DARWIN%%%%ASLIB%%/
3859 libstdc++.so.%%VSTDCXX%%
3860 libstdc++.so.%%VSTDCXX%%-gdb.py
3861 %%ONLY-DARWIN%%%%ASLIB%%/libstdc++.a-gdb.py
3862 share/gcc-%%GCCVER%%/python/libstdcxx/__init__.py
3863 share/gcc-%%GCCVER%%/python/libstdcxx/v6/
3869 [FILE:269:manifests/plist.fortran_run]
3882 %%EXCLUDE-DARWIN%%%%ASLIB%%/
3883 libgfortran.so.5.0.0
3885 libquadmath.so.0.0.0
3888 [FILE:660:manifests/plist.libs]
3889 @comment %%ASLIB%%/libcilkrts.a
3890 @comment %%ASLIB%%/libcilkrts.so
3891 @comment %%ASLIB%%/libcilkrts.so.5
3892 @comment %%ASLIB%%/libcilkrts.so.5.0.0
3893 @comment %%ASLIB%%/libcilkrts.spec
3898 libcc1.%%SHARED_OBJECT%%
3908 %%EXCLUDE-DARWIN%%%%ASLIB%%/
3910 libcc1.%%SHARED_OBJECT%%.0
3915 %%ONLY-DARWIN%%%%ASLIB%%/
3916 libcc1.0.%%SHARED_OBJECT%%
3917 libgcc_ext.10.4.dylib
3918 libgcc_ext.10.5.dylib
3919 libgcc_s_ppc64.1.dylib
3920 libgcc_s_x86_64.1.dylib
3923 [FILE:119:manifests/plist.infopages]
3935 [FILE:43251:patches/patch-diff-ada]
3936 --- gcc/ada/Makefile.rtl.orig
3937 +++ gcc/ada/Makefile.rtl
3938 @@ -1390,6 +1390,7 @@
3939 s-linux.ads<libgnarl/s-linux__android.ads \
3940 s-osinte.adb<libgnarl/s-osinte__android.adb \
3941 s-osinte.ads<libgnarl/s-osinte__android.ads \
3942 + g-socthi.adb<libgnat/g-socthi__bsd.adb \
3943 s-osprim.adb<libgnat/s-osprim__posix.adb \
3944 s-taprop.adb<libgnarl/s-taprop__posix.adb \
3945 s-taspri.ads<libgnarl/s-taspri__posix.ads \
3946 @@ -1483,6 +1484,7 @@
3947 s-osinte.adb<libgnarl/s-osinte__solaris.adb \
3948 s-osinte.ads<libgnarl/s-osinte__solaris.ads \
3949 s-osprim.adb<libgnat/s-osprim__solaris.adb \
3950 + s-trasym.adb<libgnat/s-trasym__bsd.adb \
3951 s-taprop.adb<libgnarl/s-taprop__solaris.adb \
3952 s-tasinf.adb<libgnarl/s-tasinf__solaris.adb \
3953 s-tasinf.ads<libgnarl/s-tasinf__solaris.ads \
3954 @@ -1515,6 +1517,8 @@
3955 EXTRA_GNATRTL_NONTASKING_OBJS += $(TRASYM_DWARF_UNIX_OBJS)
3958 + EXTRA_LIBGNAT_SRCS+= traceback_symbolic.c
3959 + EXTRA_LIBGNAT_OBJS+= traceback_symbolic.o
3960 THREADSLIB = -lposix4 -lthread
3961 MISCLIB = -lposix4 -lnsl -lsocket
3963 @@ -1653,6 +1657,38 @@
3964 LIBRARY_VERSION := $(LIB_VERSION)
3968 +ifeq ($(strip $(filter-out %86 linux-android,$(target_cpu) $(target_os))),)
3969 + LIBGNAT_TARGET_PAIRS = \
3970 + a-intnam.ads<libgnarl/a-intnam__linux.ads \
3971 + s-inmaop.adb<libgnarl/s-inmaop__posix.adb \
3972 + s-intman.adb<libgnarl/s-intman__posix.adb \
3973 + s-linux.ads<libgnarl/s-linux__android.ads \
3974 + s-osinte.adb<libgnarl/s-osinte__android.adb \
3975 + s-osinte.ads<libgnarl/s-osinte__android.ads \
3976 + g-socthi.adb<libgnat/g-socthi__bsd.adb \
3977 + s-osprim.adb<libgnat/s-osprim__posix.adb \
3978 + s-taprop.adb<libgnarl/s-taprop__posix.adb \
3979 + s-taspri.ads<libgnarl/s-taspri__posix.ads \
3980 + s-tpopsp.adb<libgnarl/s-tpopsp__posix-foreign.adb \
3981 + $(ATOMICS_TARGET_PAIRS) \
3982 + $(ATOMICS_BUILTINS_TARGET_PAIRS) \
3983 + system.ads<libgnat/system-linux-x86.ads
3985 + TOOLS_TARGET_PAIRS = indepsw.adb<indepsw-gnu.adb
3987 + EXTRA_LIBGNAT_OBJS=
3988 + EXTRA_GNATRTL_TASKING_OBJS=s-linux.o
3989 + EXTRA_GNATRTL_NONTASKING_OBJS=
3994 + GNATLIB_SHARED = gnatlib-shared-dual
3995 + LIBRARY_VERSION := $(LIB_VERSION)
4000 ifeq ($(strip $(filter-out %aarch64 freebsd%,$(target_cpu) $(target_os))),)
4001 LIBGNAT_TARGET_PAIRS = \
4002 @@ -1662,7 +1698,9 @@
4003 s-mudido.adb<libgnarl/s-mudido__affinity.adb \
4004 s-osinte.adb<libgnarl/s-osinte__freebsd.adb \
4005 s-osinte.ads<libgnarl/s-osinte__freebsd.ads \
4006 + g-socthi.adb<libgnat/g-socthi__bsd.adb \
4007 s-osprim.adb<libgnat/s-osprim__posix.adb \
4008 + s-trasym.adb<libgnat/s-trasym__bsd.adb \
4009 s-taprop.adb<libgnarl/s-taprop__posix.adb \
4010 s-taspri.ads<libgnarl/s-taspri__posix.ads \
4011 s-tpopsp.adb<libgnarl/s-tpopsp__posix.adb \
4012 @@ -1672,6 +1710,9 @@
4014 GNATLIB_SHARED = gnatlib-shared-dual
4016 + EXTRA_LIBGNAT_SRCS+= traceback_symbolic.c
4017 + EXTRA_LIBGNAT_OBJS+= traceback_symbolic.o
4020 THREADSLIB= -lpthread
4022 @@ -1688,7 +1729,9 @@
4023 s-mudido.adb<libgnarl/s-mudido__affinity.adb \
4024 s-osinte.adb<libgnarl/s-osinte__freebsd.adb \
4025 s-osinte.ads<libgnarl/s-osinte__freebsd.ads \
4026 + g-socthi.adb<libgnat/g-socthi__bsd.adb \
4027 s-osprim.adb<libgnat/s-osprim__posix.adb \
4028 + s-trasym.adb<libgnat/s-trasym__bsd.adb \
4029 s-taprop.adb<libgnarl/s-taprop__posix.adb \
4030 s-taspri.ads<libgnarl/s-taspri__posix.ads \
4031 s-tpopsp.adb<libgnarl/s-tpopsp__posix.adb \
4032 @@ -1699,6 +1742,8 @@
4034 GNATLIB_SHARED = gnatlib-shared-dual
4036 + EXTRA_LIBGNAT_SRCS+= traceback_symbolic.c
4037 + EXTRA_LIBGNAT_OBJS+= traceback_symbolic.o
4038 EXTRA_GNATRTL_NONTASKING_OBJS += g-sse.o g-ssvety.o
4039 EXTRA_GNATRTL_NONTASKING_OBJS += $(TRASYM_DWARF_UNIX_OBJS)
4041 @@ -1718,7 +1763,9 @@
4042 s-mudido.adb<libgnarl/s-mudido__affinity.adb \
4043 s-osinte.adb<libgnarl/s-osinte__freebsd.adb \
4044 s-osinte.ads<libgnarl/s-osinte__freebsd.ads \
4045 + g-socthi.adb<libgnat/g-socthi__bsd.adb \
4046 s-osprim.adb<libgnat/s-osprim__posix.adb \
4047 + s-trasym.adb<libgnat/s-trasym__bsd.adb \
4048 s-taprop.adb<libgnarl/s-taprop__posix.adb \
4049 s-taspri.ads<libgnarl/s-taspri__posix.ads \
4050 s-tpopsp.adb<libgnarl/s-tpopsp__posix.adb \
4051 @@ -1729,6 +1776,8 @@
4053 GNATLIB_SHARED = gnatlib-shared-dual
4055 + EXTRA_LIBGNAT_SRCS+= traceback_symbolic.c
4056 + EXTRA_LIBGNAT_OBJS+= traceback_symbolic.o
4057 EXTRA_GNATRTL_NONTASKING_OBJS += g-sse.o g-ssvety.o
4058 EXTRA_GNATRTL_NONTASKING_OBJS += $(TRASYM_DWARF_UNIX_OBJS)
4060 @@ -1748,17 +1797,23 @@
4061 s-mudido.adb<libgnarl/s-mudido__affinity.adb \
4062 s-osinte.adb<libgnarl/s-osinte__dragonfly.adb \
4063 s-osinte.ads<libgnarl/s-osinte__dragonfly.ads \
4064 + g-socthi.adb<libgnat/g-socthi__bsd.adb \
4065 s-osprim.adb<libgnat/s-osprim__posix.adb \
4066 + s-trasym.adb<libgnat/s-trasym__bsd.adb \
4067 s-taprop.adb<libgnarl/s-taprop__posix.adb \
4068 s-taspri.ads<libgnarl/s-taspri__posix.ads \
4069 s-tpopsp.adb<libgnarl/s-tpopsp__posix.adb \
4070 + $(TRASYM_DWARF_UNIX_PAIRS) \
4071 $(ATOMICS_TARGET_PAIRS) \
4072 $(X86_64_TARGET_PAIRS) \
4073 system.ads<libgnat/system-dragonfly-x86_64.ads
4075 GNATLIB_SHARED = gnatlib-shared-dual
4077 - EXTRA_GNATRTL_NONTASKING_OBJS=g-sse.o g-ssvety.o
4078 + EXTRA_LIBGNAT_SRCS+= traceback_symbolic.c
4079 + EXTRA_LIBGNAT_OBJS+= traceback_symbolic.o
4080 + EXTRA_GNATRTL_NONTASKING_OBJS += g-sse.o g-ssvety.o
4081 + EXTRA_GNATRTL_NONTASKING_OBJS += $(TRASYM_DWARF_UNIX_OBJS)
4084 THREADSLIB= -lpthread
4085 --- gcc/ada/adaint.c.orig
4086 +++ gcc/ada/adaint.c
4087 @@ -1227,6 +1227,47 @@
4091 +#elif defined (__ANDROID__)
4094 + * ext2 /ext3/ext4/fat16/fat32 have no path limits
4095 + * /data/local/tmp normally requires rooted devices, if it even exists
4096 + * /sdcard is the standard location for external storage. Nativeactivity
4097 + * manifest needs to authorize its use, otherwise it might not have the
4098 + * proper permissions.
4102 + char *datadir = getenv ("ANDROID_DATA");
4104 + if (datadir == NULL)
4105 + strncpy (tmp_filename, "/data/local/tmp/gnat-XXXXXX", L_tmpnam);
4107 + snprintf (tmp_filename, L_tmpnam, "%s/local/tmp/gnat-XXXXXX", datadir);
4109 + testfd = mkstemp (tmp_filename);
4116 + char *sdcard = getenv ("EXTERNAL_STORAGE");
4118 + if (sdcard == NULL)
4119 + strncpy (tmp_filename, "/sdcard/gnat-XXXXXX", L_tmpnam);
4121 + snprintf (tmp_filename, L_tmpnam, "%s/gnat-XXXXXX", sdcard);
4123 + testfd = mkstemp (tmp_filename);
4130 + tmpnam (tmp_filename);
4132 #elif defined (__linux__) || defined (__FreeBSD__) || defined (__NetBSD__) \
4133 || defined (__OpenBSD__) || defined (__GLIBC__) || defined (__ANDROID__) \
4134 || defined (__DragonFly__) || defined (__QNX__)
4135 --- gcc/ada/cio.c.orig
4139 /* Don't use macros on GNU/Linux since they cause incompatible changes between
4140 glibc 2.0 and 2.1 */
4142 +#if defined __linux__ && !defined __ANDROID__
4146 --- gcc/ada/cstreams.c.orig
4147 +++ gcc/ada/cstreams.c
4153 +#if defined __linux__ && !defined __ANDROID__
4154 /* Don't use macros on GNU/Linux since they cause incompatible changes between
4155 glibc 2.0 and 2.1 */
4157 --- gcc/ada/gnatchop.adb.orig
4158 +++ gcc/ada/gnatchop.adb
4160 Config_File_Name : constant String_Access := new String'("gnat.adc");
4161 -- The name of the file holding the GNAT configuration pragmas
4163 - Gcc : String_Access := new String'("gcc");
4164 + Gcc : String_Access := new String'("ada");
4165 -- May be modified by switch --GCC=
4167 Gcc_Set : Boolean := False;
4168 --- gcc/ada/gnatlink.adb.orig
4169 +++ gcc/ada/gnatlink.adb
4171 -- This table collects the arguments to be passed to compile the binder
4174 - Gcc : String_Access := Program_Name ("gcc", "gnatlink");
4175 + Gcc : String_Access := Program_Name ("ada", "gnatlink");
4177 Read_Mode : constant String := "r" & ASCII.NUL;
4179 --- gcc/ada/gnatls.adb.orig
4180 +++ gcc/ada/gnatls.adb
4183 with Fname; use Fname;
4184 with Gnatvsn; use Gnatvsn;
4185 -with Make_Util; use Make_Util;
4186 with Namet; use Namet;
4188 with Osint; use Osint;
4189 @@ -1286,31 +1285,10 @@
4190 -- The path name(s) of directories where project files may reside.
4193 - Prefix : String_Ptr;
4194 - Runtime : String_Ptr;
4196 - procedure Add_Target (Suffix : String);
4197 - -- Add :<prefix>/<target>/Suffix to the project path
4199 FD : File_Descriptor;
4206 - procedure Add_Target (Suffix : String) is
4207 - Extra_Sep : constant String :=
4208 - (if Target_Name (Target_Name'Last) = '/' then
4211 - (1 => Directory_Separator));
4212 - -- Note: Target_Name has a trailing / when it comes from Sdefault
4215 - Add_Str_To_Name_Buffer
4216 - (Path_Separator & Prefix.all & Target_Name & Extra_Sep & Suffix);
4218 + pragma Unreferenced (Runtime_Name);
4220 -- Start of processing for Initialize_Default_Project_Path
4222 @@ -1494,81 +1472,15 @@
4223 -- Set the initial value of Current_Project_Path
4225 if Add_Default_Dir then
4226 - if Sdefault.Search_Dir_Prefix = null then
4230 - Prefix := new String'(Executable_Prefix_Path);
4233 - Prefix := new String'(Sdefault.Search_Dir_Prefix.all
4234 - & ".." & Dir_Separator
4235 - & ".." & Dir_Separator
4236 - & ".." & Dir_Separator
4237 - & ".." & Dir_Separator);
4240 - if Prefix.all /= "" then
4241 - if Target_Name /= "" then
4243 - if Runtime_Name /= "" then
4244 - if Base_Name (Runtime_Name) = Runtime_Name then
4246 - -- $prefix/$target/$runtime/lib/gnat
4249 - (Runtime_Name & Directory_Separator &
4250 - "lib" & Directory_Separator & "gnat");
4252 - -- $prefix/$target/$runtime/share/gpr
4255 - (Runtime_Name & Directory_Separator &
4256 - "share" & Directory_Separator & "gpr");
4260 - new String'(Normalize_Pathname (Runtime_Name));
4262 - -- $runtime_dir/lib/gnat
4264 - Add_Str_To_Name_Buffer
4265 - (Path_Separator & Runtime.all & Directory_Separator &
4266 - "lib" & Directory_Separator & "gnat");
4268 - -- $runtime_dir/share/gpr
4270 - Add_Str_To_Name_Buffer
4271 - (Path_Separator & Runtime.all & Directory_Separator &
4272 - "share" & Directory_Separator & "gpr");
4276 - -- $prefix/$target/lib/gnat
4279 - ("lib" & Directory_Separator & "gnat");
4281 - -- $prefix/$target/share/gpr
4284 - ("share" & Directory_Separator & "gpr");
4287 - -- $prefix/share/gpr
4289 - Add_Str_To_Name_Buffer
4290 - (Path_Separator & Prefix.all & "share"
4291 - & Directory_Separator & "gpr");
4293 - -- $prefix/lib/gnat
4295 - Add_Str_To_Name_Buffer
4296 - (Path_Separator & Prefix.all & "lib"
4297 - & Directory_Separator & "gnat");
4299 + -- /raven/share/gpr
4300 + Add_Str_To_Name_Buffer (Path_Separator &
4301 + "@LOCALBASE@/share/gpr");
4303 + -- /raven/lib/gnat
4304 + Add_Str_To_Name_Buffer (Path_Separator &
4305 + "@LOCALBASE@/lib/gnat");
4310 Self := new String'(Name_Buffer (1 .. Name_Len));
4311 --- gcc/ada/make.adb.orig
4312 +++ gcc/ada/make.adb
4314 -- Compiler, Binder & Linker Data and Subprograms --
4315 ----------------------------------------------------
4317 - Gcc : String_Access := Program_Name ("gcc", "gnatmake");
4318 + Gcc : String_Access := Program_Name ("ada", "gnatmake");
4319 Gnatbind : String_Access := Program_Name ("gnatbind", "gnatmake");
4320 Gnatlink : String_Access := Program_Name ("gnatlink", "gnatmake");
4321 -- Default compiler, binder, linker programs
4322 --- gcc/ada/terminals.c.orig
4323 +++ gcc/ada/terminals.c
4325 /* First all usupported platforms. Add stubs for exported routines. */
4327 #if defined (VMS) || defined (__vxworks) || defined (__Lynx__) \
4328 - || defined (__ANDROID__) || defined (__PikeOS__) || defined(__DJGPP__)
4329 + || defined (__PikeOS__) || defined(__DJGPP__)
4332 __gnat_new_tty (void)
4333 @@ -1108,7 +1108,7 @@
4334 || defined (__OpenBSD__) \
4335 || defined (__NetBSD__) \
4336 || defined (__DragonFly__)
4341 /* Include every system header we need */
4342 @@ -1124,21 +1124,25 @@
4343 #include <sys/types.h>
4344 #include <sys/wait.h>
4346 -#if defined (__sun__)
4348 # include <sys/stropts.h>
4350 -#if defined (BSD) || defined (__sun__)
4351 +#if defined (FREEBSD) || defined (sun)
4352 # include <sys/signal.h>
4354 #if defined (__hpux__)
4355 # include <sys/stropts.h>
4359 +#define CDISABLE _PC_VDISABLE
4361 #define CDISABLE _POSIX_VDISABLE
4364 /* On HP-UX and Sun system, there is a bzero function but with a different
4365 signature. Use memset instead */
4366 -#if defined (__hpux__) || defined (__sun__) || defined (_AIX)
4367 +#if defined (__hpux__) || defined (sun) || defined (_AIX)
4368 # define bzero(s,n) memset (s,0,n)
4371 @@ -1156,11 +1160,11 @@
4374 /* Configurable part */
4375 -#if defined (__APPLE__) || defined (BSD)
4376 +#if defined (__APPLE__) || defined (FREEBSD)
4378 -#elif defined (__linux__)
4379 +#elif defined (linux)
4381 -#elif defined (__sun__)
4382 +#elif defined (sun)
4383 #define USE_CLONE_DEVICE "/dev/ptmx"
4384 #elif defined (_AIX)
4385 #define USE_CLONE_DEVICE "/dev/ptc"
4386 @@ -1446,7 +1450,7 @@
4387 desc->slave_fd = open (desc->slave_name, O_RDWR, 0);
4390 -#if defined (__sun__) || defined (__hpux__)
4391 +#if defined (sun) || defined (__hpux__)
4392 /* On systems such as Solaris we are using stream. We need to push the right
4393 "modules" in order to get the expected terminal behaviors. Otherwise
4394 functionalities such as termios are not available. */
4396 +++ gcc/ada/traceback_symbolic.c
4399 + Copyright (C) 1999 by Juergen Pfeifer <juergen.pfeifer@gmx.net>
4400 + Ada for Linux Team (ALT)
4401 + Heavily modified by John Marino <http://www.dragonlace.net>
4403 + Permission is hereby granted, free of charge, to any person obtaining a
4404 + copy of this software and associated documentation files (the
4405 + "Software"), to deal in the Software without restriction, including
4406 + without limitation the rights to use, copy, modify, merge, publish,
4407 + distribute, distribute with modifications, sublicense, and/or sell
4408 + copies of the Software, and to permit persons to whom the Software is
4409 + furnished to do so, subject to the following conditions:
4411 + The above copyright notice and this permission notice shall be included
4412 + in all copies or substantial portions of the Software.
4414 + THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
4415 + OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
4416 + MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
4417 + IN NO EVENT SHALL THE ABOVE COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
4418 + DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
4419 + OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR
4420 + THE USE OR OTHER DEALINGS IN THE SOFTWARE.
4422 + Except as contained in this notice, the name(s) of the above copyright
4423 + holders shall not be used in advertising or otherwise to promote the
4424 + sale, use or other dealings in this Software without prior written
4432 + * Running addr2line doesn't make sense for cross-compiled objects.
4433 + * Create a dummy function to satisfy g-trasym.o
4437 +convert_addresses (const char *file_name ATTRIBUTE_UNUSED,
4438 + void *addrs ATTRIBUTE_UNUSED,
4439 + int n_addr ATTRIBUTE_UNUSED,
4440 + void *buf ATTRIBUTE_UNUSED,
4441 + int *len ATTRIBUTE_UNUSED)
4450 + * use the external program /usr/bin/addr2line to convert addresses
4451 + * into file names and line numbers
4454 +#include <sys/types.h>
4455 +#include <stdlib.h>
4456 +#include <unistd.h>
4457 +#include <string.h>
4458 +#include <signal.h>
4460 +#define CLOSE_SENDPIPE close(sendpipe[0]); close(sendpipe[1])
4461 +#define CLOSE_READPIPE close(readpipe[0]); close(readpipe[1])
4462 +#define DUP2CLOSE(oldfd, newfd) dup2(oldfd, newfd); close(oldfd);
4463 +#define RESTSIG sigaction(SIGPIPE,&oact,NULL)
4465 +#define MAX_LINE 1024
4466 +#define PARENT_READ readpipe[0]
4467 +#define CHILD_WRITE readpipe[1]
4468 +#define CHILD_READ sendpipe[0]
4469 +#define PARENT_WRITE sendpipe[1]
4471 +#if defined (__sun__)
4472 +#define ADDR2LINE_PROG "/usr/gnu/bin/addr2line"
4474 +#define ADDR2LINE_PROG "/usr/bin/addr2line"
4478 +convert_addresses (const char *file_name,
4484 + int max_len = *len;
4487 + struct sigaction act, oact;
4489 + int sendpipe[2] = {-1,-1}, /* parent -> child */
4490 + readpipe[2] = {-1,-1}; /* parent <- child */
4493 + act.sa_handler = SIG_IGN;
4494 + sigemptyset(&act.sa_mask);
4496 + if (sigaction(SIGPIPE,&act,&oact) < 0)
4499 + if (pipe(sendpipe) < 0) { RESTSIG; return; }
4500 + if (pipe(readpipe) < 0) { CLOSE_SENDPIPE; RESTSIG; return; }
4501 + if ((childpid = fork()) < 0) {
4508 + if (childpid == 0) { /* child process */
4509 + close(PARENT_WRITE);
4510 + close(PARENT_READ);
4511 + if ((CHILD_READ != STDIN_FILENO) && (CHILD_WRITE != STDOUT_FILENO)) {
4512 + if ((CHILD_READ == STDOUT_FILENO) && (CHILD_WRITE == STDIN_FILENO)) {
4513 + const int temp_fd = dup(CHILD_WRITE);
4514 + close (CHILD_WRITE);
4515 + DUP2CLOSE (CHILD_READ, STDIN_FILENO);
4516 + DUP2CLOSE (temp_fd, STDOUT_FILENO);
4518 + else if ((CHILD_READ == STDIN_FILENO) && (CHILD_WRITE > 1)) {
4519 + DUP2CLOSE (CHILD_WRITE, STDOUT_FILENO);
4521 + else if ((CHILD_READ > 1) && (CHILD_WRITE == STDOUT_FILENO)) {
4522 + DUP2CLOSE (CHILD_READ, STDIN_FILENO);
4524 + else if ((CHILD_READ > 1) && (CHILD_WRITE == STDIN_FILENO)) {
4525 + DUP2CLOSE (CHILD_WRITE, STDOUT_FILENO);
4526 + DUP2CLOSE (CHILD_READ, STDIN_FILENO);
4529 + /* CHILD_READ >= 1 and CHILD_WRITE > 1 */
4530 + DUP2CLOSE (CHILD_READ, STDIN_FILENO);
4531 + DUP2CLOSE (CHILD_WRITE, STDOUT_FILENO);
4534 + /* As pointed out by Florian Weimer to JP, it is a security threat to call
4535 + the script with a user defined environment and using the path. That
4536 + would be Trojans pleasure. Therefore the absolute path to addr2line
4537 + and an empty environment is used. That should be safe.
4539 + char *const argv[] = { "addr2line",
4541 + "--demangle=gnat",
4545 + char *const envp[] = { NULL };
4546 + if (execve(ADDR2LINE_PROG, argv, envp) < 0) {
4547 + close (CHILD_WRITE);
4548 + close (CHILD_READ);
4554 + /* Below this line is parent process */
4557 + char line[MAX_LINE + 1];
4560 + long *trace_address = addrs;
4562 + close(CHILD_WRITE);
4563 + close(CHILD_READ);
4565 + for(i=0; i < n_addr; i++) {
4566 + snprintf(hex,sizeof(hex),"%#lx\n",*trace_address);
4567 + write(PARENT_WRITE,hex,strlen(hex));
4568 + n = read(PARENT_READ,line,MAX_LINE);
4573 + /* We have approx. 16 additional chars for "%#lx in " clause.
4574 + We use this info to prevent a buffer overrun. */
4575 + if (n + 16 + (*len) > max_len)
4578 + p = strchr(line,'\n');
4582 + *len += snprintf(s, (max_len - (*len)), "%#lx in %s at %s",
4583 + *trace_address, line, p+1);
4586 + *len += snprintf(s, (max_len - (*len)), "%#lx at %s",
4587 + *trace_address, line);
4591 + trace_address += 1;
4593 + close (PARENT_WRITE);
4594 + close (PARENT_READ);
4600 +++ gcc/ada/libgnat/g-socthi__bsd.adb
4602 +------------------------------------------------------------------------------
4604 +-- GNAT COMPILER COMPONENTS --
4606 +-- G N A T . S O C K E T S . T H I N --
4610 +-- Copyright (C) 2001-2018, AdaCore --
4612 +-- GNAT is free software; you can redistribute it and/or modify it under --
4613 +-- terms of the GNU General Public License as published by the Free Soft- --
4614 +-- ware Foundation; either version 3, or (at your option) any later ver- --
4615 +-- sion. GNAT is distributed in the hope that it will be useful, but WITH- --
4616 +-- OUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY --
4617 +-- or FITNESS FOR A PARTICULAR PURPOSE. --
4619 +-- As a special exception under Section 7 of GPL version 3, you are granted --
4620 +-- additional permissions described in the GCC Runtime Library Exception, --
4621 +-- version 3.1, as published by the Free Software Foundation. --
4623 +-- You should have received a copy of the GNU General Public License and --
4624 +-- a copy of the GCC Runtime Library Exception along with this program; --
4625 +-- see the files COPYING3 and COPYING.RUNTIME respectively. If not, see --
4626 +-- <http://www.gnu.org/licenses/>. --
4628 +-- GNAT was originally developed by the GNAT team at New York University. --
4629 +-- Extensive contributions were provided by Ada Core Technologies Inc. --
4631 +------------------------------------------------------------------------------
4633 +-- This package provides a target dependent thin interface to the sockets
4634 +-- layer for use by the GNAT.Sockets package (g-socket.ads). This package
4635 +-- should not be directly with'ed by an applications program.
4637 +-- This is the *BSD version which uses fcntl rather than ioctl
4638 +-- The constant SCON.Thread_Blocking_IO is always true (for all platforms, not
4639 +-- just *BSD), so this binding is significantly simpler than the standard
4640 +-- one it replaces.
4642 +with GNAT.OS_Lib; use GNAT.OS_Lib;
4644 +with Interfaces.C; use Interfaces.C;
4646 +package body GNAT.Sockets.Thin is
4648 + function Syscall_Accept
4650 + Addr : System.Address;
4651 + Addrlen : not null access C.int) return C.int;
4652 + pragma Import (C, Syscall_Accept, "accept");
4653 + -- The accept() function accepts a connection on a socket. An incoming
4654 + -- connection is acknowledged and associated with an immediately created
4655 + -- socket. The original socket is returned to the listening state.
4657 + function Syscall_Connect
4659 + Name : System.Address;
4660 + Namelen : C.int) return C.int;
4661 + pragma Import (C, Syscall_Connect, "connect");
4662 + -- The connect() system call initiates a connection on a socket. If the
4663 + -- parameter S is of type SOCK_DGRAM then connect() permanently specifies
4664 + -- the peer to which datagrams are to be sent. If S is type SOCK_STREAM
4665 + -- then connect() attempts to make a connection with another socket, which
4666 + -- is identified by the parameter Name.
4668 + function Syscall_Recv
4670 + Msg : System.Address;
4672 + Flags : C.int) return C.int;
4673 + pragma Import (C, Syscall_Recv, "recv");
4674 + -- The recv() function receives a message from a socket. The call can be
4675 + -- used on a connection mode socket or a bound, connectionless socket. If
4676 + -- no messages are available at the socket, the recv() call waits for a
4677 + -- message to arrive unless the socket is non-blocking. If a socket is
4678 + -- non-blocking, the call returns a -1 and ERRNO is set to EWOULDBLOCK.
4680 + function Syscall_Recvfrom
4682 + Msg : System.Address;
4685 + From : System.Address;
4686 + Fromlen : not null access C.int) return C.int;
4687 + pragma Import (C, Syscall_Recvfrom, "recvfrom");
4688 + -- The recvfrom() system call receives a message from a socket and captures
4689 + -- the address from which the data was sent. It can be used to receive
4690 + -- data on an unconnected socket as well. If no messages are available,
4691 + -- the call waits for a message to arrive on blocking sockets. For
4692 + -- non-blocking sockets without messages, -1 is returned and ERRNO is set
4693 + -- to EAGAIN or EWOULDBLOCK.
4695 + function Syscall_Recvmsg
4697 + Msg : System.Address;
4698 + Flags : C.int) return System.CRTL.ssize_t;
4699 + pragma Import (C, Syscall_Recvmsg, "recvmsg");
4700 + -- The recvmsg call receives a message from a socket, and can be used to
4701 + -- receive data on an unconnected socket as well. If no messages are
4702 + -- available, the call waits for a message to arrive on blocking sockets.
4703 + -- For non-blocking sockets without messages, -1 is returned and ERRNO is
4704 + -- set to EAGAIN or EWOULDBLOCK.
4706 + function Syscall_Sendmsg
4708 + Msg : System.Address;
4709 + Flags : C.int) return System.CRTL.ssize_t;
4710 + pragma Import (C, Syscall_Sendmsg, "sendmsg");
4711 + -- The sendmsg() function sends a message to a socket, and can be used with
4712 + -- unconnected sockets as well (the msg is ignored in this case). The
4713 + -- function returns the number of bytes sent when successful, otherwise it
4714 + -- returns -1 and ERRNO is set (many possible values).
4716 + function Syscall_Sendto
4718 + Msg : System.Address;
4721 + To : System.Address;
4722 + Tolen : C.int) return C.int;
4723 + pragma Import (C, Syscall_Sendto, "sendto");
4724 + -- The sendto() function only works for connected sockets and it initiates
4725 + -- the transmission of a message. A successful call returns the numbers of
4726 + -- bytes sent, and a failure returns a -1 and ERRNO is set.
4728 + function Syscall_Socket
4731 + Protocol : C.int) return C.int;
4732 + pragma Import (C, Syscall_Socket, "socket");
4733 + -- The socket() function is used to create an unbound socket and returns a
4734 + -- file descriptor that can be used with other socket functions. Upon
4735 + -- failure, a -1 is returned and ERRNO is set.
4737 + procedure Disable_SIGPIPE (S : C.int);
4738 + pragma Import (C, Disable_SIGPIPE, "__gnat_disable_sigpipe");
4740 + procedure Disable_All_SIGPIPEs;
4741 + pragma Import (C, Disable_All_SIGPIPEs, "__gnat_disable_all_sigpipes");
4742 + -- Sets the process to ignore all SIGPIPE signals on platforms that
4743 + -- don't support Disable_SIGPIPE for particular streams.
4748 + Val : C.int) return C.int;
4749 + pragma Import (C, C_Fcntl, "fcntl");
4750 + -- The ioctl of 64-bit DragonFlyBSD, OpenBSD, and NetBSD does not support
4751 + -- setting a socket in non-blocking mode. fcntl must be used instead.
4759 + Addr : System.Address;
4760 + Addrlen : not null access C.int) return C.int
4762 + R : constant C.int := Syscall_Accept (S, Addr, Addrlen);
4765 + Disable_SIGPIPE (R);
4773 + function C_Connect
4775 + Name : System.Address;
4776 + Namelen : C.int) return C.int
4779 + return Syscall_Connect (S, Name, Namelen);
4782 + ------------------
4783 + -- Socket_Ioctl --
4784 + ------------------
4786 + function Socket_Ioctl
4788 + Req : SOSC.IOCTL_Req_T;
4789 + Arg : access C.int) return C.int
4792 + if Req = SOSC.FIONBIO then
4795 + flags : constant Unsigned_32 :=
4796 + Unsigned_32 (C_Fcntl (S, SOSC.F_GETFL, 0));
4797 + nonblock : constant Unsigned_32 := Unsigned_32 (SOSC.O_NDELAY);
4798 + enabled : constant Boolean := Arg.all = 1;
4799 + newval : C.int := C.int (flags);
4802 + newval := C.int (flags or nonblock);
4803 + elsif (flags and nonblock) > 0 then
4804 + newval := C.int (flags - nonblock);
4806 + return C_Fcntl (Fd => S, Cmd => SOSC.F_SETFL, Val => newval);
4810 + return C_Ioctl (S, Req, Arg);
4819 + Msg : System.Address;
4821 + Flags : C.int) return C.int
4824 + return Syscall_Recv (S, Msg, Len, Flags);
4831 + function C_Recvfrom
4833 + Msg : System.Address;
4836 + From : System.Address;
4837 + Fromlen : not null access C.int) return C.int
4840 + return Syscall_Recvfrom (S, Msg, Len, Flags, From, Fromlen);
4847 + function C_Recvmsg
4849 + Msg : System.Address;
4850 + Flags : C.int) return System.CRTL.ssize_t
4853 + return Syscall_Recvmsg (S, Msg, Flags);
4860 + function C_Sendmsg
4862 + Msg : System.Address;
4863 + Flags : C.int) return System.CRTL.ssize_t
4866 + return Syscall_Sendmsg (S, Msg, Flags);
4875 + Msg : System.Address;
4878 + To : System.Address;
4879 + Tolen : C.int) return C.int
4882 + return Syscall_Sendto (S, Msg, Len, Flags, To, Tolen);
4892 + Protocol : C.int) return C.int
4894 + R : constant C.int := Syscall_Socket (Domain, Typ, Protocol);
4896 + Disable_SIGPIPE (R);
4904 + procedure Finalize is
4909 + -------------------------
4910 + -- Host_Error_Messages --
4911 + -------------------------
4913 + package body Host_Error_Messages is separate;
4919 + procedure Initialize is
4921 + Disable_All_SIGPIPEs;
4924 + --------------------
4925 + -- Signalling_Fds --
4926 + --------------------
4928 + package body Signalling_Fds is
4930 + -- In this default implementation, we use a C version of these
4931 + -- subprograms provided by socket.c.
4933 + function C_Create (Fds : not null access Fd_Pair) return C.int;
4934 + function C_Read (Rsig : C.int) return C.int;
4935 + function C_Write (Wsig : C.int) return C.int;
4936 + procedure C_Close (Sig : C.int);
4938 + pragma Import (C, C_Create, "__gnat_create_signalling_fds");
4939 + pragma Import (C, C_Read, "__gnat_read_signalling_fd");
4940 + pragma Import (C, C_Write, "__gnat_write_signalling_fd");
4941 + pragma Import (C, C_Close, "__gnat_close_signalling_fd");
4944 + (Fds : not null access Fd_Pair) return C.int renames C_Create;
4945 + function Read (Rsig : C.int) return C.int renames C_Read;
4946 + function Write (Wsig : C.int) return C.int renames C_Write;
4947 + procedure Close (Sig : C.int) renames C_Close;
4949 + end Signalling_Fds;
4951 + --------------------------
4952 + -- Socket_Error_Message --
4953 + --------------------------
4955 + function Socket_Error_Message (Errno : Integer) return String is separate;
4957 +end GNAT.Sockets.Thin;
4959 +++ gcc/ada/libgnat/s-trasym__bsd.adb
4961 +------------------------------------------------------------------------------
4963 +-- GNAT RUN-TIME COMPONENTS --
4965 +-- S Y S T E M . T R A C E B A C K . S Y M B O L I C --
4969 +-- Copyright (C) 1999-2018, AdaCore --
4971 +-- GNAT is free software; you can redistribute it and/or modify it under --
4972 +-- terms of the GNU General Public License as published by the Free Soft- --
4973 +-- ware Foundation; either version 3, or (at your option) any later ver- --
4974 +-- sion. GNAT is distributed in the hope that it will be useful, but WITH- --
4975 +-- OUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY --
4976 +-- or FITNESS FOR A PARTICULAR PURPOSE. --
4978 +-- As a special exception under Section 7 of GPL version 3, you are granted --
4979 +-- additional permissions described in the GCC Runtime Library Exception, --
4980 +-- version 3.1, as published by the Free Software Foundation. --
4982 +-- You should have received a copy of the GNU General Public License and --
4983 +-- a copy of the GCC Runtime Library Exception along with this program; --
4984 +-- see the files COPYING3 and COPYING.RUNTIME respectively. If not, see --
4985 +-- <http://www.gnu.org/licenses/>. --
4987 +-- GNAT was originally developed by the GNAT team at New York University. --
4988 +-- Extensive contributions were provided by Ada Core Technologies Inc. --
4990 +------------------------------------------------------------------------------
4992 +-- Run-time symbolic traceback support
4993 +-- This file is based on the work by Juergen Pfiefer which is still used
4994 +-- today to provide symbolic traceback support for gnu/kFreeBSD.
4995 +-- Incorporated in GNAT-AUX by John Marino <http://www.dragonlace.net>
4997 +pragma Polling (Off);
4998 +-- We must turn polling off for this unit, because otherwise we can get
4999 +-- elaboration circularities when polling is turned on.
5001 +with Ada.Exceptions.Traceback; use Ada.Exceptions.Traceback;
5002 +with System.Soft_Links;
5004 +package body System.Traceback.Symbolic is
5006 + -- Note that Suppress_Hex is ignored in this version of this package.
5008 + package TSL renames System.Soft_Links;
5010 + -- To perform the raw addresses to symbolic form translation we rely on a
5011 + -- libaddr2line symbolizer which examines debug info from a provided
5012 + -- executable file name, and an absolute path is needed to ensure the file
5013 + -- is always found. This is "__gnat_locate_exec_on_path (gnat_argv [0])"
5014 + -- for our executable file, a fairly heavy operation so we cache the
5017 + Exename : System.Address;
5018 + -- Pointer to the name of the executable file to be used on all
5019 + -- invocations of the libaddr2line symbolization service.
5021 + Exename_Resolved : Boolean := False;
5022 + -- Flag to indicate whether we have performed the executable file name
5023 + -- resolution already. Relying on a not null Exename for this purpose
5024 + -- would be potentially inefficient as this is what we will get if the
5025 + -- resolution attempt fails.
5027 + ------------------------
5028 + -- Symbolic_Traceback --
5029 + ------------------------
5031 + function Symbolic_Traceback
5032 + (Traceback : System.Traceback_Entries.Tracebacks_Array) return String
5034 + procedure convert_addresses
5035 + (filename : System.Address;
5036 + addrs : System.Address;
5037 + n_addrs : Integer;
5038 + buf : System.Address;
5039 + len : System.Address);
5040 + pragma Import (C, convert_addresses, "convert_addresses");
5041 + -- This is the procedure version of the Ada-aware addr2line. It places
5042 + -- in BUF a string representing the symbolic translation of the N_ADDRS
5043 + -- raw addresses provided in ADDRS, looked up in debug information from
5044 + -- FILENAME. LEN points to an integer which contains the size of the
5045 + -- BUF buffer at input and the result length at output.
5047 + -- Note that this procedure is *not* thread-safe.
5049 + type Argv_Array is array (0 .. 0) of System.Address;
5050 + gnat_argv : access Argv_Array;
5051 + pragma Import (C, gnat_argv, "gnat_argv");
5053 + function locate_exec_on_path
5054 + (c_exename : System.Address) return System.Address;
5055 + pragma Import (C, locate_exec_on_path, "__gnat_locate_exec_on_path");
5057 + B_Size : constant Integer := 256 * Traceback'Length;
5058 + Len : Integer := B_Size;
5059 + Res : String (1 .. B_Size);
5062 + if Traceback'Length = 0 then
5066 + -- If our input set of raw addresses is not empty, resort to the
5067 + -- libaddr2line service to symbolize it all.
5069 + -- Compute, cache and provide the absolute path to our executable file
5070 + -- name as the binary file where the relevant debug information is to be
5071 + -- found. If the executable file name resolution fails, we have no
5072 + -- sensible basis to invoke the symbolizer at all.
5074 + -- Protect all this against concurrent accesses explicitly, as the
5075 + -- underlying services are potentially thread unsafe.
5077 + TSL.Lock_Task.all;
5079 + if not Exename_Resolved then
5080 + Exename := locate_exec_on_path (gnat_argv (0));
5081 + Exename_Resolved := True;
5084 + if Exename /= System.Null_Address then
5085 + Len := Res'Length;
5087 + (Exename, Traceback'Address, Traceback'Length,
5088 + Res (1)'Address, Len'Address);
5091 + TSL.Unlock_Task.all;
5093 + -- Return what the addr2line symbolizer has produced if we have called
5094 + -- it (the executable name resolution succeeded), or an empty string
5097 + if Exename /= System.Null_Address then
5098 + return Res (1 .. Len);
5102 + end Symbolic_Traceback;
5104 + -- "No_Hex" is ignored in this version, because otherwise we have nothing
5105 + -- at all to print.
5107 + function Symbolic_Traceback_No_Hex
5108 + (Traceback : System.Traceback_Entries.Tracebacks_Array) return String is
5110 + return Symbolic_Traceback (Traceback);
5111 + end Symbolic_Traceback_No_Hex;
5113 + function Symbolic_Traceback
5114 + (E : Ada.Exceptions.Exception_Occurrence) return String
5117 + return Symbolic_Traceback (Tracebacks (E));
5118 + end Symbolic_Traceback;
5120 + function Symbolic_Traceback_No_Hex
5121 + (E : Ada.Exceptions.Exception_Occurrence) return String is
5123 + return Symbolic_Traceback (E);
5124 + end Symbolic_Traceback_No_Hex;
5126 + ------------------
5127 + -- Enable_Cache --
5128 + ------------------
5130 + procedure Enable_Cache (Include_Modules : Boolean := False) is
5135 +end System.Traceback.Symbolic;
5136 --- gcc/ada/gcc-interface/Make-lang.in.orig
5137 +++ gcc/ada/gcc-interface/Make-lang.in
5141 # Language-independent object files.
5142 -ADA_BACKEND = $(BACKEND) attribs.o
5143 +ADA_BACKEND = $(BACKEND2) attribs.o
5145 # List of target dependent sources, overridden below as necessary
5147 --- gcc/ada/init.c.orig
5149 @@ -2651,8 +2651,15 @@
5151 mcontext_t *mcontext = &((ucontext_t *) ucontext)->uc_mcontext;
5153 +#if defined (__i386__)
5154 + unsigned long *pc = (unsigned long *)mcontext->gregs[REG_EIP];
5155 + /* The pattern is "orl $0x0,(%esp)" for a probe in 32-bit mode. */
5156 + if (signo == SIGSEGV && pc && *pc == 0x00240c83)
5157 + mcontext->gregs[REG_ESP] += 4096 + 4 * sizeof (unsigned long);
5158 +#elif defined (__ARMEL__)
5159 /* ARM Bump has to be an even number because of odd/even architecture. */
5160 - ((mcontext_t *) mcontext)->arm_pc += 2;
5161 + mcontext->arm_pc += 2;
5166 --- gcc/ada/libgnat/g-socthi.ads.orig
5167 +++ gcc/ada/libgnat/g-socthi.ads
5170 package C renames Interfaces.C;
5172 - use type System.CRTL.ssize_t;
5174 function Socket_Errno return Integer renames GNAT.OS_Lib.Errno;
5175 -- Returns last socket error number
5179 [FILE:19397:patches/patch-diff-ada-testsuite]
5180 --- gcc/testsuite/ada/acats/run_acats.sh.orig
5181 +++ gcc/testsuite/ada/acats/run_acats.sh
5186 -# Provide which replacement.
5188 -# type -p is missing from Solaris 2 /bin/sh and /bin/ksh (ksh88), but both
5189 -# ksh93 and bash have it.
5190 -# type output format differs between ksh88 and ksh93, so avoid it if
5191 -# type -p is present. Unfortunately, HP-UX /bin/sh ignores -p with type.
5192 -# Fall back to whence which ksh88 and ksh93 provide, but bash does not.
5195 - path=`type -p $* 2>/dev/null` && { echo $path | awk '{print $NF}'; return 0; }
5196 - path=`type $* 2>/dev/null` && { echo $path | awk '{print $NF}'; return 0; }
5197 - path=`whence $* 2>/dev/null` && { echo $path; return 0; }
5201 # Set up environment to use the Ada compiler from the object tree
5203 --- gcc/testsuite/ada/acats/run_all.sh.orig
5204 +++ gcc/testsuite/ada/acats/run_all.sh
5207 # End of customization section.
5209 -# Perform arithmetic evaluation on the ARGs, and store the result in the
5210 -# global $as_val. Take advantage of shells that can avoid forks. The arguments
5211 -# must be portable across $(()) and expr.
5212 -if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
5213 - eval 'as_fn_arith ()
5220 - as_val=`expr "$@" || test $? -eq 1`
5226 printf "$@" >> $dir/acats.sum
5228 echo "$@" >> $dir/acats.log
5232 + printf "%04d %7s" $1 $2
5241 if [ "$dir" = "$testdir" ]; then
5243 gnatls -v >> $dir/acats.log
5246 -if [ -n "$GCC_RUNTEST_PARALLELIZE_DIR" ]; then
5247 - dir_support=$dir/../acats/support
5250 - mv $dir/tests $dir/tests.$$ 2> /dev/null
5251 - rm -rf $dir/tests.$$ &
5254 - cp -pr $dir/../acats/tests $dir/
5256 - dir_support=$dir/support
5258 display " === acats support ==="
5259 display_noeol "Generating support files..."
5268 display " === acats tests ==="
5270 if [ $# -eq 0 ]; then
5271 @@ -228,14 +206,20 @@
5280 for chapter in $chapters; do
5281 - # Used to generate support once and finish after that.
5282 - [ "$chapter" = "NONE" ] && continue
5283 + if [ -d $dir/tests/$chapter ]; then
5284 + cd $dir/tests/$chapter
5285 + ls *.a *.ada *.adt *.am *.dep 2> /dev/null | sed -e 's/\(.*\)\..*/\1/g' | \
5286 + cut -c1-7 | sort | uniq | comm -23 - $dir/support/norun.lst \
5287 + > $dir/tests/$chapter/${chapter}.lst
5288 + countn=`wc -l < $dir/tests/$chapter/${chapter}.lst`
5289 + countdown=`expr $countdown + $countn`
5293 +for chapter in $chapters; do
5294 display Running chapter $chapter ...
5296 if [ ! -d $dir/tests/$chapter ]; then
5297 @@ -244,45 +228,11 @@
5301 - cd $dir/tests/$chapter
5302 - ls *.a *.ada *.adt *.am *.dep 2> /dev/null | sed -e 's/\(.*\)\..*/\1/g' | \
5303 - cut -c1-7 | sort | uniq | comm -23 - $dir_support/norun.lst \
5304 - > $dir/tests/$chapter/${chapter}.lst
5305 countn=`wc -l < $dir/tests/$chapter/${chapter}.lst`
5306 - as_fn_arith $glob_countn + $countn
5307 - glob_countn=$as_val
5308 + glob_countn=`expr $glob_countn + $countn`
5310 for i in `cat $dir/tests/$chapter/${chapter}.lst`; do
5312 - # If running multiple run_all.sh jobs in parallel, decide
5313 - # if we should run this test in the current instance.
5314 - if [ -n "$GCC_RUNTEST_PARALLELIZE_DIR" ]; then
5316 - # Ugh, some tests have inter-test dependencies, those
5317 - # tests have to be scheduled on the same parallel instance
5318 - # as previous test.
5319 - ce2108f | ce2108h | ce3112d) ;;
5320 - # All others can be hopefully scheduled freely.
5322 - as_fn_arith $par_countm + 1
5323 - par_countm=$as_val
5324 - [ $par_countm -eq 10 ] && par_countm=0
5325 - if [ $par_countm -eq 1 ]; then
5326 - as_fn_arith $par_count + 1
5328 - if mkdir $GCC_RUNTEST_PARALLELIZE_DIR/$par_count 2>/dev/null; then
5335 - if [ -z "$par_last" ]; then
5336 - as_fn_arith $glob_countn - 1
5337 - glob_countn=$as_val
5342 + counti=`expr $counti + 1`
5343 extraflags="-gnat95"
5344 grep $i $testdir/overflow.lst > /dev/null 2>&1
5345 if [ $? -eq 0 ]; then
5346 @@ -300,10 +250,13 @@
5347 if [ $? -eq 0 ]; then
5348 extraflags="$extraflags -fstack-check"
5350 + inform $countdown $i
5351 + countdown=`expr $countdown - 1`
5352 test=$dir/tests/$chapter/$i
5353 mkdir $test && cd $test >> $dir/acats.log 2>&1
5355 if [ $? -ne 0 ]; then
5358 failed="${failed}${i} "
5360 @@ -321,19 +274,22 @@
5361 echo "BUILD $main" >> $dir/acats.log
5364 - cxb30*) EXTERNAL_OBJECTS="$dir_support/cxb30040.o $dir_support/cxb30060.o $dir_support/cxb30130.o $dir_support/cxb30131.o";;
5365 + cxb30*) EXTERNAL_OBJECTS="$dir/support/cxb30040.o $dir/support/cxb30060.o $dir/support/cxb30130.o $dir/support/cxb30131.o";;
5366 ca1020e) rm -f ca1020e_func1.adb ca1020e_func2.adb ca1020e_proc1.adb ca1020e_proc2.adb > /dev/null 2>&1;;
5367 ca14028) rm -f ca14028_func2.ads ca14028_func3.ads ca14028_proc1.ads ca14028_proc3.ads > /dev/null 2>&1;;
5368 + cxh1001) extraflags="-a -f"; echo "pragma Normalize_Scalars;" > gnat.adc
5370 if [ "$main" = "" ]; then
5373 failed="${failed}${i} "
5378 - target_gnatmake $extraflags -I$dir_support $main >> $dir/acats.log 2>&1
5379 + target_gnatmake $extraflags -I$dir/support $main >> $dir/acats.log 2>&1
5380 if [ $? -ne 0 ]; then
5383 failed="${failed}${i} "
5386 target_run $dir/tests/$chapter/$i/$binmain > $dir/tests/$chapter/$i/${i}.log 2>&1
5387 cd $dir/tests/$chapter/$i
5388 cat ${i}.log >> $dir/acats.log
5390 egrep -e '(==== |\+\+\+\+ |\!\!\!\! )' ${i}.log > /dev/null 2>&1
5391 if [ $? -ne 0 ]; then
5392 grep 'tasking not implemented' ${i}.log > /dev/null 2>&1
5393 @@ -357,15 +314,12 @@
5394 failed="${failed}${i} "
5396 log "UNSUPPORTED: $i"
5397 - as_fn_arith $glob_countn - 1
5398 - glob_countn=$as_val
5399 - as_fn_arith $glob_countu + 1
5400 - glob_countu=$as_val
5401 + glob_countn=`expr $glob_countn - 1`
5402 + glob_countu=`expr $glob_countu + 1`
5406 - as_fn_arith $glob_countok + 1
5407 - glob_countok=$as_val
5408 + glob_countok=`expr $glob_countok + 1`
5413 +++ gcc/testsuite/ada/acats/run_remote.sh
5416 +# Run ACATS with the GNU Ada compiler
5418 +# The following functions are to be customized if you run in cross
5419 +# environment or want to change compilation flags. Note that for
5420 +# tests requiring checks not turned on by default, this script
5421 +# automatically adds the needed flags to pass (ie: -gnato or -gnatE).
5423 +# gccflags="-O3 -fomit-frame-pointer -funroll-all-loops -finline-functions"
5424 +# gnatflags="-gnatN"
5427 +gnatflags="-gnatws"
5428 +tabtarget="/data/local/testsuite"
5429 +STRIP="@REMOTE_TARGET@-strip"
5432 + # Run on rooted tablet (port 22 vs port 2222)
5434 + $STRIP_FOR_TARGET $*
5435 + /usr/bin/scp -qp $* root@tablet:$tabtarget/
5436 + /usr/bin/ssh -q tablet $tabtarget/$BN
5440 + /usr/bin/ssh -q tablet "$1"
5443 +# End of customization section.
5447 + printf "$@" >> $dir/acats.sum
5448 + printf "$@" >> $dir/acats.log
5453 + echo "$@" >> $dir/acats.sum
5454 + echo "$@" >> $dir/acats.log
5458 + echo "$@" >> $dir/acats.sum
5459 + echo "$@" >> $dir/acats.log
5463 + printf "%04d %7s" $1 $2
5470 +dir=`${PWDCMD-pwd}`
5472 +if [ "$testdir" = "" ]; then
5473 + echo You must use make check or make check-ada
5477 +if [ "$dir" = "$testdir" ]; then
5478 + echo "error: srcdir must be different than objdir, exiting."
5482 +target_gnatmake () {
5483 + echo gnatmake-cross --GCC=\"$GCC\" $gnatflags $gccflags $* -largs $EXTERNAL_OBJECTS --GCC=\"$GCC\" -fPIE -pie
5484 + gnatmake-cross --GCC="$GCC" $gnatflags $gccflags $* -largs $EXTERNAL_OBJECTS --GCC="$GCC" -fPIE -pie
5492 + rm -f "$binmain" *.o *.ali > /dev/null 2>&1
5496 + ls ${i}?.adb > ${i}.lst 2> /dev/null
5497 + ls ${i}*m.adb >> ${i}.lst 2> /dev/null
5498 + ls ${i}.adb >> ${i}.lst 2> /dev/null
5499 + main=`tail -1 ${i}.lst`
5503 + local mysplit=`echo $1 | awk -F/ '{print "section=" $1 "; TN=" $2 "; prog=" $3 ";"}'`
5507 +EXTERNAL_OBJECTS=""
5508 +# Global variable to communicate external objects to link with.
5510 +rm -f $dir/acats.sum $dir/acats.log $dir/transfer.lst
5512 +display "Test Run By $USER on `date`"
5514 +display " === acats configuration ==="
5516 +target=`$GCC -dumpmachine`
5518 +display target gcc is $GCC
5519 +display `$GCC -v 2>&1`
5520 +display host=`gcc -dumpmachine`
5521 +display target=$target
5522 +display `type gnatmake-cross`
5523 +gnatls-cross -v >> $dir/acats.log
5526 +# Let's be tidy and clear off the remote device first
5527 +target_cmd "cd ${tabtarget}; rm logs/*; rmdir logs; rm *"
5529 +display " === acats support ==="
5530 +display_noeol "Generating support files..."
5532 +rm -rf $dir/support
5533 +mkdir -p $dir/support
5536 +cp $testdir/support/*.ada $testdir/support/*.a $testdir/support/*.tst $dir/support
5538 +# Find out the size in bit of an address on the target
5539 +target_gnatmake $testdir/support/impbit.adb >> $dir/acats.log 2>&1
5540 +target_run $dir/support/impbit > $dir/support/impbit.out 2>&1
5541 +target_bit=`cat $dir/support/impbit.out`
5542 +echo target_bit="$target_bit" >> $dir/acats.log
5544 +# Find out a suitable asm statement
5545 +# Adapted from configure.ac gcc_cv_as_dwarf2_debug_line
5547 + ia64*-*-* | s390*-*-*)
5548 + target_insn="nop 0"
5551 + target_insn="swym 0"
5557 +echo target_insn="$target_insn" >> $dir/acats.log
5559 +sed -e "s,ACATS4GNATDIR,$dir,g" \
5560 + < $testdir/support/impdef.a > $dir/support/impdef.a
5561 +sed -e "s,ACATS4GNATDIR,$dir,g" \
5562 + -e "s,ACATS4GNATBIT,$target_bit,g" \
5563 + -e "s,ACATS4GNATINSN,$target_insn,g" \
5564 + < $testdir/support/macro.dfs > $dir/support/MACRO.DFS
5565 +sed -e "s,ACATS4GNATDIR,$dir,g" \
5566 + < $testdir/support/tsttests.dat > $dir/support/TSTTESTS.DAT
5568 +cp $testdir/tests/cd/*.c $dir/support
5569 +cp $testdir/tests/cxb/*.c $dir/support
5570 +grep -v '^#' $testdir/norun.lst | sort > $dir/support/norun.lst
5573 +mv $dir/tests $dir/tests.$$ 2> /dev/null
5574 +rm -rf $dir/tests.$$ &
5577 +cp -pr $testdir/tests $dir/
5579 +for i in $dir/support/*.ada $dir/support/*.a; do
5580 + host_gnatchop $i >> $dir/acats.log 2>&1
5583 +# These tools are used to preprocess some ACATS sources
5584 +# they need to be compiled native on the host.
5586 +host_gnatmake -q -gnatws macrosub.adb
5587 +if [ $? -ne 0 ]; then
5588 + display "**** Failed to compile macrosub"
5591 +./macrosub > macrosub.out 2>&1
5594 +host_gnatmake -q -gnatws widechr.adb
5595 +if [ $? -ne 0 ]; then
5596 + display "**** Failed to compile widechr"
5599 +./widechr > widechr.out 2>&1
5601 +rm -f $dir/support/macrosub
5602 +rm -f $dir/support/widechr
5603 +rm -f $dir/support/*.ali
5604 +rm -f $dir/support/*.o
5608 +# From here, all compilations will be made by the target compiler
5610 +display_noeol "Compiling support files..."
5613 +if [ $? -ne 0 ]; then
5614 + display "**** Failed to compile C code"
5618 +host_gnatchop *.adt >> $dir/acats.log 2>&1
5620 +target_gnatmake -c -gnato -gnatE *.ads >> $dir/acats.log 2>&1
5621 +target_gnatmake -c -gnato -gnatE *.adb >> $dir/acats.log 2>&1
5625 +display " === acats tests ==="
5627 +if [ $# -eq 0 ]; then
5628 + chapters=`cd $dir/tests; echo [a-z]*`
5638 +for chapter in $chapters; do
5639 + if [ -d $dir/tests/$chapter ]; then
5640 + cd $dir/tests/$chapter
5641 + ls *.a *.ada *.adt *.am *.dep 2> /dev/null | sed -e 's/\(.*\)\..*/\1/g' | \
5642 + cut -c1-7 | sort | uniq | comm -23 - $dir/support/norun.lst \
5643 + > $dir/tests/$chapter/${chapter}.lst
5644 + countn=`wc -l < $dir/tests/$chapter/${chapter}.lst`
5645 + countdown=`expr $countdown + $countn`
5649 +cat > $dir/execute.sh << EOF
5651 + printf "left: %04d" \$1
5658 + local total=\$(echo \$testlist | awk '{print NF}')
5660 + echo "Executing \$total tests on remote device"
5662 + for x in \$testlist; do
5663 + timeout -t 30 ./\${x} > logs/\${x}.log 2>&1
5664 + countx=\$(expr \$countx + 1)
5665 + if [ \$countx -eq 25 ]; then
5666 + total=\$(expr \$total - 25)
5673 + tar -czf remote.logs.tar.gz logs
5678 +display "All tests are being cross-compiled without execution first."
5680 +for chapter in $chapters; do
5681 + if [ ! -d $dir/tests/$chapter ]; then
5685 + countn=`wc -l < $dir/tests/$chapter/${chapter}.lst`
5686 + glob_countn=`expr $glob_countn + $countn`
5688 + for i in `cat $dir/tests/$chapter/${chapter}.lst`; do
5689 + counti=`expr $counti + 1`
5690 + extraflags="-gnat95"
5691 + grep $i $testdir/overflow.lst > /dev/null 2>&1
5692 + if [ $? -eq 0 ]; then
5693 + extraflags="$extraflags -gnato"
5695 + grep $i $testdir/elabd.lst > /dev/null 2>&1
5696 + if [ $? -eq 0 ]; then
5697 + extraflags="$extraflags -gnatE"
5699 + grep $i $testdir/floatstore.lst > /dev/null 2>&1
5700 + if [ $? -eq 0 ]; then
5701 + extraflags="$extraflags -ffloat-store"
5703 + grep $i $testdir/stackcheck.lst > /dev/null 2>&1
5704 + if [ $? -eq 0 ]; then
5705 + extraflags="$extraflags -fstack-check"
5707 + inform $countdown $i
5708 + countdown=`expr $countdown - 1`
5709 + test=$dir/tests/$chapter/$i
5710 + mkdir $test && cd $test >> $dir/acats.log 2>&1
5712 + if [ $? -ne 0 ]; then
5714 + display "FAIL: $i"
5715 + failed="${failed}${i} "
5720 + host_gnatchop -c -w `ls ${test}*.a ${test}*.ada ${test}*.adt ${test}*.am ${test}*.dep 2> /dev/null` >> $dir/acats.log 2>&1
5722 + if [ -z "$main" ]; then
5726 + binmain=`echo $main | sed -e 's/\(.*\)\..*/\1/g'`
5727 + echo "BUILD $main" >> $dir/acats.log
5728 + EXTERNAL_OBJECTS=""
5730 + cxb30*) EXTERNAL_OBJECTS="$dir/support/cxb30040.o $dir/support/cxb30060.o $dir/support/cxb30130.o $dir/support/cxb30131.o";;
5731 + ca1020e) rm -f ca1020e_func1.adb ca1020e_func2.adb ca1020e_proc1.adb ca1020e_proc2.adb > /dev/null 2>&1;;
5732 + ca14028) rm -f ca14028_func2.ads ca14028_func3.ads ca14028_proc1.ads ca14028_proc3.ads > /dev/null 2>&1;;
5733 + cxh1001) extraflags="-a -f"; echo "pragma Normalize_Scalars;" > gnat.adc
5735 + if [ "$main" = "" ]; then
5737 + display "FAIL: $i"
5738 + failed="${failed}${i} "
5743 + target_gnatmake $extraflags -I$dir/support $main >> $dir/acats.log 2>&1
5744 + if [ $? -ne 0 ]; then
5746 + display "FAIL: $i"
5747 + failed="${failed}${i} "
5751 + echo $chapter/$i/$binmain >> $dir/transfer.lst
5752 + echo "$binmain \\" >> $dir/execute.sh
5757 +echo '"' >> $dir/execute.sh
5758 +echo "cycle" >> $dir/execute.sh
5761 +display "Transfer files to remote device: root@tablet:$tabtarget/"
5763 +cat $dir/transfer.lst | xargs tar --strip-components=2 -czf - | \
5764 + target_cmd "tar -C $tabtarget -xzf -"
5766 +tar -czf - execute.sh | target_cmd "tar -C $tabtarget -xzf -"
5767 +target_cmd "cd $tabtarget; sh execute.sh"
5768 +rm -rf $dir/logs $dir/remote.logs.tar.gz
5769 +/usr/bin/scp -q root@tablet:$tabtarget/remote.logs.tar.gz $dir/
5770 +tar -xzf $dir/remote.logs.tar.gz
5772 +countdown=`wc -l < $dir/transfer.lst`
5773 +glob_countn=${countdown}
5774 +for i in `cat $dir/transfer.lst`; do
5776 + if [ "$section" != "$savedsect" ]; then
5777 + display Running chapter $section ...
5779 + savedsect=$section
5781 + #inform $countdown $TN
5782 + countdown=`expr $countdown - 1`
5783 + proglog="$dir/logs/${prog}.log"
5784 + echo "RUN $prog" >> $dir/acats.log
5785 + if [ ! -f $proglog ]; then
5786 + echo "LOG NOT FOUND!" >> $proglog
5789 + cat $proglog >> $dir/acats.log
5791 + egrep -e '(==== |\+\+\+\+ |\!\!\!\! )' $proglog > /dev/null 2>&1
5792 + if [ $? -ne 0 ]; then
5793 + grep 'tasking not implemented' $proglog > /dev/null 2>&1
5795 + if [ $? -ne 0 ]; then
5796 + display "FAIL: ${TN}"
5797 + failed="${failed}${TN} "
5799 + log "UNSUPPORTED: ${TN}"
5800 + glob_countn=`expr $glob_countn - 1`
5801 + glob_countu=`expr $glob_countu + 1`
5805 + glob_countok=`expr $glob_countok + 1`
5807 + cd $dir/tests/$section/$TN
5812 +display " === acats Summary ==="
5813 +display "# of expected passes $glob_countok"
5814 +display "# of unexpected failures `expr $glob_countn - $glob_countok`"
5816 +if [ $glob_countu -ne 0 ]; then
5817 + display "# of unsupported tests $glob_countu"
5820 +if [ $glob_countok -ne $glob_countn ]; then
5821 + display "*** FAILURES: $failed"
5824 +display "$0 completed at `date`"
5827 --- gcc/testsuite/gnat.dg/test_raise_from_pure.adb.orig
5828 +++ gcc/testsuite/gnat.dg/test_raise_from_pure.adb
5831 +-- { dg-do run { xfail *-*-openbsd* } }
5832 -- { dg-options "-O2" }
5834 -- This is an optimization test and its failure is only a missed optimization.
5835 --- gcc/testsuite/gnat.dg/unchecked_convert5.adb.orig
5836 +++ gcc/testsuite/gnat.dg/unchecked_convert5.adb
5838 --- { dg-do run { target hppa*-*-* sparc*-*-* powerpc*-*-* } }
5840 -with Unchecked_Conversion;
5842 -procedure Unchecked_Convert5 is
5844 - subtype c_1 is string(1..1);
5846 - function int2c1 is -- { dg-warning "different sizes" }
5847 - new unchecked_conversion (source => integer, target => c_1);
5853 - c1 := int2c1(16#12#);
5855 - if c1 (1) /= ASCII.Nul then
5856 - raise Program_Error;
5860 --- gcc/testsuite/gnat.dg/unchecked_convert6.adb.orig
5861 +++ gcc/testsuite/gnat.dg/unchecked_convert6.adb
5863 --- { dg-do run { target hppa*-*-* sparc*-*-* powerpc*-*-* } }
5865 -with Unchecked_Conversion;
5867 -procedure Unchecked_Convert6 is
5869 - subtype c_5 is string(1..5);
5871 - function int2c5 is -- { dg-warning "different sizes" }
5872 - new unchecked_conversion (source => integer, target => c_5);
5878 - c5 := int2c5(16#12#);
5880 - if c5 (4) /= ASCII.DC2 then
5881 - raise Program_Error;
5887 [FILE:6150:patches/patch-diff-core]
5888 --- gcc/config/darwin.h.orig
5889 +++ gcc/config/darwin.h
5891 multiple times on a command line with different arguments each time,
5892 so put a * after their names so all of them get passed. */
5894 - "%{static}%{!static:-dynamic} \
5895 + "%{static}%{!static:-dynamic -rpath @PREFIX@/@GCCAUX@/lib:@LOCALBASE@/lib} \
5896 %:remove-outfile(-ldl) \
5897 %:remove-outfile(-lm) \
5898 %:remove-outfile(-lpthread) \
5899 --- gcc/config/dragonfly.h.orig
5900 +++ gcc/config/dragonfly.h
5903 %{static:-Bstatic} \
5905 - %{!static:--hash-style=gnu} \
5906 + %{!static:--hash-style=gnu --enable-new-dtags -rpath @PREFIX@/@GCCAUX@/lib:@LOCALBASE@/lib} \
5907 %{symbolic:-Bsymbolic}"
5910 #define LINK_SPEC DFBSD_LINK_SPEC
5912 -#define DFBSD_DYNAMIC_LINKER "/usr/libexec/ld-elf.so.2"
5913 +#define DFBSD_DYNAMIC_LINKER "/libexec/ld-elf.so.2"
5916 /* Use --as-needed -lgcc_s for eh support. */
5917 --- gcc/config/sol2.h.orig
5918 +++ gcc/config/sol2.h
5920 %{static:-dn -Bstatic} \
5921 %{shared:-G -dy %{!mimpure-text:-z text}} " \
5922 LINK_LIBGCC_MAPFILE_SPEC LINK_CLEARCAP_SPEC " \
5923 + %{!static:-R/lib/amd64:@PREFIX@/@GCCAUX@/lib/amd64:@LOCALBASE@/lib} \
5924 %{symbolic:-Bsymbolic -G -dy -z text} \
5927 --- gcc/config/aarch64/aarch64-freebsd.h.orig
5928 +++ gcc/config/aarch64/aarch64-freebsd.h
5930 %{shared:-Bshareable %{h*} %{soname*}} \
5931 %{symbolic:-Bsymbolic} \
5932 %{static:-Bstatic} \
5934 + %{!static:--hash-style=gnu --enable-new-dtags -rpath @PREFIX@/@GCCAUX@/lib:@LOCALBASE@/lib \
5935 %{rdynamic:-export-dynamic} \
5936 %{!shared:-dynamic-linker " FBSD_DYNAMIC_LINKER " }} \
5937 -X" SUBTARGET_EXTRA_LINK_SPEC " \
5940 #define MCOUNT_NAME ".mcount"
5942 +/* Static stack checking is supported by means of probes. */
5943 +#define STACK_CHECK_STATIC_BUILTIN 1
5944 #endif /* GCC_AARCH64_FREEBSD_H */
5945 --- gcc/config/i386/freebsd.h.orig
5946 +++ gcc/config/i386/freebsd.h
5948 %{rdynamic:-export-dynamic} \
5949 -dynamic-linker %(fbsd_dynamic_linker) } \
5950 %{static:-Bstatic}} \
5951 + %{!static:--hash-style=gnu --enable-new-dtags -rpath @PREFIX@/@GCCAUX@/lib:@LOCALBASE@/lib} \
5952 %{symbolic:-Bsymbolic}"
5954 /* A C statement to output to the stdio stream FILE an assembler
5955 --- gcc/config/i386/freebsd64.h.orig
5956 +++ gcc/config/i386/freebsd64.h
5958 %{rdynamic:-export-dynamic} \
5959 -dynamic-linker %(fbsd_dynamic_linker) } \
5960 %{static:-Bstatic}} \
5961 + %{!static:--hash-style=gnu -rpath @PREFIX@/@GCCAUX@/lib:@LOCALBASE@/lib} \
5962 %{symbolic:-Bsymbolic}"
5964 #undef MULTILIB_DEFAULTS
5965 --- gcc/Makefile.in.orig
5967 @@ -1255,7 +1255,6 @@
5975 @@ -1677,6 +1676,7 @@
5976 $(OBJS-libcommon-target) main.o c-family/cppspec.o \
5977 $(COLLECT2_OBJS) $(EXTRA_GCC_OBJS) $(GCOV_OBJS) $(GCOV_DUMP_OBJS) \
5978 $(GCOV_TOOL_OBJS) $(GENGTYPE_OBJS) gcc-ar.o gcc-nm.o gcc-ranlib.o \
5979 + insn-modes.o insn-modes-ada.o \
5980 lto-wrapper.o collect-utils.o
5982 # for anything that is shared use the cc1plus profile data, as that
5983 @@ -1692,6 +1692,11 @@
5984 ALL_HOST_OBJS = $(ALL_HOST_FRONTEND_OBJS) $(ALL_HOST_BACKEND_OBJS)
5986 BACKEND = libbackend.a main.o libcommon-target.a libcommon.a \
5988 + $(CPPLIB) $(LIBDECNUMBER)
5990 +BACKEND2 = libbackend.a main.o libcommon-target.a libcommon.a \
5991 + insn-modes-ada.o \
5992 $(CPPLIB) $(LIBDECNUMBER)
5994 # This is defined to "yes" if Tree checking is enabled, which roughly means
5995 @@ -2416,6 +2421,7 @@
5997 insn-modes.c: s-modes; @true
5998 insn-modes.h: s-modes-h; @true
5999 +insn-modes-ada.c: s-modes-ada; @true
6000 insn-modes-inline.h: s-modes-inline-h; @true
6001 min-insn-modes.c: s-modes-m; @true
6003 @@ -2440,6 +2446,12 @@
6004 $(SHELL) $(srcdir)/../move-if-change tmp-min-modes.c min-insn-modes.c
6007 +s-modes-ada: s-modes
6008 + $(shell sed -e 's/: TARGET_96_ROUND_53_LONG_DOUBLE \? &ieee_extended_intel_96_round_53_format //' \
6009 + < insn-modes.c > tmp-modes-ada.c)
6010 + $(SHELL) $(srcdir)/../move-if-change tmp-modes-ada.c insn-modes-ada.c
6011 + $(STAMP) s-modes-ada
6013 insn-preds.c: s-preds; @true
6014 tm-preds.h: s-preds-h; @true
6015 tm-constrs.h: s-constrs-h; @true
6016 @@ -3686,6 +3698,9 @@
6017 ( cd $(DESTDIR)$(bindir) && \
6018 $(LN) $(GCC_INSTALL_NAME)$(exeext) $(FULL_DRIVER_NAME) ); \
6020 + if [ -f gnat1$(exeext) ] ; then \
6021 + ( cd $(DESTDIR)$(bindir) && $(LN) $(GCC_INSTALL_NAME)$(exeext) ada$(exeext) ) \
6023 if [ ! -f gcc-cross$(exeext) ] \
6024 && [ "$(GCC_INSTALL_NAME)" != "$(GCC_TARGET_INSTALL_NAME)" ]; then \
6025 rm -f $(DESTDIR)$(bindir)/$(target_noncanonical)-gcc-tmp$(exeext); \
6026 --- gcc/config/i386/gnu-user64.h.orig
6027 +++ gcc/config/i386/gnu-user64.h
6029 %{" SPEC_32 ":-m " GNU_USER_LINK_EMULATION32 "} \
6030 %{" SPEC_X32 ":-m " GNU_USER_LINK_EMULATIONX32 "} \
6032 + %{!static:--enable-new-dtags -rpath @PREFIX@/@GCCAUX@/lib64:@LOCALBASE@/lib} \
6038 @@ -1512,6 +1512,9 @@
6039 static const char *const standard_startfile_prefix_2
6040 = STANDARD_STARTFILE_PREFIX_2;
6042 +/* Since we hardset rpath to LOCALBASE, follow with library search path */
6043 +static const char *const standard_raven_prefix = "@LOCALBASE@/lib/";
6045 /* A relative path to be used in finding the location of tools
6046 relative to the driver. */
6047 static const char *const tooldir_base_prefix = TOOLDIR_BASE_PREFIX;
6048 @@ -4698,6 +4701,8 @@
6050 add_prefix (&startfile_prefixes, standard_exec_prefix, "BINUTILS",
6051 PREFIX_PRIORITY_LAST, 1, 0);
6052 + add_prefix (&startfile_prefixes, standard_raven_prefix, "BINUTILS",
6053 + PREFIX_PRIORITY_LAST, 0, 0);
6056 gcc_assert (!IS_ABSOLUTE_PATH (tooldir_base_prefix));
6059 [FILE:8497:patches/patch-diff-cxx]
6060 --- libstdc++-v3/configure.host.orig
6061 +++ libstdc++-v3/configure.host
6064 os_include_dir="os/bsd/freebsd"
6067 + os_include_dir="os/bionic"
6070 os_include_dir="os/generic"
6072 --- libstdc++-v3/config/os/bionic/ctype_base.h.orig
6073 +++ libstdc++-v3/config/os/bionic/ctype_base.h
6075 // Non-standard typedefs.
6076 typedef const int* __to_type;
6079 +#define _U _CTYPE_U
6080 +#define _L _CTYPE_L
6081 +#define _D _CTYPE_D
6082 +#define _S _CTYPE_S
6083 +#define _P _CTYPE_P
6084 +#define _C _CTYPE_C
6085 +#define _X _CTYPE_X
6086 +#define _B _CTYPE_B
6087 +#define _N _CTYPE_D
6090 // NB: Offsets into ctype<char>::_M_table force a particular size
6091 // on the mask type. Because of this, we don't use an enum.
6093 --- libstdc++-v3/src/c++11/futex.cc.orig
6094 +++ libstdc++-v3/src/c++11/futex.cc
6096 #if defined(_GLIBCXX_HAVE_LINUX_FUTEX) && ATOMIC_INT_LOCK_FREE > 1
6100 +#include <sys/syscall.h>
6102 #include <syscall.h>
6105 #include <sys/time.h>
6107 --- libstdc++-v3/include/bits/c++config.orig
6108 +++ libstdc++-v3/include/bits/c++config
6110 #ifndef _GLIBCXX_CXX_CONFIG_H
6111 #define _GLIBCXX_CXX_CONFIG_H 1
6116 +#define _GTHROW throw()
6119 // The major release number for the GCC release the C++ library belongs to.
6120 #define _GLIBCXX_RELEASE
6122 --- libstdc++-v3/include/c_global/cstdio.orig
6123 +++ libstdc++-v3/include/c_global/cstdio
6124 @@ -159,16 +159,16 @@
6125 #if _GLIBCXX_USE_C99_CHECK || _GLIBCXX_USE_C99_DYNAMIC
6127 (snprintf)(char * __restrict, std::size_t, const char * __restrict, ...)
6131 (vfscanf)(FILE * __restrict, const char * __restrict, __gnuc_va_list);
6132 extern "C" int (vscanf)(const char * __restrict, __gnuc_va_list);
6134 (vsnprintf)(char * __restrict, std::size_t, const char * __restrict,
6135 - __gnuc_va_list) throw ();
6136 + __gnuc_va_list) _GTHROW;
6138 (vsscanf)(const char * __restrict, const char * __restrict, __gnuc_va_list)
6143 #if !_GLIBCXX_USE_C99_DYNAMIC
6144 --- libstdc++-v3/include/c_global/cstdlib.orig
6145 +++ libstdc++-v3/include/c_global/cstdlib
6150 - extern "C" void abort(void) throw () _GLIBCXX_NORETURN;
6151 - extern "C" int atexit(void (*)(void)) throw ();
6152 - extern "C" void exit(int) throw () _GLIBCXX_NORETURN;
6153 + extern "C" void abort(void) _GTHROW _GLIBCXX_NORETURN;
6154 + extern "C" int atexit(void (*)(void)) _GTHROW;
6155 + extern "C" void exit(int) _GTHROW _GLIBCXX_NORETURN;
6156 #if __cplusplus >= 201103L
6157 # ifdef _GLIBCXX_HAVE_AT_QUICK_EXIT
6158 - extern "C" int at_quick_exit(void (*)(void)) throw ();
6159 + extern "C" int at_quick_exit(void (*)(void)) _GTHROW;
6161 # ifdef _GLIBCXX_HAVE_QUICK_EXIT
6162 - extern "C" void quick_exit(int) throw() _GLIBCXX_NORETURN;
6163 + extern "C" void quick_exit(int) _GTHROW _GLIBCXX_NORETURN;
6170 #if _GLIBCXX_USE_C99_CHECK || _GLIBCXX_USE_C99_DYNAMIC
6171 - extern "C" void (_Exit)(int) throw () _GLIBCXX_NORETURN;
6172 + extern "C" void (_Exit)(int) _GTHROW _GLIBCXX_NORETURN;
6174 #if !_GLIBCXX_USE_C99_DYNAMIC
6176 @@ -217,11 +217,11 @@
6179 #if _GLIBCXX_USE_C99_LONG_LONG_CHECK || _GLIBCXX_USE_C99_LONG_LONG_DYNAMIC
6180 - extern "C" long long int (atoll)(const char *) throw ();
6181 + extern "C" long long int (atoll)(const char *) _GTHROW;
6182 extern "C" long long int
6183 - (strtoll)(const char * __restrict, char ** __restrict, int) throw ();
6184 + (strtoll)(const char * __restrict, char ** __restrict, int) _GTHROW;
6185 extern "C" unsigned long long int
6186 - (strtoull)(const char * __restrict, char ** __restrict, int) throw ();
6187 + (strtoull)(const char * __restrict, char ** __restrict, int) _GTHROW;
6189 #if !_GLIBCXX_USE_C99_LONG_LONG_DYNAMIC
6191 --- libstdc++-v3/include/c_global/cwchar.orig
6192 +++ libstdc++-v3/include/c_global/cwchar
6193 @@ -245,16 +245,16 @@
6195 #if _GLIBCXX_USE_C99_CHECK || _GLIBCXX_USE_C99_DYNAMIC
6196 extern "C" long double
6197 - (wcstold)(const wchar_t * __restrict, wchar_t ** __restrict) throw ();
6198 + (wcstold)(const wchar_t * __restrict, wchar_t ** __restrict) _GTHROW;
6200 #if !_GLIBCXX_USE_C99_DYNAMIC
6203 #if _GLIBCXX_USE_C99_LONG_LONG_CHECK || _GLIBCXX_USE_C99_LONG_LONG_DYNAMIC
6204 extern "C" long long int
6205 - (wcstoll)(const wchar_t * __restrict, wchar_t ** __restrict, int) throw ();
6206 + (wcstoll)(const wchar_t * __restrict, wchar_t ** __restrict, int) _GTHROW;
6207 extern "C" unsigned long long int
6208 - (wcstoull)(const wchar_t * __restrict, wchar_t ** __restrict, int) throw ();
6209 + (wcstoull)(const wchar_t * __restrict, wchar_t ** __restrict, int) _GTHROW;
6211 #if !_GLIBCXX_USE_C99_LONG_LONG_DYNAMIC
6213 --- libstdc++-v3/include/c_std/cstdio.orig
6214 +++ libstdc++-v3/include/c_std/cstdio
6215 @@ -157,16 +157,16 @@
6216 #if _GLIBCXX_USE_C99_CHECK || _GLIBCXX_USE_C99_DYNAMIC
6218 (snprintf)(char * __restrict, std::size_t, const char * __restrict, ...)
6222 (vfscanf)(FILE * __restrict, const char * __restrict, __gnuc_va_list);
6223 extern "C" int (vscanf)(const char * __restrict, __gnuc_va_list);
6225 (vsnprintf)(char * __restrict, std::size_t, const char * __restrict,
6226 - __gnuc_va_list) throw ();
6227 + __gnuc_va_list) _GTHROW;
6229 (vsscanf)(const char * __restrict, const char * __restrict, __gnuc_va_list)
6234 #if !_GLIBCXX_USE_C99_DYNAMIC
6235 --- libstdc++-v3/include/c_std/cstdlib.orig
6236 +++ libstdc++-v3/include/c_std/cstdlib
6241 - extern "C" void abort(void) throw () _GLIBCXX_NORETURN;
6242 - extern "C" int atexit(void (*)(void)) throw ();
6243 - extern "C" void exit(int) throw () _GLIBCXX_NORETURN;
6244 + extern "C" void abort(void) _GTHROW _GLIBCXX_NORETURN;
6245 + extern "C" int atexit(void (*)(void)) _GTHROW;
6246 + extern "C" void exit(int) _GTHROW _GLIBCXX_NORETURN;
6247 #if __cplusplus >= 201103L
6248 # ifdef _GLIBCXX_HAVE_AT_QUICK_EXIT
6249 - extern "C" int at_quick_exit(void (*)(void)) throw ();
6250 + extern "C" int at_quick_exit(void (*)(void)) _GTHROW;
6252 # ifdef _GLIBCXX_HAVE_QUICK_EXIT
6253 - extern "C" void quick_exit(int) throw() _GLIBCXX_NORETURN;
6254 + extern "C" void quick_exit(int) _GTHROW _GLIBCXX_NORETURN;
6261 #if _GLIBCXX_USE_C99_CHECK || _GLIBCXX_USE_C99_DYNAMIC
6262 - extern "C" void (_Exit)(int) throw () _GLIBCXX_NORETURN;
6263 + extern "C" void (_Exit)(int) _GTHROW _GLIBCXX_NORETURN;
6265 #if !_GLIBCXX_USE_C99_DYNAMIC
6267 @@ -228,11 +228,11 @@
6270 #if _GLIBCXX_USE_C99_LONG_LONG_CHECK || _GLIBCXX_USE_C99_LONG_LONG_DYNAMIC
6271 - extern "C" long long int (atoll)(const char *) throw ();
6272 + extern "C" long long int (atoll)(const char *) _GTHROW;
6273 extern "C" long long int
6274 - (strtoll)(const char * __restrict, char ** __restrict, int) throw ();
6275 + (strtoll)(const char * __restrict, char ** __restrict, int) _GTHROW;
6276 extern "C" unsigned long long int
6277 - (strtoull)(const char * __restrict, char ** __restrict, int) throw ();
6278 + (strtoull)(const char * __restrict, char ** __restrict, int) _GTHROW;
6280 #if !_GLIBCXX_USE_C99_LONG_LONG_DYNAMIC
6282 --- libstdc++-v3/include/c_std/cwchar.orig
6283 +++ libstdc++-v3/include/c_std/cwchar
6284 @@ -238,16 +238,16 @@
6286 #if _GLIBCXX_USE_C99_CHECK || _GLIBCXX_USE_C99_DYNAMIC
6287 extern "C" long double
6288 - (wcstold)(const wchar_t * __restrict, wchar_t ** __restrict) throw ();
6289 + (wcstold)(const wchar_t * __restrict, wchar_t ** __restrict) _GTHROW;
6291 #if !_GLIBCXX_USE_C99_DYNAMIC
6294 #if _GLIBCXX_USE_C99_LONG_LONG_CHECK || _GLIBCXX_USE_C99_LONG_LONG_DYNAMIC
6295 extern "C" long long int
6296 - (wcstoll)(const wchar_t * __restrict, wchar_t ** __restrict, int) throw ();
6297 + (wcstoll)(const wchar_t * __restrict, wchar_t ** __restrict, int) _GTHROW;
6298 extern "C" unsigned long long int
6299 - (wcstoull)(const wchar_t * __restrict, wchar_t ** __restrict, int) throw ();
6300 + (wcstoull)(const wchar_t * __restrict, wchar_t ** __restrict, int) _GTHROW;
6302 #if !_GLIBCXX_USE_C99_LONG_LONG_DYNAMIC
6306 [FILE:1894:patches/patch-diff-gcc-testsuite]
6307 --- gcc/testsuite/gcc.dg/format/ext-1.c.orig
6308 +++ gcc/testsuite/gcc.dg/format/ext-1.c
6313 -foo (quad_t q, u_quad_t uq, quad_t *qn, size_t z, size_t *zn, long long int ll,
6314 +foo (quad2_t q, u_quad2_t uq, quad2_t *qn, size_t z, size_t *zn, long long int ll,
6315 unsigned long long int ull, int i, unsigned int u, double d,
6316 char *s, void *p, wchar_t *ls, wint_t lc, int *n, long int l)
6318 --- gcc/testsuite/gcc.dg/format/ext-2.c.orig
6319 +++ gcc/testsuite/gcc.dg/format/ext-2.c
6324 -foo (quad_t *qp, u_quad_t *uqp, quad_t *qn, long long int *llp,
6325 +foo (quad2_t *qp, u_quad2_t *uqp, quad2_t *qn, long long int *llp,
6326 unsigned long long int *ullp, float *fp, char *s, void **pp, wchar_t *ls,
6327 int *ip, unsigned int *up)
6329 --- gcc/testsuite/gcc.dg/format/format.h.orig
6330 +++ gcc/testsuite/gcc.dg/format/format.h
6334 /* %q formats want a "quad"; GCC considers this to be a long long. */
6335 -typedef llong quad_t;
6336 -typedef ullong u_quad_t;
6337 +typedef llong quad2_t;
6338 +typedef ullong u_quad2_t;
6340 __extension__ typedef __INTMAX_TYPE__ intmax_t;
6341 __extension__ typedef __UINTMAX_TYPE__ uintmax_t;
6342 --- gcc/testsuite/gcc.dg/pch/pch.exp.orig
6343 +++ gcc/testsuite/gcc.dg/pch/pch.exp
6345 -# Copyright (C) 1997-2020 Free Software Foundation, Inc.
6346 +# Copyright (C) 1997-2019 Free Software Foundation, Inc.
6348 # This program is free software; you can redistribute it and/or modify
6349 # it under the terms of the GNU General Public License as published by
6351 set test "largefile.c"
6352 set testh "largefile.hs"
6353 set f [open $test w]
6354 +puts $f "/* { dg-do run { target *-*-solaris* } } */"
6355 +puts $f "/* { dg-error \"dummy\" \"fool dejagnu\" { target { ! *-*-solaris* } 20 } } */"
6356 puts $f "/* { dg-timeout-factor 4.0 } */"
6358 for { set v 0 } { $v < 10000 } { incr v } {
6361 [FILE:286:sunos/patch-gcc_config.build]
6362 --- gcc/config.build.orig 2017-01-01 12:07:43 UTC
6363 +++ gcc/config.build
6368 -build_install_headers_dir=install-headers-tar
6369 +build_install_headers_dir=install-headers-cp
6370 build_file_translate=
6372 # System-specific settings.