https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104069

--- Comment #30 from Sergei Trofimovich <slyfox at gcc dot gnu.org> ---
> configure: WARNING: unrecognized options: --disable-werror
> In function 'bigger_buffer',
>     inlined from '__libdw_gunzip' at gzip.c:374:12:
> gzip.c:96:9: error: pointer may be used after 'realloc'
> [-Werror=use-after-free]
>    96 |     b = realloc (state->buffer, more -= 1024);
>       |         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> gzip.c:94:13: note: call to 'realloc' here
>    94 |   char *b = realloc (state->buffer, more);
>       |             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> cc1: all warnings being treated as errors
> make[2]: *** [Makefile:715: gzip.o] Error 1

You should be able to extract preprocessed file using
https://gcc.gnu.org/bugs/#need: you will need to find exact `gcc` invocation
that causes build failure, add `-save-temps` parameter to it, grab '*.i' file
and attach it along with exact command you used to produce it.

Reply via email to