Skip to content

Commit fec9127

Browse files
committed
bump gcc to 16-20251116
1 parent 6768057 commit fec9127

5 files changed

Lines changed: 83 additions & 3 deletions

File tree

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ Available branches:
4646

4747
| Branch | GCC version | MinGW | Binutils | GDB |
4848
| ------ | ----------- | ----- | -------- | --- |
49-
| 16 | 16-20251109 | 13.0.0 | 2.45 | 16.3 |
49+
| 16 | 16-20251116 | 13.0.0 | 2.45 | 16.3 |
5050
| 15 | 15.2.0 | 13.0.0 | 2.45 | 16.3 |
5151
| 14 ❄️ | 14.3.0 | 12.0.0 | 2.43.1 | 15.2 |
5252
| 13 ❄️ | 13.4.0 | 11.0.1 | 2.41 | 14.2 |

module/checksum.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
'gcc-13.4.0.tar.xz': '9c4ce6dbb040568fdc545588ac03c5cbc95a8dbf0c7aa490170843afb59ca8f5',
1919
'gcc-14.3.0.tar.xz': 'e0dc77297625631ac8e50fa92fffefe899a4eb702592da5c32ef04e2293aca3a',
2020
'gcc-15.2.0.tar.xz': '438fd996826b0c82485a29da03a72d71d6e3541a83ec702df4271f6fe025d24e',
21-
'gcc-16-20251109.tar.xz': '52facec8993710a3c20a74f9cc4bd513e6ca77f6a93854e70c5db8697a0957bf',
21+
'gcc-16-20251116.tar.xz': '79914d5a23cbcf632ff4509aca049a9a48bc5d74e399e1007aca01e025140862',
2222

2323
'gdb-14.2.tar.xz': '2d4dd8061d8ded12b6c63f55e45344881e8226105f4d2a9b234040efa5ce7772',
2424
'gdb-15.2.tar.xz': '83350ccd35b5b5a0cba6b334c41294ea968158c573940904f00b92f76345314d',

module/prepare_source.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,10 @@ def _gcc(ver: BranchProfile, paths: ProjectPaths, download_only: bool):
100100
else:
101101
patch(paths.src_dir.gcc, paths.patch_dir / 'gcc' / 'disable-vectorized-lexer_13.patch')
102102

103+
# Fix sarif socket
104+
if v.major == 16:
105+
patch(paths.src_dir.gcc, paths.patch_dir / 'gcc' / 'fix-sarif-socket.patch')
106+
103107
# Parser-friendly diagnostics
104108
po_dir = paths.src_dir.gcc / 'gcc' / 'po'
105109
po_files = list(po_dir.glob('*.po'))

module/profile.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@ def __init__(
149149

150150
BRANCHES: Dict[str, BranchVersions] = {
151151
'16': BranchVersions(
152-
gcc = '16-20251109',
152+
gcc = '16-20251116',
153153
rev = '0',
154154

155155
mcfgthread = '2.2-ga.1',

patch/gcc/fix-sarif-socket.patch

Lines changed: 76 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,76 @@
1+
diff --git a/gcc/diagnostics/sarif-sink.cc b/gcc/diagnostics/sarif-sink.cc
2+
index 76aec2a886c..dd33315163b 100644
3+
--- a/gcc/diagnostics/sarif-sink.cc
4+
+++ b/gcc/diagnostics/sarif-sink.cc
5+
@@ -55,8 +55,10 @@ along with GCC; see the file COPYING3. If not see
6+
#include "backtrace.h"
7+
#include "xml.h"
8+
#include "intl.h"
9+
+#ifdef HAVE_AF_UNIX
10+
#include <sys/un.h>
11+
#include <sys/socket.h>
12+
+#endif
13+
14+
namespace diagnostics {
15+
16+
@@ -4158,6 +4160,7 @@ private:
17+
int m_ival;
18+
};
19+
20+
+#ifdef HAVE_AF_UNIX
21+
class sarif_socket_sink : public sarif_sink
22+
{
23+
public:
24+
@@ -4240,6 +4243,7 @@ private:
25+
26+
unique_fd m_fd;
27+
};
28+
+#endif
29+
30+
/* Print the start of an embedded link to PP, as per 3.11.6. */
31+
32+
@@ -4566,6 +4570,7 @@ sarif_generation_options::dump (FILE *outfile, int indent) const
33+
DIAGNOSTICS_DUMPING_EMIT_BOOL_FIELD (m_state_graph);
34+
}
35+
36+
+#ifdef HAVE_AF_UNIX
37+
void
38+
maybe_open_sarif_sink_for_socket (context &dc)
39+
{
40+
@@ -4606,6 +4611,7 @@ maybe_open_sarif_sink_for_socket (context &dc)
41+
sink_->update_printer ();
42+
dc.add_sink (std::move (sink_));
43+
}
44+
+#endif
45+
46+
#if CHECKING_P
47+
48+
diff --git a/gcc/diagnostics/sarif-sink.h b/gcc/diagnostics/sarif-sink.h
49+
index 5a9914ac571..937cc49646f 100644
50+
--- a/gcc/diagnostics/sarif-sink.h
51+
+++ b/gcc/diagnostics/sarif-sink.h
52+
@@ -188,8 +188,10 @@ extern std::unique_ptr<sarif_edge>
53+
make_sarif_edge (const digraphs::edge &e,
54+
sarif_builder *builder);
55+
56+
+#ifdef HAVE_AF_UNIX
57+
extern void
58+
maybe_open_sarif_sink_for_socket (context &ctxt);
59+
+#endif
60+
61+
} // namespace diagnostics
62+
63+
diff --git a/gcc/toplev.cc b/gcc/toplev.cc
64+
index bcf1b7604c8..c8d8e2e7842 100644
65+
--- a/gcc/toplev.cc
66+
+++ b/gcc/toplev.cc
67+
@@ -2354,7 +2354,9 @@ toplev::main (int argc, char **argv)
68+
69+
handle_common_deferred_options ();
70+
71+
+#ifdef HAVE_AF_UNIX
72+
diagnostics::maybe_open_sarif_sink_for_socket (*global_dc);
73+
+#endif
74+
75+
init_local_tick ();
76+

0 commit comments

Comments
 (0)