https://gcc.gnu.org/bugzilla/show_bug.cgi?id=125544
--- Comment #2 from GCC Commits <cvs-commit at gcc dot gnu.org> --- The master branch has been updated by Gaius Mulley <[email protected]>: https://gcc.gnu.org/g:23229bea30efc917bdb0d65cc6bffade0d2017ea commit r17-1220-g23229bea30efc917bdb0d65cc6bffade0d2017ea Author: Gaius Mulley <[email protected]> Date: Tue Jun 2 12:14:51 2026 +0100 PR modula2/125544: ISO reallocate does not call allocate if the address is NIL This bugfix is for the ISO Storage.REALLOCATE procedure which is a GNU extension. It should behave in the same way as the PIM version by first checking whether the pointer parameter is NIL and then calling ALLOCATE. gcc/m2/ChangeLog: PR modula2/125544 * gm2-libs-iso/Storage.def (REALLOCATE): Updated comment describing new behavior. * gm2-libs-iso/Storage.mod (REALLOCATE): Check addr and call ALLOCATE if NIL else call lowerReallocate. (lowerReallocate): New procedure. Signed-off-by: Gaius Mulley <[email protected]>
