]> git.ipfire.org Git - thirdparty/gcc.git/commit
PR modula2/113848 modula2 does not build with clang
authorGaius Mulley <gaiusmod2@gmail.com>
Sat, 10 Feb 2024 02:18:54 +0000 (02:18 +0000)
committerGaius Mulley <gaiusmod2@gmail.com>
Sat, 10 Feb 2024 02:18:54 +0000 (02:18 +0000)
commit863202684dff775ae4a3e576f77044474384d41f
tree6964479181e2f25496cd8e363ce11e947266a716
parent2523654a54982344bc095a1d27bd9f1d35ef033e
PR modula2/113848 modula2 does not build with clang

Re-write address arithmetic in gm2-libs/SArgs.mod:GetArg
to avoid (void *) computation.  mc treats ADDRESS as (char *)
but does not cast user type (PtrToChar) to (char *) when
performing address arithmetic.

gcc/m2/ChangeLog:

PR modula2/113848
* gm2-libs/SArgs.mod (GetArg): Re-write address arithmetic
to avoid (void *) computation.

Signed-off-by: Gaius Mulley <gaiusmod2@gmail.com>
gcc/m2/gm2-libs/SArgs.mod