[Bug c/118403] uninitialized warning with automatic union

2025-01-23 Thread stephen at networkplumber dot org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118403 --- Comment #16 from Stephen Hemminger --- (In reply to Sam James from comment #15) > (In reply to Stephen Hemminger from comment #14) > > (In reply to Sam James from comment #13) > > > (In reply to Stephen Hemminger from comment #12) > > > > >

[Bug c/118403] uninitialized warning with automatic union

2025-01-22 Thread stephen at networkplumber dot org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118403 --- Comment #14 from Stephen Hemminger --- (In reply to Sam James from comment #13) > (In reply to Stephen Hemminger from comment #12) > > What does `gcc --version` give? $ gcc-15 --version gcc-15 (GCC) 15.0.0 2024 (experimental)

[Bug c/118403] uninitialized warning with automatic union

2025-01-21 Thread stephen at networkplumber dot org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118403 --- Comment #12 from Stephen Hemminger --- I tried to use the documented flag $ gcc-15 -fzero-init-padding-bits=all gcc-15: error: unrecognized command-line option ‘-fzero-init-padding-bits=all’ gcc-15: fatal error: no input files compilation t

[Bug c/118403] uninitialized warning with automatic union

2025-01-13 Thread stephen at networkplumber dot org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118403 --- Comment #11 from Stephen Hemminger --- (In reply to Jakub Jelinek from comment #9) > If this is in Linux kernel, I've told the kernel people they should use > -fzero-init-padding-bits=unions because they rely on it for security reasons > and

[Bug c/118403] uninitialized warning with automatic union

2025-01-13 Thread stephen at networkplumber dot org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118403 --- Comment #8 from Stephen Hemminger --- Created attachment 60139 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=60139&action=edit pre-processed source gcc-15 -Idrivers/net/thunderx/base -I../drivers/net/thunderx/base -Ilib/ethdev -I../l

[Bug c/118403] uninitialized warning with automatic union

2025-01-10 Thread stephen at networkplumber dot org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118403 --- Comment #5 from Stephen Hemminger --- (In reply to Andrew Pinski from comment #2) > (In reply to Andrew Pinski from comment #1) > > Using `{}` is the correct fix. The referenced part of the C standard here is > > applying to struct and not u

[Bug c/118403] uninitialized warning with automatic union

2025-01-10 Thread stephen at networkplumber dot org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118403 --- Comment #4 from Stephen Hemminger --- Agree that empty initializer is best for this driver. But other information here. The compile flags for this driver have disabled the warning. cflags += '-Wno-maybe-uninitialized'

[Bug c/118403] New: uninitialized warning with automatic union

2025-01-10 Thread stephen at networkplumber dot org via Gcc-bugs
Assignee: unassigned at gcc dot gnu.org Reporter: stephen at networkplumber dot org Target Milestone: --- Building DPDK project with GCC 15 gets a new warning in one of the drivers. Which does not occur with GCC 14. In function ‘nicvf_mbox_send_msg_to_pf_raw’, inlined from

[Bug analyzer/94350] internal compiler error: in make_region_for_unexpected_tree_code, at analyzer/region-model.cc:4874

2020-03-27 Thread stephen at networkplumber dot org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94350 --- Comment #7 from Stephen Hemminger --- Verbose make output shows compiler flags gcc -Wp,-MD,./.eal_memalloc.o.d.tmp -m64 -pthread -I/home/shemminger/DPDK/upstream/lib/librte_eal/linux/eal/include -march=native -DRTE_MACHINE_CPUFLAG_SSE -DRT

[Bug analyzer/94350] internal compiler error: in make_region_for_unexpected_tree_code, at analyzer/region-model.cc:4874

2020-03-27 Thread stephen at networkplumber dot org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94350 --- Comment #6 from Stephen Hemminger --- $ gcc --version gcc (GCC) 10.0.1 20200311 (Red Hat 10.0.1-0.9)

[Bug analyzer/94350] internal compiler error: in make_region_for_unexpected_tree_code, at analyzer/region-model.cc:4874

2020-03-27 Thread stephen at networkplumber dot org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94350 --- Comment #5 from Stephen Hemminger --- Created attachment 48132 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=48132&action=edit Preprocessed version of source code

[Bug analyzer/94350] internal compiler error: in make_region_for_unexpected_tree_code, at analyzer/region-model.cc:4874

2020-03-26 Thread stephen at networkplumber dot org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94350 --- Comment #4 from Stephen Hemminger --- X86 On Thu, Mar 26, 2020, 5:38 PM pinskia at gcc dot gnu.org < gcc-bugzi...@gcc.gnu.org> wrote: > https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94350 > > --- Comment #2 from Andrew Pinski --- > Also whi

[Bug c/94350] New: internal compiler error: in make_region_for_unexpected_tree_code, at analyzer/region-model.cc:4874

2020-03-26 Thread stephen at networkplumber dot org
Status: UNCONFIRMED Severity: normal Priority: P3 Component: c Assignee: unassigned at gcc dot gnu.org Reporter: stephen at networkplumber dot org Target Milestone: --- Compiling the DPDK project git://dpdk.org/dpdk fails with internal compiler