[Bug tree-optimization/102329] pointer "maybe uninitialized" right after assignment

2021-10-18 Thread fw at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102329 Florian Weimer changed: What|Removed |Added See Also||https://sourceware.org/bugz

[Bug tree-optimization/102329] pointer "maybe uninitialized" right after assignment

2021-09-20 Thread msebor at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102329 --- Comment #6 from Martin Sebor --- In general a program can add an attribute to a system function by redeclaring it with it. This of course needs to be done conditionally on the GCC version that supports the attribute. This in turn can be te

[Bug tree-optimization/102329] pointer "maybe uninitialized" right after assignment

2021-09-17 Thread hv at crypt dot org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102329 --- Comment #5 from Hugo van der Sanden --- (In reply to Martin Sebor from comment #4) > For functions like pthread_getspecific() and pthread_setspecific() that do > not access the object GCC provides attribute access none to suppress the > warn

[Bug tree-optimization/102329] pointer "maybe uninitialized" right after assignment

2021-09-15 Thread msebor at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102329 --- Comment #4 from Martin Sebor --- The text of the warning should be adjusted to make it clear that it's the object the pointer points to that may be used uninitialized by the function. For functions like pthread_getspecific() and pthread_set

[Bug tree-optimization/102329] pointer "maybe uninitialized" right after assignment

2021-09-15 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102329 Richard Biener changed: What|Removed |Added Status|UNCONFIRMED |NEW Last reconfirmed|

[Bug tree-optimization/102329] pointer "maybe uninitialized" right after assignment

2021-09-14 Thread hv at crypt dot org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102329 --- Comment #2 from Hugo van der Sanden --- I guess this is justified by the second paragraph of the -Wmaybe-uninitialized docs: "In addition, passing a pointer (or in C++, a reference) to an uninitialized object to a const-qualified function ar