-
Notifications
You must be signed in to change notification settings - Fork 53
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
GCC 13.2 warns about -Wmaybe-uninitialized when compiling with -Ofast #185
Comments
Dupe of #167 I believe, which is resolved on the development branch. So, closing... |
You are right, actually. I've run the command-line you've provided. Interestingly, one gets the error with gcc-13 (13.3.0); but with gcc-14 (14.2.0) there is no warning! Also, I now notice that it's a different line than the one I added the fix for in #167. So, not a dupe, but still already resolved on development. |
Hmm, maybe I misunderstood the bug process, I thought that bugs fixed on development (but are valid on master) were kept open, but with the added label "resolved-on-develop" ? |
Well, you didn't misunderstand, but since it's a compiler bug, I don't think it makes sense to keep this open. But I'm kind of wishy-washy, so let's say it's open-and-resolved-on-dev |
First of all, this is not reproducible on the
develop
branch as of writing this.How to reproduce (on the current master):
$ git clone https://github.com/eyalroz/printf.git $ cd printf/ $ gcc -c -o /dev/null -Wall -Isrc src/printf/printf.c -Ofast
Yielding the output:
I've only seen this on GCC 13.2 (no warning on 9, 11, nor 12), compiling for/on x86-64.
If one doesn't need support for the specifiers
%[egEG]
, the easiest way to work around it is to add-DPRINTF_SUPPORT_EXPONENTIAL_SPECIFIERS=0
when compiling.The text was updated successfully, but these errors were encountered: