Skip to content

Commit 5eb4493

Browse files
committed
Update CI
This updates us from ubuntu-22.04 to ubuntu-24.04, removes some dead code, and ensures we compile without network access in more places. Note that the binary we're using for GCC 5.4 appears to require ubuntu-22.04 and that this leaves updating the bootstrap CI for another time. ChangeLog: * .github/glibcxx_ubuntu64b_log_expected_warnings: Adjust expected warnings. * .github/log_expected_warnings: Likewise. * .github/workflows/ccpp32alpine.yml: Update from ubuntu-22.04 to ubuntu-24.04 and remove ACTIONS_ALLOW_USE_UNSECURE_NODE_VERSION. * .github/workflows/ccpp.yml: Likewise, compile without network access in more places, and remove commented-out warnings check in asan builder. Signed-off-by: Owen Avery <[email protected]>
1 parent 6ff5c9a commit 5eb4493

File tree

4 files changed

+87
-41
lines changed

4 files changed

+87
-41
lines changed

.github/glibcxx_ubuntu64b_log_expected_warnings

Lines changed: 30 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,6 @@
164164
../../gcc/gimple-ssa-warn-access.cc:3023:22: warning: too many arguments for format [-Wformat-extra-args]
165165
../../gcc/gimple-ssa-warn-access.cc:3023:41: warning: unknown conversion type character ‘e’ in format [-Wformat=]
166166
../../gcc/ipa-devirt.cc:967:10: warning: format not a string literal and no format arguments [-Wformat-security]
167-
../../gcc/lto-ltrans-cache.cc:164:13: warning: ‘checksum’ may be used uninitialized [-Wmaybe-uninitialized]
168167
../../gcc/lto-wrapper.cc:2026:23: warning: format not a string literal and no format arguments [-Wformat-security]
169168
../../gcc/opts-diagnostic.cc:173:10: warning: too many arguments for format [-Wformat-extra-args]
170169
../../gcc/opts-diagnostic.cc:173:10: warning: too many arguments for format [-Wformat-extra-args]
@@ -174,6 +173,7 @@
174173
../../gcc/opts-diagnostic.cc:255:53: warning: unknown conversion type character ‘e’ in format [-Wformat=]
175174
../../gcc/opts-diagnostic.cc:357:26: warning: too many arguments for format [-Wformat-extra-args]
176175
../../gcc/opts-diagnostic.cc:358:69: warning: unknown conversion type character ‘e’ in format [-Wformat=]
176+
../../gcc/opts.cc:1747:26: warning: ‘ ’ directive output may be truncated writing 2 bytes into a region of size between 1 and 256 [-Wformat-truncation=]
177177
../../gcc/pretty-print.cc:3557:19: warning: too many arguments for format [-Wformat-extra-args]
178178
../../gcc/pretty-print.cc:3557:28: warning: unknown conversion type character ‘e’ in format [-Wformat=]
179179
../../gcc/pretty-print.cc:3557:38: warning: unknown conversion type character ‘e’ in format [-Wformat=]
@@ -196,10 +196,37 @@
196196
../../libcpp/macro.cc:214:34: warning: format not a string literal and no format arguments [-Wformat-security]
197197
../../libcpp/macro.cc:3811:25: warning: format not a string literal and no format arguments [-Wformat-security]
198198
../../libcpp/macro.cc:3826:25: warning: format not a string literal and no format arguments [-Wformat-security]
199-
/home/runner/work/gccrs/gccrs/gccrs-build/x86_64-pc-linux-gnu/32/libssp/../../../../libssp/gets-chk.c:73: warning: the `gets' function is dangerous and should not be used.
200-
/home/runner/work/gccrs/gccrs/gccrs-build/x86_64-pc-linux-gnu/libssp/../../../libssp/gets-chk.c:73: warning: the `gets' function is dangerous and should not be used.
199+
/home/runner/work/gccrs/gccrs/gccrs-build/x86_64-pc-linux-gnu/32/libssp/../../../../libssp/gets-chk.c:73:(.text+0x127): warning: the `gets' function is dangerous and should not be used.
200+
/home/runner/work/gccrs/gccrs/gccrs-build/x86_64-pc-linux-gnu/libssp/../../../libssp/gets-chk.c:73:(.text+0x11c): warning: the `gets' function is dangerous and should not be used.
201+
avr-mmcu.texi:15: warning: @anchor should not appear on @item line
202+
avr-mmcu.texi:19: warning: @anchor should not appear on @item line
203+
avr-mmcu.texi:23: warning: @anchor should not appear on @item line
204+
avr-mmcu.texi:27: warning: @anchor should not appear on @item line
205+
avr-mmcu.texi:31: warning: @anchor should not appear on @item line
206+
avr-mmcu.texi:35: warning: @anchor should not appear on @item line
207+
avr-mmcu.texi:39: warning: @anchor should not appear on @item line
208+
avr-mmcu.texi:43: warning: @anchor should not appear on @item line
209+
avr-mmcu.texi:47: warning: @anchor should not appear on @item line
210+
avr-mmcu.texi:51: warning: @anchor should not appear on @item line
211+
avr-mmcu.texi:55: warning: @anchor should not appear on @item line
212+
avr-mmcu.texi:59: warning: @anchor should not appear on @item line
213+
avr-mmcu.texi:63: warning: @anchor should not appear on @item line
214+
avr-mmcu.texi:67: warning: @anchor should not appear on @item line
215+
avr-mmcu.texi:71: warning: @anchor should not appear on @item line
216+
avr-mmcu.texi:75: warning: @anchor should not appear on @item line
217+
avr-mmcu.texi:79: warning: @anchor should not appear on @item line
201218
gengtype-lex.cc:357:15: warning: this statement may fall through [-Wimplicit-fallthrough=]
202219
gengtype-lex.cc:357:15: warning: this statement may fall through [-Wimplicit-fallthrough=]
203220
gengtype-lex.cc:357:15: warning: this statement may fall through [-Wimplicit-fallthrough=]
204221
gengtype-lex.cc:357:15: warning: this statement may fall through [-Wimplicit-fallthrough=]
222+
install.texi:1179: warning: @anchor should not appear on @item line
223+
install.texi:1199: warning: @anchor should not appear on @item line
224+
install.texi:1234: warning: @anchor should not appear on @item line
225+
install.texi:1325: warning: @anchor should not appear on @item line
226+
install.texi:1982: warning: @anchor should not appear on @item line
227+
install.texi:265: warning: @anchor should not appear on @item line
228+
install.texi:295: warning: @anchor should not appear on @item line
229+
install.texi:322: warning: @anchor should not appear on @item line
230+
install.texi:346: warning: @anchor should not appear on @item line
231+
install.texi:353: warning: @anchor should not appear on @item line
205232
libtool: install: warning: remember to run `libtool --finish /usr/local/libexec/gcc/x86_64-pc-linux-gnu/16.0.0'

.github/log_expected_warnings

Lines changed: 34 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,6 @@
6969
../../../libcpp/expr.cc:908:42: warning: format not a string literal and no format arguments [-Wformat-security]
7070
../../../libcpp/expr.cc:911:39: warning: format not a string literal and no format arguments [-Wformat-security]
7171
../../../libcpp/expr.cc:918:40: warning: format not a string literal and no format arguments [-Wformat-security]
72-
../../../libcpp/lex.cc:2134:39: warning: ‘loc’ may be used uninitialized [-Wmaybe-uninitialized]
7372
../../../libcpp/macro.cc:185:26: warning: format not a string literal and no format arguments [-Wformat-security]
7473
../../../libcpp/macro.cc:214:34: warning: format not a string literal and no format arguments [-Wformat-security]
7574
../../../libcpp/macro.cc:3811:25: warning: format not a string literal and no format arguments [-Wformat-security]
@@ -144,7 +143,7 @@
144143
../../gcc/diagnostic-path-output.cc:1349:23: warning: too many arguments for format [-Wformat-extra-args]
145144
../../gcc/diagnostic-path-output.cc:1349:28: warning: unknown conversion type character ‘e’ in format [-Wformat=]
146145
../../gcc/diagnostic.cc:1783:15: warning: format not a string literal and no format arguments [-Wformat-security]
147-
../../gcc/expmed.cc:1864:45: warning: ‘*(unsigned int*)((char*)&imode + offsetof(scalar_int_mode, scalar_int_mode::m_mode))’ may be used uninitialized in this function [-Wmaybe-uninitialized]
146+
../../gcc/expmed.cc:1864:45: warning: ‘*(unsigned int*)((char*)&imode + offsetof(scalar_int_mode, scalar_int_mode::m_mode))’ may be used uninitialized [-Wmaybe-uninitialized]
148147
../../gcc/fold-const.cc:383:13: warning: format not a string literal and no format arguments [-Wformat-security]
149148
../../gcc/gcc.cc:10812:12: warning: ignoring return value of ‘ssize_t read(int, void*, size_t)’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
150149
../../gcc/gcc.cc:2423:30: warning: too many arguments for format [-Wformat-extra-args]
@@ -174,7 +173,6 @@
174173
../../gcc/genhooks.cc:121:14: warning: ignoring return value of ‘int fscanf(FILE*, const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
175174
../../gcc/genhooks.cc:174:14: warning: ignoring return value of ‘int fscanf(FILE*, const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
176175
../../gcc/genhooks.cc:180:14: warning: ignoring return value of ‘int fscanf(FILE*, const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
177-
../../gcc/gimple-fold.cc:7674:20: warning: ‘xor_cmp_op’ may be used uninitialized in this function [-Wmaybe-uninitialized]
178176
../../gcc/gimple-range-gori.cc:318:19: warning: format not a string literal and no format arguments [-Wformat-security]
179177
../../gcc/gimple-ssa-warn-access.cc:2972:20: warning: too many arguments for format [-Wformat-extra-args]
180178
../../gcc/gimple-ssa-warn-access.cc:2972:39: warning: unknown conversion type character ‘e’ in format [-Wformat=]
@@ -206,25 +204,51 @@
206204
../../gcc/text-art/table.cc:979:62: warning: unquoted keyword ‘char’ in format [-Wformat-diag]
207205
../../gcc/text-art/table.cc:979:69: warning: spurious trailing punctuation sequence ‘])’ in format [-Wformat-diag]
208206
../../gcc/tree-ssa-sccvn.cc:286:21: warning: format not a string literal and no format arguments [-Wformat-security]
209-
../../gcc/tree-vect-stmts.cc:10893:47: warning: ‘stride_step’ may be used uninitialized in this function [-Wmaybe-uninitialized]
210-
../../gcc/tree.h:3857:41: warning: ‘append_args_last’ may be used uninitialized in this function [-Wmaybe-uninitialized]
211-
../../gcc/vec.h:347:10: warning: ‘void free(void*)’ called on unallocated object ‘tombstone_uids’ [-Wfree-nonheap-object]
212-
../../gcc/vec.h:347:10: warning: ‘void free(void*)’ called on unallocated object ‘unique_labels’ [-Wfree-nonheap-object]
213207
../../libcpp/expr.cc:882:35: warning: format not a string literal and no format arguments [-Wformat-security]
214208
../../libcpp/expr.cc:885:38: warning: format not a string literal and no format arguments [-Wformat-security]
215209
../../libcpp/expr.cc:896:33: warning: format not a string literal and no format arguments [-Wformat-security]
216210
../../libcpp/expr.cc:908:42: warning: format not a string literal and no format arguments [-Wformat-security]
217211
../../libcpp/expr.cc:911:39: warning: format not a string literal and no format arguments [-Wformat-security]
218212
../../libcpp/expr.cc:918:40: warning: format not a string literal and no format arguments [-Wformat-security]
219-
../../libcpp/lex.cc:2134:39: warning: ‘loc’ may be used uninitialized [-Wmaybe-uninitialized]
220213
../../libcpp/macro.cc:185:26: warning: format not a string literal and no format arguments [-Wformat-security]
221214
../../libcpp/macro.cc:214:34: warning: format not a string literal and no format arguments [-Wformat-security]
222215
../../libcpp/macro.cc:3811:25: warning: format not a string literal and no format arguments [-Wformat-security]
223216
../../libcpp/macro.cc:3826:25: warning: format not a string literal and no format arguments [-Wformat-security]
224-
/home/runner/work/gccrs/gccrs/gccrs-build/x86_64-pc-linux-gnu/32/libssp/../../../../libssp/gets-chk.c:73: warning: the `gets' function is dangerous and should not be used.
225-
/home/runner/work/gccrs/gccrs/gccrs-build/x86_64-pc-linux-gnu/libssp/../../../libssp/gets-chk.c:73: warning: the `gets' function is dangerous and should not be used.
217+
/home/runner/work/gccrs/gccrs/gccrs-build/x86_64-pc-linux-gnu/32/libssp/../../../../libssp/gets-chk.c:73:(.text+0x127): warning: the `gets' function is dangerous and should not be used.
218+
/home/runner/work/gccrs/gccrs/gccrs-build/x86_64-pc-linux-gnu/libssp/../../../libssp/gets-chk.c:73:(.text+0x11c): warning: the `gets' function is dangerous and should not be used.
219+
/usr/include/c++/13/bits/new_allocator.h:172:33: warning: ‘*(std::_Vector_base<Rust::FreeRegion, std::allocator<Rust::FreeRegion> >*)((char*)&saved + offsetof(Rust::BIR::PatternBindingBuilder::SavedState, Rust::BIR::PatternBindingBuilder::SavedState::regions.tl::optional<Rust::FreeRegions>::<unnamed>.tl::detail::optional_move_assign_base<Rust::FreeRegions, false>::<unnamed>.tl::detail::optional_copy_assign_base<Rust::FreeRegions, false>::<unnamed>.tl::detail::optional_move_base<Rust::FreeRegions, false>::<unnamed>.tl::detail::optional_copy_base<Rust::FreeRegions, false>::<unnamed>.tl::detail::optional_operations_base<Rust::FreeRegions>::<unnamed>.tl::detail::optional_storage_base<Rust::FreeRegions, false>::<unnamed>)).std::_Vector_base<Rust::FreeRegion, std::allocator<Rust::FreeRegion> >::_M_impl.std::_Vector_base<Rust::FreeRegion, std::allocator<Rust::FreeRegion> >::_Vector_impl::<anonymous>.std::_Vector_base<Rust::FreeRegion, std::allocator<Rust::FreeRegion> >::_Vector_impl_data::_M_start’ may be used uninitialized [-Wmaybe-uninitialized]
220+
/usr/include/c++/13/bits/stl_vector.h:370:49: warning: ‘*(std::_Vector_base<Rust::FreeRegion, std::allocator<Rust::FreeRegion> >*)((char*)&saved + offsetof(Rust::BIR::PatternBindingBuilder::SavedState, Rust::BIR::PatternBindingBuilder::SavedState::regions.tl::optional<Rust::FreeRegions>::<unnamed>.tl::detail::optional_move_assign_base<Rust::FreeRegions, false>::<unnamed>.tl::detail::optional_copy_assign_base<Rust::FreeRegions, false>::<unnamed>.tl::detail::optional_move_base<Rust::FreeRegions, false>::<unnamed>.tl::detail::optional_copy_base<Rust::FreeRegions, false>::<unnamed>.tl::detail::optional_operations_base<Rust::FreeRegions>::<unnamed>.tl::detail::optional_storage_base<Rust::FreeRegions, false>::<unnamed>)).std::_Vector_base<Rust::FreeRegion, std::allocator<Rust::FreeRegion> >::_M_impl.std::_Vector_base<Rust::FreeRegion, std::allocator<Rust::FreeRegion> >::_Vector_impl::<anonymous>.std::_Vector_base<Rust::FreeRegion, std::allocator<Rust::FreeRegion> >::_Vector_impl_data::_M_end_of_storage’ may be used uninitialized [-Wmaybe-uninitialized]
221+
/usr/include/c++/13/bits/stl_vector.h:370:49: warning: ‘*(std::_Vector_base<Rust::FreeRegion, std::allocator<Rust::FreeRegion> >*)((char*)&saved + offsetof(Rust::BIR::PatternBindingBuilder::SavedState, Rust::BIR::PatternBindingBuilder::SavedState::regions.tl::optional<Rust::FreeRegions>::<unnamed>.tl::detail::optional_move_assign_base<Rust::FreeRegions, false>::<unnamed>.tl::detail::optional_copy_assign_base<Rust::FreeRegions, false>::<unnamed>.tl::detail::optional_move_base<Rust::FreeRegions, false>::<unnamed>.tl::detail::optional_copy_base<Rust::FreeRegions, false>::<unnamed>.tl::detail::optional_operations_base<Rust::FreeRegions>::<unnamed>.tl::detail::optional_storage_base<Rust::FreeRegions, false>::<unnamed>)).std::_Vector_base<Rust::FreeRegion, std::allocator<Rust::FreeRegion> >::_M_impl.std::_Vector_base<Rust::FreeRegion, std::allocator<Rust::FreeRegion> >::_Vector_impl::<anonymous>.std::_Vector_base<Rust::FreeRegion, std::allocator<Rust::FreeRegion> >::_Vector_impl_data::_M_end_of_storage’ may be used uninitialized [-Wmaybe-uninitialized]
222+
/usr/include/c++/13/bits/stl_vector.h:370:49: warning: ‘*(std::_Vector_base<Rust::FreeRegion, std::allocator<Rust::FreeRegion> >*)((char*)&saved + offsetof(Rust::BIR::PatternBindingBuilder::SavedState, Rust::BIR::PatternBindingBuilder::SavedState::regions.tl::optional<Rust::FreeRegions>::<unnamed>.tl::detail::optional_move_assign_base<Rust::FreeRegions, false>::<unnamed>.tl::detail::optional_copy_assign_base<Rust::FreeRegions, false>::<unnamed>.tl::detail::optional_move_base<Rust::FreeRegions, false>::<unnamed>.tl::detail::optional_copy_base<Rust::FreeRegions, false>::<unnamed>.tl::detail::optional_operations_base<Rust::FreeRegions>::<unnamed>.tl::detail::optional_storage_base<Rust::FreeRegions, false>::<unnamed>)).std::_Vector_base<Rust::FreeRegion, std::allocator<Rust::FreeRegion> >::_M_impl.std::_Vector_base<Rust::FreeRegion, std::allocator<Rust::FreeRegion> >::_Vector_impl::<anonymous>.std::_Vector_base<Rust::FreeRegion, std::allocator<Rust::FreeRegion> >::_Vector_impl_data::_M_start’ may be used uninitialized [-Wmaybe-uninitialized]
223+
avr-mmcu.texi:15: warning: @anchor should not appear on @item line
224+
avr-mmcu.texi:19: warning: @anchor should not appear on @item line
225+
avr-mmcu.texi:23: warning: @anchor should not appear on @item line
226+
avr-mmcu.texi:27: warning: @anchor should not appear on @item line
227+
avr-mmcu.texi:31: warning: @anchor should not appear on @item line
228+
avr-mmcu.texi:35: warning: @anchor should not appear on @item line
229+
avr-mmcu.texi:39: warning: @anchor should not appear on @item line
230+
avr-mmcu.texi:43: warning: @anchor should not appear on @item line
231+
avr-mmcu.texi:47: warning: @anchor should not appear on @item line
232+
avr-mmcu.texi:51: warning: @anchor should not appear on @item line
233+
avr-mmcu.texi:55: warning: @anchor should not appear on @item line
234+
avr-mmcu.texi:59: warning: @anchor should not appear on @item line
235+
avr-mmcu.texi:63: warning: @anchor should not appear on @item line
236+
avr-mmcu.texi:67: warning: @anchor should not appear on @item line
237+
avr-mmcu.texi:71: warning: @anchor should not appear on @item line
238+
avr-mmcu.texi:75: warning: @anchor should not appear on @item line
239+
avr-mmcu.texi:79: warning: @anchor should not appear on @item line
226240
gengtype-lex.cc:357:15: warning: this statement may fall through [-Wimplicit-fallthrough=]
227241
gengtype-lex.cc:357:15: warning: this statement may fall through [-Wimplicit-fallthrough=]
228242
gengtype-lex.cc:357:15: warning: this statement may fall through [-Wimplicit-fallthrough=]
229243
gengtype-lex.cc:357:15: warning: this statement may fall through [-Wimplicit-fallthrough=]
244+
install.texi:1179: warning: @anchor should not appear on @item line
245+
install.texi:1199: warning: @anchor should not appear on @item line
246+
install.texi:1234: warning: @anchor should not appear on @item line
247+
install.texi:1325: warning: @anchor should not appear on @item line
248+
install.texi:1982: warning: @anchor should not appear on @item line
249+
install.texi:265: warning: @anchor should not appear on @item line
250+
install.texi:295: warning: @anchor should not appear on @item line
251+
install.texi:322: warning: @anchor should not appear on @item line
252+
install.texi:346: warning: @anchor should not appear on @item line
253+
install.texi:353: warning: @anchor should not appear on @item line
230254
libtool: install: warning: remember to run `libtool --finish /usr/local/libexec/gcc/x86_64-pc-linux-gnu/16.0.0'

0 commit comments

Comments
 (0)