[Bug middle-end/17308] nonnull attribute not as useful as it could be
segher at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Wed Dec 14 20:12:00 GMT 2016
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=17308
Segher Boessenkool <segher at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|RESOLVED |REOPENED
CC| |segher at gcc dot gnu.org
Resolution|FIXED |---
--- Comment #18 from Segher Boessenkool <segher at gcc dot gnu.org> ---
This gives a warning in powerpc-linuc (which breaks bootstrap), when
compiling tree-inline.c:
/home/segher/src/gcc/gcc/vec.h:1613:5: error: argument 1 null where non-null
expected [-Werror=nonnull]
memset (&(address ()[oldlen]), 0, sz);
^~~~~~
Configuring with --disable-werror ends with a bootstrap comparison failure:
Bootstrap comparison failure!
gcc/gcc.o differs
gcc/plugin.o differs
(which could of course be something else).
More information about the Gcc-bugs
mailing list