Skip to content

Commit 6e7f0e0

Browse files
committed
Update to GCC 14.2.0 from Mac/Linux
1 parent 1595bf7 commit 6e7f0e0

File tree

700 files changed

+251151
-11308
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

700 files changed

+251151
-11308
lines changed
-51.1 KB
Binary file not shown.
-59.7 KB
Binary file not shown.
95.9 KB
Binary file not shown.
1.59 MB
Binary file not shown.
181 KB
Binary file not shown.
Lines changed: 147 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,147 @@
1+
#!/usr/bin/env bash
2+
3+
# Copyright (C) 2024 Free Software Foundation, Inc.
4+
5+
# This program is free software; you can redistribute it and/or modify
6+
# it under the terms of the GNU General Public License as published by
7+
# the Free Software Foundation; either version 3 of the License, or
8+
# (at your option) any later version.
9+
#
10+
# This program is distributed in the hope that it will be useful,
11+
# but WITHOUT ANY WARRANTY; without even the implied warranty of
12+
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13+
# GNU General Public License for more details.
14+
#
15+
# You should have received a copy of the GNU General Public License
16+
# along with this program. If not, see <http://www.gnu.org/licenses/>.
17+
18+
# Print a stack trace of a running process.
19+
# Similar to the gcore command, but instead of creating a core file,
20+
# we simply have gdb print out the stack backtrace to the terminal.
21+
22+
GDB=${GDB:-$(command -v gdb)}
23+
GDBARGS=${GDBARGS:-}
24+
AWK=${AWK:-}
25+
PKGVERSION=(GDB)
26+
VERSION=17.0.50.20250202-git
27+
28+
# Find an appropriate awk interpreter if one was not specified
29+
# via the environment.
30+
awk_prog=""
31+
if [ -z "$AWK" ]; then
32+
for prog in gawk mawk nawk awk; do
33+
awk_prog=$(command -v $prog)
34+
test -n "$awk_prog" && break
35+
done
36+
AWK="$awk_prog"
37+
fi
38+
if [ ! -x "$AWK" ]; then
39+
echo "$0: could not find usable awk interpreter" 1>&2
40+
exit 2
41+
fi
42+
43+
function print_usage() {
44+
echo "Usage: $0 [-h|--help] [-v|--version] PID"
45+
}
46+
47+
function print_try_help() {
48+
echo "Try '$0 --help' for more information."
49+
}
50+
51+
function print_help() {
52+
print_usage
53+
echo "Print a stack trace of a running program"
54+
echo
55+
echo " -h, --help Print this message then exit."
56+
echo " -v, --version Print version information then exit."
57+
}
58+
59+
function print_version() {
60+
echo "GNU gstack (${PKGVERSION}) ${VERSION}"
61+
}
62+
63+
# Parse options.
64+
while getopts hv-: OPT; do
65+
if [ "$OPT" = "-" ]; then
66+
OPT="${OPTARG%%=*}"
67+
OPTARG="${OPTARG#'$OPT'}"
68+
OPTARG="${OPTARG#=}"
69+
fi
70+
71+
case "$OPT" in
72+
h | help)
73+
print_help
74+
exit 0
75+
;;
76+
v | version)
77+
print_version
78+
exit 0
79+
;;
80+
\?)
81+
# getopts has already output an error message.
82+
print_try_help 1>&2
83+
exit 2 ;;
84+
*)
85+
echo "$0: unrecognized option '--$OPT'" 1>&2
86+
print_try_help 1>&2
87+
exit 2
88+
;;
89+
esac
90+
done
91+
shift $((OPTIND-1))
92+
93+
# The sole remaining argument should be the PID of the process
94+
# whose backtrace is desired.
95+
if [ $# -ne 1 ]; then
96+
print_usage 1>&2
97+
exit 1
98+
fi
99+
100+
PID=$1
101+
102+
awk_script=$(cat << EOF
103+
BEGIN {
104+
first=1
105+
attach_okay=0
106+
}
107+
108+
/ATTACHED/ {
109+
attach_okay=1
110+
}
111+
112+
/^#/ {
113+
if (attach_okay) {
114+
print \$0
115+
}
116+
}
117+
118+
/^Thread/ {
119+
if (attach_okay) {
120+
if (first == 0)
121+
print ""
122+
first=0
123+
print \$0
124+
}
125+
}
126+
127+
END {
128+
if (attach_okay == 0)
129+
exit 2
130+
}
131+
EOF
132+
)
133+
134+
# Run GDB and remove some unwanted noise.
135+
"$GDB" --quiet -nx --readnever $GDBARGS <<EOF |
136+
set width 0
137+
set height 0
138+
set pagination no
139+
set debuginfod enabled off
140+
define attach-bt
141+
attach \$arg0
142+
echo "ATTACHED"
143+
thread apply all bt
144+
end
145+
attach-bt $PID
146+
EOF
147+
$AWK -- "$awk_script"
76.9 KB
Binary file not shown.
-75.2 KB
Binary file not shown.
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
This README file is copied into the directory for GCC-only header files
2+
when fixincludes is run by the makefile for GCC.
3+
4+
Many of the files in this directory were automatically edited from the
5+
standard system header files by the fixincludes process. They are
6+
system-specific, and will not work on any other kind of system. They
7+
are also not part of GCC. The reason we have to do this is because
8+
GCC requires ANSI C headers and many vendors supply ANSI-incompatible
9+
headers.
10+
11+
Because this is an automated process, sometimes headers get "fixed"
12+
that do not, strictly speaking, need a fix. As long as nothing is broken
13+
by the process, it is just an unfortunate collateral inconvenience.
14+
We would like to rectify it, if it is not "too inconvenient".

