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

--- Comment #5 from Zdenek Sojka <zsojka at seznam dot cz> ---
Created attachment 59375
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=59375&action=edit
testcase using memcpy

$ x86_64-pc-linux-gnu-gcc -O -fharden-control-flow-redundancy
-fnon-call-exceptions testcase3.c 
testcase3.c: In function 'foo':
testcase3.c:7:30: warning: '__builtin_memcpy' writing 3 bytes into a region of
size 0 overflows the destination [-Wstringop-overflow=]
    7 |   x *= *(_Complex __int128 *)__builtin_memcpy((char *)&y - 1, &x, 3);
      |                              ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
testcase3.c:2:19: note: at offset -1 into destination object 'y' of size 32
    2 | _Complex __int128 y;
      |                   ^
testcase3.c:8:1: error: missing REG_EH_REGION note at the end of bb 6
    8 | }
      | ^
during RTL pass: subreg3
testcase3.c:8:1: internal compiler error: verify_flow_info failed
0x2c8a99e internal_error(char const*, ...)
        /repo/gcc-trunk/gcc/diagnostic-global-context.cc:517
0x103f99e verify_flow_info()
        /repo/gcc-trunk/gcc/cfghooks.cc:287
0x14853f7 execute_function_todo
        /repo/gcc-trunk/gcc/passes.cc:2113
0x148594e execute_todo
        /repo/gcc-trunk/gcc/passes.cc:2155
Please submit a full bug report, with preprocessed source (by using
-freport-bug).
Please include the complete backtrace with any bug report.
See <https://gcc.gnu.org/bugs/> for instructions.

Reply via email to