[Bug middle-end/54848] -ftrapv doesn't work when assigning to an integer with smaller size

2024-05-19 Thread bruno at clisp dot org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=54848 Bruno Haible changed: What|Removed |Added CC||bruno at clisp dot org --- Comment #2

[Bug analyzer/114920] New: null_terminated_string_arg attribute does not warn for non-nul-terminated strings

2024-05-02 Thread bruno at clisp dot org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114920 Bug ID: 114920 Summary: null_terminated_string_arg attribute does not warn for non-nul-terminated strings Product: gcc Version: 14.0 Status: UNCONFIRMED

[Bug tree-optimization/114876] [11/12/13/14 Regression] -fprintf-return-value mishandles %lc with a '\0' argument.

2024-04-29 Thread bruno at clisp dot org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114876 --- Comment #4 from Bruno Haible --- (In reply to Jakub Jelinek from comment #3) > Given that there are or at least were implementations which > emitted no characters Yes, musl libc emits/emitted 0 characters in this case.

[Bug tree-optimization/114876] -fprintf-return-value mishandles %lc with a '\0' argument.

2024-04-28 Thread bruno at clisp dot org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114876 Bruno Haible changed: What|Removed |Added CC||bruno at clisp dot org --- Comment #1

[Bug middle-end/111655] [11/12/13/14 Regression] wrong code generated for __builtin_signbit and 0./0. on x86-64 -O2

2024-04-19 Thread bruno at clisp dot org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111655 Bruno Haible changed: What|Removed |Added CC||bruno at clisp dot org --- Comment #16

[Bug target/114659] gcc miscompiles a __builtin_memcpy on i386, leading to wrong results for SNaN

2024-04-09 Thread bruno at clisp dot org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114659 --- Comment #9 from Bruno Haible --- (In reply to Andrew Pinski from comment #7) > Much more related to PR 56831 and PR 57484 rather than the other two ... Well, bug #56831 is more about function calls and the ABI, whereas this bug here and

[Bug target/114659] gcc miscompiles a __builtin_memcpy on i386, leading to wrong results for SNaN

2024-04-09 Thread bruno at clisp dot org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114659 --- Comment #8 from Bruno Haible --- (In reply to Andrew Pinski from comment #6) > I doubt there is not much to be done here. I see it as an incorrect modelization of the x87 hardware, together with a missing distinction in the common

[Bug c/114659] gcc miscompiles a __builtin_memcpy on i386, leading to wrong results for SNaN

2024-04-09 Thread bruno at clisp dot org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114659 --- Comment #5 from Bruno Haible --- Related: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93271

[Bug c/114659] gcc miscompiles a __builtin_memcpy on i386, leading to wrong results for SNaN

2024-04-09 Thread bruno at clisp dot org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114659 --- Comment #4 from Bruno Haible --- Related: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=58416

[Bug c/114659] gcc miscompiles a __builtin_memcpy on i386, leading to wrong results for SNaN

2024-04-09 Thread bruno at clisp dot org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114659 --- Comment #3 from Bruno Haible --- Also reproducible in 64-bit mode, with '-mfpmath=387': $ gcc -mfpmath=387 -Wall tf.c $ ./a.out ; echo $? 0 $ gcc -mfpmath=387 -Wall -O2 tf.c $ ./a.out ; echo $? 1 $ gcc -mfpmath=387 -Wall td.c $ ./a.out ;

[Bug c/114659] gcc miscompiles a __builtin_memcpy on i386, leading to wrong results for SNaN

2024-04-09 Thread bruno at clisp dot org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114659 Bruno Haible changed: What|Removed |Added Build||x86_64-linux-gnu Host|

[Bug c/114659] gcc miscompiles a __builtin_memcpy on i386, leading to wrong results for SNaN

2024-04-09 Thread bruno at clisp dot org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114659 --- Comment #1 from Bruno Haible --- Created attachment 57913 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=57913=edit test case td.c

[Bug c/114659] New: gcc miscompiles a __builtin_memcpy on i386, leading to wrong results for SNaN

