https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87715
Bug ID: 87715 Summary: problems with asan and -O3 build of ada Product: gcc Version: 8.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: ada Assignee: unassigned at gcc dot gnu.org Reporter: dcb314 at hotmail dot com Target Milestone: --- I just tried to build the ada compiler with address sanitizer and -O3 on recent gcc trunk. Configure script is ../trunk/configure --prefix=/home/dcb/gcc/results.265434.asan \ --with-build-config=bootstrap-asan \ --disable-multilib \ --disable-werror \ --enable-checking=release \ --enable-languages=c,c++,fortran,ada sed 's/-O2/-O3 -Wlogical-op/' < Makefile > Makefile.tmp mv Makefile.tmp Makefile I get error messages: $ egrep "^Config|ERROR:" mk.out ... Configuring stage 3 in ./libdecnumber Configuring stage 3 in ./libcpp Configuring stage 3 in ./gcc ================================================================= ==14774==ERROR: AddressSanitizer: dynamic-stack-buffer-overflow on address 0x7ffe9efa6587 at pc 0x000001cf4660 bp 0x7ffe9efa5e70 sp 0x7ffe9efa5e68 READ of size 1 at 0x7ffe9efa6587 thread T0 ================================================================= ==14775==ERROR: AddressSanitizer: dynamic-stack-buffer-overflow on address 0x7ffde98d1027 at pc 0x000001cf4660 bp 0x7ffde98d0910 sp 0x7ffde98d0908 READ of size 1 at 0x7ffde98d1027 thread T0 ================================================================= ==14779==ERROR: AddressSanitizer: dynamic-stack-buffer-overflow on address 0x7ffcb7f760a7 at pc 0x000001cf4660 bp 0x7ffcb7f75980 sp 0x7ffcb7f75978 READ of size 1 at 0x7ffcb7f760a7 thread T0 I suspect the -O3 might be causing a problem. I'll have another go at building with -O2, not -O3.