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

--- Comment #3 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
This code is very much undefined.
THe original code did:
  opc = XNEWVEC (struct m68hc11_opcode_def, num_opcodes);
  m68hc11_opcode_defs = opc--;

Which is definitely undefined. You cannot take the address before the allocated
memory and have it be defined. The only address which is valid is where the
array starts and one element past the allocation.

Reply via email to