2024-04-09 Thread bruno at clisp dot org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114659 Bug ID: 114659 Summary: gcc miscompiles a __builtin_memcpy on i386, leading to wrong results for SNaN Product: gcc Version: 13.2.0 Status: UNCONFIRMED

[Bug libgcc/114646] libgcc's gthr.h still defines GTHREAD_USE_WEAK to 1 for newer glibc

2024-04-08 Thread bruno at clisp dot org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114646 Bruno Haible changed: What|Removed |Added CC||bruno at clisp dot org --- Comment #11

[Bug libgcc/87189] libgcc/gthr-posix.h (__gthread_active_p) makes unwarranted assumptions about libpthread.a

2024-04-08 Thread bruno at clisp dot org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87189 --- Comment #10 from Bruno Haible --- It is fixed in - glibc 2.35 + gcc 11.4 (verified on Ubuntu 22.04), - glibc 2.39 + gcc 13.2.1 (verified on Arch Linux 2024.04).

[Bug analyzer/111289] [13 Regression] Unwarranted -Wanalyzer-va-arg-type-mismatch warning

2024-03-24 Thread bruno at clisp dot org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111289 --- Comment #6 from Bruno Haible --- (In reply to John David Anglin from comment #5) > Don't include on hpux to avoid conflicting type declarations > for mode_t. This fixes test on houx. Why not entirely remove the '#include '? There is

[Bug rust/113553] rust fails to build on sparc64-linux-gnu

2024-02-02 Thread bruno at clisp dot org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113553 Bruno Haible changed: What|Removed |Added CC||bruno at clisp dot org --- Comment #12

[Bug other/112836] gcc fails when job control is used

2024-02-01 Thread bruno at clisp dot org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112836 --- Comment #5 from Bruno Haible --- (In reply to John Paul Adrian Glaubitz from comment #4) > I tried this patch but it does not address the issue with posix_spawn that I > am seeing. > > Trying to build gcc from git on Linux sparc64 with

[Bug other/111288] formatting mistake in HTML documentation

2023-12-04 Thread bruno at clisp dot org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111288 Bruno Haible changed: What|Removed |Added Resolution|--- |FIXED Status|NEW

[Bug driver/112836] gcc fails when job control is used

2023-12-03 Thread bruno at clisp dot org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112836 --- Comment #1 from Bruno Haible --- Created attachment 56779 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=56779=edit proposed fix Although the error is not easily reproducible, it is easy to analyze and fix: The piece of error

[Bug driver/112836] New: gcc fails when job control is used

2023-12-03 Thread bruno at clisp dot org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112836 Bug ID: 112836 Summary: gcc fails when job control is used Product: gcc Version: 13.2.1 Status: UNCONFIRMED Severity: normal Priority: P3 Component: driver

[Bug sanitizer/112708] "gcc -fsanitize=address" produces wrong debug info for variables in function prologue

2023-11-27 Thread bruno at clisp dot org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112708 --- Comment #10 from Bruno Haible --- (In reply to Jakub Jelinek from comment #9) > var-tracking is very compile time intensive, > so it would significantly slow down -O0 compilation. Indeed, these are the timings of "time make" that I observe

[Bug sanitizer/112708] "gcc -fsanitize=address" produces wrong debug info for variables in function prologue

2023-11-27 Thread bruno at clisp dot org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112708 --- Comment #8 from Bruno Haible --- (In reply to Richard Biener from comment #7) > It's -fvar-tracking, not -fvar-tracking-assignments. At -O0 debug info > during the prologue is unreliable without that. Then how about enabling

[Bug sanitizer/112708] "gcc -fsanitize=address" produces wrong debug info for variables in function prologue

2023-11-25 Thread bruno at clisp dot org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112708 --- Comment #6 from Bruno Haible --- For comparison, what clang 17 with -fsanitize=address does in this situation, is to not generate a stepping point at the function entry (xg-message.c:50). The gdb 'step' command brings me directly to the

[Bug sanitizer/112708] "gcc -fsanitize=address" produces wrong debug info for variables in function prologue

