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

Martin Sebor <msebor at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Last reconfirmed|2017-01-12 00:00:00         |2021-7-30
      Known to fail|                            |10.2.0, 11.2.0, 12.0,
                   |                            |7.3.0, 8.3.0, 9.2.0

--- Comment #8 from Martin Sebor <msebor at gcc dot gnu.org> ---
Reconfirmed with GCC 12 for the missing -Wformat-overflow:

$ (cc='/build/gcc-master/gcc/xgcc -B /build/gcc-master/gcc'; set -x && cat
pr79062.c && $cc -O2 -Wall -flto -c pr79062.c && $cc -O2 -Wall -flto pr79062.o
&& valgrind ./a.out)
+ cat pr79062.c
int main (void)
{
  char *d = (char*)__builtin_alloca (2);
  int n = __builtin_sprintf (d, "%i", 123);   // missing warning with -flto
  __builtin_puts (d);
  if (n > 1)
    __builtin_abort ();
}
+ /build/gcc-master/gcc/xgcc -B /build/gcc-master/gcc -O2 -Wall -flto -c
pr79062.c
+ /build/gcc-master/gcc/xgcc -B /build/gcc-master/gcc -O2 -Wall -flto pr79062.o
+ valgrind ./a.out
==5314== Memcheck, a memory error detector
==5314== Copyright (C) 2002-2017, and GNU GPL'd, by Julian Seward et al.
==5314== Using Valgrind-3.15.0 and LibVEX; rerun with -h for copyright info
==5314== Command: ./a.out
==5314== 
123
==5314== 
==5314== Process terminating with default action of signal 6 (SIGABRT): dumping
core
==5314==    at 0x48A357F: raise (in /usr/lib64/libc-2.28.so)
==5314==    by 0x488D894: abort (in /usr/lib64/libc-2.28.so)
==5314==    by 0x4010A6: main (in /ssd/build/tmp/a.out)
==5314== 
==5314== HEAP SUMMARY:
==5314==     in use at exit: 0 bytes in 0 blocks
==5314==   total heap usage: 1 allocs, 1 frees, 1,024 bytes allocated
==5314== 
==5314== All heap blocks were freed -- no leaks are possible
==5314== 
==5314== For lists of detected and suppressed errors, rerun with: -s
==5314== ERROR SUMMARY: 0 errors from 0 contexts (suppressed: 0 from 0)

Reply via email to