[Bug middle-end/96987] [11 regression] warning 'ptr' may be used uninitialized const pointer parameter
ibuclaw at gdcproject dot org
gcc-bugzilla@gcc.gnu.org
Tue Sep 15 21:01:32 GMT 2020
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96987
--- Comment #3 from Iain Buclaw <ibuclaw at gdcproject dot org> ---
And what about other front-ends that do not have the luxury of C attributes?
Looking at the original library code of where the warning was noticed, the
function being called (GC.addRange) definitely doesn't read the pointer, but
records the address and allocation size for scanning later.
More information about the Gcc-bugs
mailing list