2023-11-24 Thread bruno at clisp dot org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112708 --- Comment #5 from Bruno Haible --- (In reply to Andrew Pinski from comment #3) > Also did you add -fvar-tracking-assignments ? No, I haven't. I have specified CFLAGS=-ggdb, indicating that - I don't care about the optimization level, -

[Bug sanitizer/112708] "gcc -fsanitize=address" produces wrong debug info for variables in function prologue

2023-11-24 Thread bruno at clisp dot org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112708 --- Comment #4 from Bruno Haible --- (In reply to Andrew Pinski from comment #1) > Is this with or without optimization? Since in step 5, I specified CFLAGS=-ggdb, it is without optimization. (configure sets CFLAGS="-O2 -g" only if CFLAGS is

[Bug sanitizer/112708] New: "gcc -fsanitize=address" produces wrong debug info for variables in function prologue

2023-11-24 Thread bruno at clisp dot org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112708 Bug ID: 112708 Summary: "gcc -fsanitize=address" produces wrong debug info for variables in function prologue Product: gcc Version: 13.2.0 Status: UNCONFIRMED

[Bug bootstrap/112534] [14 regression] build failure after r14-5424-gdb50aea6259545 using gcc 4.8.5

2023-11-14 Thread bruno at clisp dot org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112534 --- Comment #3 from Bruno Haible --- (In reply to Andrew Pinski from comment #1) > Hmm. similar issue happen with gdb 5 years ago: > https://lists.gnu.org/archive/html/bug-gnulib/2018-08/msg00151.html Thanks; this is helpful. In this thread we

[Bug bootstrap/112534] [14 regression] build failure after r14-5424-gdb50aea6259545 using gcc 4.8.5

2023-11-14 Thread bruno at clisp dot org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112534 Bruno Haible changed: What|Removed |Added CC||bruno at clisp dot org --- Comment #2

[Bug middle-end/112098] suboptimal optimization of inverted bit extraction

2023-10-26 Thread bruno at clisp dot org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112098 --- Comment #1 from Bruno Haible --- The code that gets executed inside gcc is maybe the one mentioned in https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109907#c2 .

[Bug middle-end/112098] New: suboptimal optimization of inverted bit extraction

2023-10-26 Thread bruno at clisp dot org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112098 Bug ID: 112098 Summary: suboptimal optimization of inverted bit extraction Product: gcc Version: 13.2.0 Status: UNCONFIRMED Severity: normal Priority: P3

[Bug middle-end/111904] Miscompilation with -O3 -fharden-control-flow-redundancy?

2023-10-22 Thread bruno at clisp dot org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111904 --- Comment #4 from Bruno Haible --- I've added your fix to gnulib: https://git.savannah.gnu.org/gitweb/?p=gnulib.git;a=commitdiff;h=f8ce7e779de156cb6d0fa51dbaef49cd255b7171 Thank you, Alexandre!

[Bug target/111814] on sh4, __builtin_nan* returns signalling NaNs instead of quiet NaNs and vice versa

2023-10-14 Thread bruno at clisp dot org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111814 --- Comment #2 from Bruno Haible --- Created attachment 56111 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=56111=edit test case for long double

[Bug target/111814] on sh4, __builtin_nan* returns signalling NaNs instead of quiet NaNs and vice versa

2023-10-14 Thread bruno at clisp dot org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111814 --- Comment #1 from Bruno Haible --- Created attachment 56110 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=56110=edit test case for double

[Bug target/111814] New: on sh4, __builtin_nan* returns signalling NaNs instead of quiet NaNs and vice versa

2023-10-14 Thread bruno at clisp dot org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111814 Bug ID: 111814 Summary: on sh4, __builtin_nan* returns signalling NaNs instead of quiet NaNs and vice versa Product: gcc Version: 11.4.0 Status: UNCONFIRMED

[Bug analyzer/111289] New: Unwarranted -Wanalyzer-va-arg-type-mismatch warning

2023-09-04 Thread bruno at clisp dot org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111289 Bug ID: 111289 Summary: Unwarranted -Wanalyzer-va-arg-type-mismatch warning Product: gcc Version: 13.2.0 Status: UNCONFIRMED Severity: normal Priority: P3

[Bug other/111288] formatting mistake in HTML documentation

