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)
> > >
> >
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118403
--- Comment #15 from Sam James ---
(In reply to Stephen Hemminger from comment #14)
> (In reply to Sam James from comment #13)
> > (In reply to Stephen Hemminger from comment #12)
> >
> > What does `gcc --version` give?
>
> $ gcc-15 --version
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)
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118403
--- Comment #13 from Sam James ---
(In reply to Stephen Hemminger from comment #12)
What does `gcc --version` give?
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
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
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118403
--- Comment #10 from Jakub Jelinek ---
(In reply to Stephen Hemminger from comment #0)
> My understanding is that both should be equivalent.
> Reference C99 Standard 6.7.8.21:
>
> If there are fewer initializers in a brace-enclosed li
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118403
Jakub Jelinek changed:
What|Removed |Added
CC||jakub at gcc dot gnu.org
--- Comment #9
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
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118403
Sam James changed:
What|Removed |Added
CC||sjames at gcc dot gnu.org
--- Comment #7 fr
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118403
Xi Ruoyao changed:
What|Removed |Added
CC||xry111 at gcc dot gnu.org
--- Comment #6 fr
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
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'
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118403
--- Comment #3 from Andrew Pinski ---
Also this semantic change was done on purpose, see
https://gcc.gnu.org/git/?p=gcc.git;a=commitdiff;h=0547dbb725b6d8e878a79e28a2e171eafcfbc1aa
.
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118403
Andrew Pinski changed:
What|Removed |Added
Last reconfirmed||2025-01-10
Status|UNCONFIRM
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118403
--- Comment #1 from Andrew Pinski ---
Using `{}` is the correct fix. The referenced part of the C standard here is
applying to struct and not unions.
16 matches
Mail list logo