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

--- Comment #20 from Paul Menzel <pmenzel+gcc at molgen dot mpg.de> ---
(In reply to Andrew Pinski from comment #19)
> *** Bug 103768 has been marked as a duplicate of this bug. ***

It’d be great, if you could advise how to address the warning in SeaBIOS.

    In file included from src/fw/smm.c:18:
    src/fw/smm.c: In function 'smm_save_and_copy':
    src/string.h:23:16: warning: '__builtin_memcpy' offset [0, 511] is out of
the bounds [0, 0] [-Warray-bounds]
       23 | #define memcpy __builtin_memcpy
    src/fw/smm.c:148:5: note: in expansion of macro 'memcpy'
      148 |     memcpy(&smm->cpu, &initsmm->cpu, sizeof(smm->cpu));
          |     ^~~~~~

Reply via email to