2023-09-04 Thread bruno at clisp dot org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111288 --- Comment #4 from Bruno Haible --- My proposed patch is a correction to commit 2b4e0415ad664cdb3ce87d1f7eee5ca26911a05b by Jakub Jelinek. > patches should be posted to gcc-patches@ after reading > https://gcc.gnu.org/contribute.html I do

[Bug other/111288] formatting mistake in HTML documentation

2023-09-04 Thread bruno at clisp dot org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111288 --- Comment #2 from Bruno Haible --- Created attachment 55841 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=55841=edit Rendering after applying the fix

[Bug other/111288] formatting mistake in HTML documentation

2023-09-04 Thread bruno at clisp dot org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111288 --- Comment #1 from Bruno Haible --- Created attachment 55840 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=55840=edit Rendering before applying the fix

[Bug other/111288] New: formatting mistake in HTML documentation

2023-09-04 Thread bruno at clisp dot org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111288 Bug ID: 111288 Summary: formatting mistake in HTML documentation Product: gcc Version: 13.2.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component:

[Bug other/111287] New: doc: "strict ISO mode" definition is not up-to-date

2023-09-04 Thread bruno at clisp dot org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111287 Bug ID: 111287 Summary: doc: "strict ISO mode" definition is not up-to-date Product: gcc Version: 13.2.0 Status: UNCONFIRMED Severity: normal Priority: P3

[Bug libstdc++/110149] New: std::format for pointer arguments allows a '0' option

2023-06-06 Thread bruno at clisp dot org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110149 Bug ID: 110149 Summary: std::format for pointer arguments allows a '0' option Product: gcc Version: 13.1.0 Status: UNCONFIRMED Severity: normal Priority: P3

[Bug libstdc++/110143] std::format for pointer arguments does not work

2023-06-06 Thread bruno at clisp dot org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110143 --- Comment #4 from Bruno Haible --- (In reply to Jonathan Wakely from comment #2) > Those are the pointer specializations that are supported, and you can't use > them to format int* I see. If 'int*' was supported as a "pointer" here, 'char*'

[Bug libstdc++/110143] std::format for pointer arguments does not work

2023-06-06 Thread bruno at clisp dot org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110143 --- Comment #1 from Bruno Haible --- Created attachment 55273 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=55273=edit test case bug2.cc

[Bug libstdc++/110143] New: std::format for pointer arguments does not work

2023-06-06 Thread bruno at clisp dot org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110143 Bug ID: 110143 Summary: std::format for pointer arguments does not work Product: gcc Version: 13.1.0 Status: UNCONFIRMED Severity: normal Priority: P3

[Bug analyzer/110112] [11/12/13 Regression] gcc -fanalyzer takes an excessive amount of time

2023-06-04 Thread bruno at clisp dot org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110112 Bruno Haible changed: What|Removed |Added Host||x86_64-linux-gnu Known to fail|

[Bug analyzer/110112] New: [11/12/13 Regression] gcc -fanalyzer takes an excessive amount of time

2023-06-04 Thread bruno at clisp dot org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110112 Bug ID: 110112 Summary: [11/12/13 Regression] gcc -fanalyzer takes an excessive amount of time Product: gcc Version: 13.1.0 Status: UNCONFIRMED Severity:

[Bug ipa/109914] --suggest-attribute=pure misdiagnoses static functions

2023-05-28 Thread bruno at clisp dot org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109914 --- Comment #3 from Bruno Haible --- (In reply to Jan Hubicka from comment #2) > The reason why gcc warns is that it is unable to prove that the function is > always finite. This means that it can not auto-detect pure attribute since >

[Bug middle-end/109995] New: Bogus warning about __builtin_memset, from -Wstringop-overflow

2023-05-26 Thread bruno at clisp dot org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109995 Bug ID: 109995 Summary: Bogus warning about __builtin_memset, from -Wstringop-overflow Product: gcc Version: 13.1.0 Status: UNCONFIRMED Severity: normal

[Bug middle-end/109990] [12/13/14 Regression] Bogus -Wuse-after-free warning after realloc

