]> git.ipfire.org Git - thirdparty/gcc.git/commit
PR modula2/118010 libc.def lseek procedure off_t bugfix
authorGaius Mulley <gaiusmod2@gmail.com>
Sat, 25 Jan 2025 18:22:35 +0000 (18:22 +0000)
committerGaius Mulley <gaiusmod2@gmail.com>
Sat, 25 Jan 2025 18:22:35 +0000 (18:22 +0000)
commit2531cb1d20d9c5b8a5390816a10a018c59506250
tree9c24cbe7362ddd5278038c3bb3fed2a404bbe30b
parentbee1910b891f897fcd1789d1dbd3937621354943
PR modula2/118010 libc.def lseek procedure off_t bugfix

This patch fixes calls to lseek from m2 sources.  The new data
type SYSTEM.COFF_T is used instead of SYSTEM.CCSIZE_T.

gcc/m2/ChangeLog:

PR modula2/118010
* gm2-libs-log/FileSystem.mod (doModeChange): Replace
LONGINT with COFF_T.
(SetPos): Use COFF_T for the return value and offset type
when calling lseek.
* gm2-libs/FIO.mod (SetPositionFromBeginning): Convert pos
to COFF_T.
(SetPositionFromEnd): Ditto.
* mc-boot/GFIO.cc: Rebuild.
* mc-boot/Glibc.h: Ditto.
* pge-boot/GFIO.cc: Ditto.
* pge-boot/Glibc.h: Ditto.

Signed-off-by: Gaius Mulley <gaiusmod2@gmail.com>
gcc/m2/gm2-libs-log/FileSystem.mod
gcc/m2/gm2-libs/FIO.mod
gcc/m2/mc-boot/GFIO.cc
gcc/m2/mc-boot/Glibc.h
gcc/m2/pge-boot/GFIO.cc
gcc/m2/pge-boot/Glibc.h