bin/darwin/opt/lib/gcc/m68k-amiga-elf/13.2.0/include/float.h renamed to bin/darwin/opt/lib/gcc/m68k-amiga-elf/14.2.0/include/float.h

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/* Copyright (C) 2002-2023 Free Software Foundation, Inc.
1+
/* Copyright (C) 2002-2024 Free Software Foundation, Inc.
22
33
This file is part of GCC.
44
@@ -284,7 +284,7 @@ see the files COPYING3 and COPYING.RUNTIME respectively. If not, see
284284
#define LDBL_SNAN (__builtin_nansl (""))
285285
#endif
286286

287-
#endif /* C2X */
287+
#endif /* C23 */
288288

289289
#if (defined __STDC_WANT_IEC_60559_BFP_EXT__ \
290290
|| defined __STDC_WANT_IEC_60559_EXT__)
@@ -324,7 +324,7 @@ see the files COPYING3 and COPYING.RUNTIME respectively. If not, see
324324
#if defined __STDC_VERSION__ && __STDC_VERSION__ > 201710L
325325
#undef FLT16_SNAN
326326
#define FLT16_SNAN (__builtin_nansf16 (""))
327-
#endif /* C2X */
327+
#endif /* C23 */
328328
#endif /* __FLT16_MANT_DIG__. */
329329

330330
#ifdef __FLT32_MANT_DIG__
@@ -353,7 +353,7 @@ see the files COPYING3 and COPYING.RUNTIME respectively. If not, see
353353
#if defined __STDC_VERSION__ && __STDC_VERSION__ > 201710L
354354
#undef FLT32_SNAN
355355
#define FLT32_SNAN (__builtin_nansf32 (""))
356-
#endif /* C2X */
356+
#endif /* C23 */
357357
#endif /* __FLT32_MANT_DIG__. */
358358

359359
#ifdef __FLT64_MANT_DIG__
@@ -382,7 +382,7 @@ see the files COPYING3 and COPYING.RUNTIME respectively. If not, see
382382
#if defined __STDC_VERSION__ && __STDC_VERSION__ > 201710L
383383
#undef FLT64_SNAN
384384
#define FLT64_SNAN (__builtin_nansf64 (""))
385-
#endif /* C2X */
385+
#endif /* C23 */
386386
#endif /* __FLT64_MANT_DIG__. */
387387

388388
#ifdef __FLT128_MANT_DIG__
@@ -411,7 +411,7 @@ see the files COPYING3 and COPYING.RUNTIME respectively. If not, see
411411
#if defined __STDC_VERSION__ && __STDC_VERSION__ > 201710L
412412
#undef FLT128_SNAN
413413
#define FLT128_SNAN (__builtin_nansf128 (""))
414-
#endif /* C2X */
414+
#endif /* C23 */
415415
#endif /* __FLT128_MANT_DIG__. */
416416

