* imported qemu/hotfix-glibc-2.41.patch
[t2sde.git] / package / develop / gcc / sparcv789.patch
blobb234acf77b497ed2829d5e54f869d8447c54845a
1 # --- T2-COPYRIGHT-NOTE-BEGIN ---
2 # T2 SDE: package/*/gcc/sparcv789.patch
3 # Copyright (C) 2020 - 2023 The T2 SDE Project
4 #
5 # This Copyright note is generated by scripts/Create-CopyPatch,
6 # more information can be found in the files COPYING and README.
7 #
8 # This patch file is dual-licensed. It is available under the license the
9 # patched project is licensed under, as long as it is an OpenSource license
10 # as defined at http://www.opensource.org/ (e.g. BSD, X11) or under the terms
11 # of the GNU General Public License version 2 as used by the T2 SDE.
12 # --- T2-COPYRIGHT-NOTE-END ---
14 --- gcc-13-20230416/gcc/config.gcc.vanilla 2023-04-18 16:11:01.857535818 +0200
15 +++ gcc-13-20230416/gcc/config.gcc 2023-04-18 16:12:11.963537117 +0200
16 @@ -3351,7 +3351,7 @@
17 tm_file="${tm_file} elfos.h sparc/sysv4.h sparc/sp-elf.h sparc/rtemself.h rtems.h newlib-stdint.h"
18 tmake_file="${tmake_file} sparc/t-sparc sparc/t-rtems"
20 -sparc-*-linux*)
21 +sparc-*-linux*|sparcv*-*-linux*)
22 tm_file="${tm_file} elfos.h sparc/sysv4.h gnu-user.h linux.h glibc-stdint.h sparc/tso.h"
23 extra_options="${extra_options} sparc/long-double-switch.opt"
24 case ${target} in
25 @@ -5057,7 +5057,7 @@
26 for which in cpu cpu_32 cpu_64 tune tune_32 tune_64; do
27 eval "val=\$with_$which"
28 case ${val} in
29 - "" | sparc | sparcv9 | sparc64 \
30 + "" | sparc | sparcv7 | sparcv8 | sparcv9 | sparc64 \
31 | v7 | cypress \
32 | v8 | supersparc | hypersparc | leon | leon3 | leon3v7 \
33 | sparclite | f930 | f934 | sparclite86x \
34 --- gcc-10.2.0/libgcc/config.host.vanilla 2020-10-03 14:28:28.829991995 +0200
35 +++ gcc-10.2.0/libgcc/config.host 2020-10-03 14:28:52.561991867 +0200
36 @@ -1363,7 +1363,7 @@
37 tmake_file="${tmake_file} t-fdpbit t-crtfm"
38 extra_parts="$extra_parts crti.o crtn.o crtfastmath.o"
40 -sparc-*-linux*) # SPARC's running GNU/Linux, libc6
41 +sparc-*-linux*|sparcv*-*-linux*) # SPARC's running GNU/Linux, libc6
42 tmake_file="${tmake_file} t-crtfm"
43 if test "${host_address}" = 64; then
44 tmake_file="$tmake_file sparc/t-linux64"