/* 新的报错

*/
[xifu@DESKTOP-DJDGSEK src]$ make
(cd microcode && make all)
make[1]: 进入目录“/home/xifu/下载/mit-scheme-11.2/src/microcode”
gcc -DHAVE_CONFIG_H -DMIT_SCHEME -DDEFAULT_LIBRARY_PATH=\"/usr/local/lib/mit-scheme-x86-64-11.2\" -I. -I. -O3 -frounding-math -fno-builtin-floor -Wall -Wclobbered -Wempty-body -Wignored-qualifiers -Wimplicit-fallthrough -Wmissing-field
-initializers -Wmissing-parameter-type -Wnested-externs -Wold-style-declaration -Woverride-init -Wpointer-arith -Wredundant-decls -Wshift-negative-value -Wtype-limits -Wundef -Wuninitialized -Wwrite-strings -Wno-error=stringop-truncatio
n -Werror -o regex.o -c regex.c
regex.c: 在函数‘re_match’中:
regex.c:154:45: 错误:pointer ‘stack_start’ may be used after ‘realloc’ [-Werror=use-after-free]
154 | (& (stack_temporary [(stack_pointer - stack_start)])); \
| ^
regex.c:873:9: 附注:in expansion of macro ‘PUSH_FAILURE_POINT’
873 | PUSH_FAILURE_POINT ((pattern_pc + offset), match_pc);
| ^~~~~~~~~~~~~~~~~~
regex.c:148:11: 附注:call to ‘realloc’ here
148 | (realloc \
| ~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
149 | (stack_start, (stack_length * (sizeof (unsigned char *)))))); \
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
regex.c:873:9: 附注:in expansion of macro ‘PUSH_FAILURE_POINT’
873 | PUSH_FAILURE_POINT ((pattern_pc + offset), match_pc);
| ^~~~~~~~~~~~~~~~~~
regex.c:154:45: 错误:pointer ‘stack_start’ may be used after ‘realloc’ [-Werror=use-after-free]
154 | (& (stack_temporary [(stack_pointer - stack_start)])); \
| ^
regex.c:981:9: 附注:in expansion of macro ‘PUSH_FAILURE_POINT’
981 | PUSH_FAILURE_POINT (NULL, NULL);
| ^~~~~~~~~~~~~~~~~~
regex.c:148:11: 附注:call to ‘realloc’ here
148 | (realloc \
| ~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
149 | (stack_start, (stack_length * (sizeof (unsigned char *)))))); \
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
regex.c:981:9: 附注:in expansion of macro ‘PUSH_FAILURE_POINT’
981 | PUSH_FAILURE_POINT (NULL, NULL);
| ^~~~~~~~~~~~~~~~~~
cc1:所有的警告都被当作是错误
make[1]: *** [Makefile:182:regex.o] 错误 1
make[1]: 离开目录“/home/xifu/下载/mit-scheme-11.2/src/microcode”
make: *** [Makefile:796:microcode/scheme] 错误 2
[xifu@DESKTOP-DJDGSEK src]$ ^C
[xifu@DESKTOP-DJDGSEK src]$