417417
#ifdef __FLT32X_MANT_DIG__
@@ -440,7 +440,7 @@ see the files COPYING3 and COPYING.RUNTIME respectively. If not, see
440440
#if defined __STDC_VERSION__ && __STDC_VERSION__ > 201710L
441441
#undef FLT32X_SNAN
442442
#define FLT32X_SNAN (__builtin_nansf32x (""))
443-
#endif /* C2X */
443+
#endif /* C23 */
444444
#endif /* __FLT32X_MANT_DIG__. */
445445

446446
#ifdef __FLT64X_MANT_DIG__
@@ -469,7 +469,7 @@ see the files COPYING3 and COPYING.RUNTIME respectively. If not, see
469469
#if defined __STDC_VERSION__ && __STDC_VERSION__ > 201710L
470470
#undef FLT64X_SNAN
471471
#define FLT64X_SNAN (__builtin_nansf64x (""))
472-
#endif /* C2X */
472+
#endif /* C23 */
473473
#endif /* __FLT64X_MANT_DIG__. */
474474

475475
#ifdef __FLT128X_MANT_DIG__
@@ -498,7 +498,7 @@ see the files COPYING3 and COPYING.RUNTIME respectively. If not, see
498498
#if defined __STDC_VERSION__ && __STDC_VERSION__ > 201710L
499499
#undef FLT128X_SNAN
500500
#define FLT128X_SNAN (__builtin_nansf128x (""))
501-
#endif /* C2X */
501+
#endif /* C23 */
502502
#endif /* __FLT128X_MANT_DIG__. */
503503

504504
#endif /* __STDC_WANT_IEC_60559_TYPES_EXT__. */
@@ -507,7 +507,7 @@ see the files COPYING3 and COPYING.RUNTIME respectively. If not, see
507507
#if (defined __STDC_WANT_DEC_FP__ \
508508
|| defined __STDC_WANT_IEC_60559_DFP_EXT__ \
509509
|| (defined __STDC_VERSION__ && __STDC_VERSION__ > 201710L))
510-
/* C2X; formerly Technical Report 24732, extension for decimal
510+
/* C23; formerly Technical Report 24732, extension for decimal
511511
floating-point arithmetic: Characteristic of decimal floating types
512512
<float.h>, and TS 18661-2. */
513513

@@ -575,7 +575,7 @@ see the files COPYING3 and COPYING.RUNTIME respectively. If not, see
575575
#undef DEC_EVAL_METHOD
576576
#define DEC_EVAL_METHOD __DEC_EVAL_METHOD__
577577

578-
#endif /* __STDC_WANT_DEC_FP__ || __STDC_WANT_IEC_60559_DFP_EXT__ || C2X. */
578+
#endif /* __STDC_WANT_DEC_FP__ || __STDC_WANT_IEC_60559_DFP_EXT__ || C23. */
579579

580580
#ifdef __STDC_WANT_DEC_FP__
581581

@@ -600,7 +600,7 @@ see the files COPYING3 and COPYING.RUNTIME respectively. If not, see
600600
#define DEC64_TRUE_MIN __DEC64_SUBNORMAL_MIN__
601601
#define DEC128_TRUE_MIN __DEC128_SUBNORMAL_MIN__
602602

603-
#endif /* __STDC_WANT_IEC_60559_DFP_EXT__ || C2X. */
603+
#endif /* __STDC_WANT_IEC_60559_DFP_EXT__ || C23. */
604604

605605
#if defined __STDC_VERSION__ && __STDC_VERSION__ > 201710L
606606

@@ -620,7 +620,7 @@ see the files COPYING3 and COPYING.RUNTIME respectively. If not, see
620620
#undef DEC128_SNAN
621621
#define DEC128_SNAN (__builtin_nansd128 (""))
622622

623-
#endif /* C2X */
623+
#endif /* C23 */
624624

625625
#endif /* __DEC32_MANT_DIG__ */
626626

0 commit comments

Comments
 (0)