2023-05-26 Thread bruno at clisp dot org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109990 --- Comment #5 from Bruno Haible --- Created attachment 55170 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=55170=edit test case bar2.c Find attached a modified test case. I changed the code to map[i].alias =

[Bug middle-end/109990] [12/13/14 Regression] Bogus -Wuse-after-free warning after realloc

2023-05-26 Thread bruno at clisp dot org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109990 --- Comment #4 from Bruno Haible --- > > > > char *new_pool = (char *) realloc (string_space, > > new_size); > > if (new_pool == ((void *)0)) > > goto out; > > if

[Bug middle-end/109990] New: [12 Regression] Bogus -Wuse-after-free warning after realloc

2023-05-26 Thread bruno at clisp dot org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109990 Bug ID: 109990 Summary: [12 Regression] Bogus -Wuse-after-free warning after realloc Product: gcc Version: 13.1.0 Status: UNCONFIRMED Severity: normal

[Bug ipa/109916] New: warning reported despite of "#pragma GCC diagnostic ignored", due to -flto

2023-05-20 Thread bruno at clisp dot org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109916 Bug ID: 109916 Summary: warning reported despite of "#pragma GCC diagnostic ignored", due to -flto Product: gcc Version: 13.1.0 Status: UNCONFIRMED Severity:

[Bug ipa/109915] New: --suggest-attribute=const misdiagnoses static functions

2023-05-20 Thread bruno at clisp dot org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109915 Bug ID: 109915 Summary: --suggest-attribute=const misdiagnoses static functions Product: gcc Version: 13.1.0 Status: UNCONFIRMED Severity: normal

[Bug ipa/109914] New: --suggest-attribute=pure misdiagnoses static functions

2023-05-20 Thread bruno at clisp dot org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109914 Bug ID: 109914 Summary: --suggest-attribute=pure misdiagnoses static functions Product: gcc Version: 13.1.0 Status: UNCONFIRMED Severity: normal Priority: P3

[Bug c/109155] New: A note is diagnosed, without any warning or error

2023-03-16 Thread bruno at clisp dot org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109155 Bug ID: 109155 Summary: A note is diagnosed, without any warning or error Product: gcc Version: 12.2.0 Status: UNCONFIRMED Severity: normal Priority: P3

[Bug c/108694] need a new warning option for preparing migration to ISO C 23

2023-02-07 Thread bruno at clisp dot org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108694 --- Comment #4 from Bruno Haible --- (In reply to Aaron Ballman from comment #3) OK. So, except for this unlucky (*) choice of attribution in case of a conflict between function declaration and function definition, the

[Bug c/108694] need a new warning option for preparing migration to ISO C 23

2023-02-07 Thread bruno at clisp dot org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108694 --- Comment #2 from Bruno Haible --- (In reply to Florian Weimer from comment #1) > “()” is going to be fine when matched with an empty parameter list in a > definition, or an empty argument list in a call. I don't think it's > necessary to

[Bug c/108694] New: need a new warning option for preparing migration to ISO C 23

2023-02-07 Thread bruno at clisp dot org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108694 Bug ID: 108694 Summary: need a new warning option for preparing migration to ISO C 23 Product: gcc Version: 12.2.0 Status: UNCONFIRMED Severity: normal

[Bug c++/108231] New: g++ mistakenly reports ambiguity between equivalent function declarations

2022-12-26 Thread bruno at clisp dot org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108231 Bug ID: 108231 Summary: g++ mistakenly reports ambiguity between equivalent function declarations Product: gcc Version: 12.2.0 Status: UNCONFIRMED Severity:

[Bug other/105527] configure option --with-zstd is not documented

2022-05-11 Thread bruno at clisp dot org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105527 --- Comment #3 from Bruno Haible --- Created attachment 52955 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=52955=edit Patch to document also --with-zstd-include and --with-zstd-lib Hi Martin, The patch you added is pretty minimal: it

[Bug other/105527] New: configure option --with-zstd is not documented

2022-05-08 Thread bruno at clisp dot org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105527 Bug ID: 105527 Summary: configure option --with-zstd is not documented Product: gcc Version: 12.1.0 Status: UNCONFIRMED Severity: normal Priority: P3

[Bug tree-optimization/101494] -Wmaybe-uninitialized false alarm with memrchr of size 0

2021-07-18 Thread bruno at clisp dot org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101494 Bruno Haible changed: What|Removed |Added CC||bruno at clisp dot org --- Comment #1

[Bug middle-end/30267] folding (~ -x) >= (-2147483647-1) to x != -2147483648

2021-06-08 Thread bruno at clisp dot org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=30267 Bruno Haible changed: What|Removed |Added Known to work||10.3.0, 11.1.0, 6.5.0,

[Bug other/100735] -fno-trampolines doc wrongly implies it affects C, C++ etc.

2021-05-24 Thread bruno at clisp dot org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100735 Bruno Haible changed: What|Removed |Added CC||bruno at clisp dot org --- Comment #1

[Bug target/51793] pragma GCC optimize wrapv leads to invalid code on Solaris

2021-04-28 Thread bruno at clisp dot org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=51793 --- Comment #4 from Bruno Haible --- Correction to comment #3: It works fine on - Solaris 11.4 (gcc 7.3.0): foo.s contains '.p2align 4,,15' - Solaris 11 OpenIndiana (gcc 7.2.0): likewise - Solaris 11 OmniOS (gcc 9.3.0): foo.s contains '.p2align

[Bug target/51793] pragma GCC optimize wrapv leads to invalid code on Solaris

2021-04-28 Thread bruno at clisp dot org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=51793 Bruno Haible changed: What|Removed |Added Status|NEW |RESOLVED Known to fail|

[Bug middle-end/98396] gcc wrongly assumes that free preserves errno

2021-01-05 Thread bruno at clisp dot org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98396 --- Comment #4 from Bruno Haible --- (In reply to Richard Biener from comment #3) > But note that while free() may clobber errno the state after it is undefined > (it's not documented to set it to any specific value). So I'd argue the >

[Bug c/98396] gcc wrongly assumes that free preserves errno

2020-12-19 Thread bruno at clisp dot org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98396 Bruno Haible changed: What|Removed |Added Known to work||4.0.4, 4.1.2, 4.2.4, 4.3.6,

[Bug c/98396] New: gcc wrongly assumes that free preserves errno

2020-12-19 Thread bruno at clisp dot org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98396 Bug ID: 98396 Summary: gcc wrongly assumes that free preserves errno Product: gcc Version: 10.2.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c

[Bug sanitizer/98165] Use of the UB sanitizer links the the program with libstdc++

2020-12-06 Thread bruno at clisp dot org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98165 Bruno Haible changed: What|Removed |Added Status|UNCONFIRMED |RESOLVED Resolution|---

[Bug sanitizer/98165] Use of the UB sanitizer links the the program with libstdc++

2020-12-06 Thread bruno at clisp dot org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98165 --- Comment #1 from Bruno Haible --- Created attachment 49691 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=49691=edit Test case

[Bug sanitizer/98165] New: Use of the UB sanitizer links the the program with libstdc++

2020-12-06 Thread bruno at clisp dot org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98165 Bug ID: 98165 Summary: Use of the UB sanitizer links the the program with libstdc++ Product: gcc Version: 10.2.0 Status: UNCONFIRMED Severity: normal

[Bug driver/98162] New: Documentation mentions non-existent option -mcet

2020-12-06 Thread bruno at clisp dot org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98162 Bug ID: 98162 Summary: Documentation mentions non-existent option -mcet Product: gcc Version: 10.2.0 Status: UNCONFIRMED Severity: normal Priority: P3

[Bug tree-optimization/91029] missed optimization regarding value of modulo operation

2020-11-18 Thread bruno at clisp dot org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91029 --- Comment #8 from Bruno Haible --- > what is the reason to require that b >= 0 in all of this? In the 1990ies there were portability problems with a%b, b < 0. ANSI C said that the result was machine-dependent if a < 0 or b < 0. Fortunately

[Bug tree-optimization/91029] missed optimization regarding value of modulo operation

2020-11-17 Thread bruno at clisp dot org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91029 --- Comment #5 from Bruno Haible --- Nice! Thank you.