[Bug modula2/109879] ReadCard and ReadInt from WholeIO have problems with leading space
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109879 --- Comment #5 from CVS Commits --- The releases/gcc-13 branch has been updated by Gaius Mulley : https://gcc.gnu.org/g:461359a8f8361d00f926985050e06bd13445ea69 commit r13-7637-g461359a8f8361d00f926985050e06bd13445ea69 Author: Gaius Mulley Date: Sat Jul 29 00:27:22 2023 +0100 PR modula2/109879 WholeIO.ReadCard and ReadInt should consume leading space The Read{TYPE} procedures in LongIO, LongWholeIO, RealIO, ShortWholeIO and WholeIO all require skip space functionality. A new module TextUtil is supplied with this functionality and the previous modules have been changed to call SkipSpaces. gcc/m2/ChangeLog: PR modula2/109879 * gm2-libs-iso/LongIO.mod (ReadReal): Call SkipSpaces. * gm2-libs-iso/LongWholeIO.mod (ReadInt): Call SkipSpaces. (ReadCard): Call SkipSpaces. * gm2-libs-iso/RealIO.mod (ReadReal): Call SkipSpaces. * gm2-libs-iso/ShortWholeIO.mod: (ReadInt): Call SkipSpaces. (ReadCard): Call SkipSpaces. * gm2-libs-iso/TextIO.mod: Import SkipSpaces. * gm2-libs-iso/WholeIO.mod (ReadInt): Call SkipSpaces. (ReadCard): Call SkipSpaces. * gm2-libs-iso/TextUtil.def: New file. * gm2-libs-iso/TextUtil.mod: New file. libgm2/ChangeLog: PR modula2/109879 * Makefile.in: Regenerate. * aclocal.m4: Regenerate. * libm2cor/Makefile.in: Regenerate. * libm2iso/Makefile.am (M2DEFS): Add TextUtil.def. (M2MODS): Add TextUtil.mod. * libm2iso/Makefile.in: Regenerate. * libm2log/Makefile.in: Regenerate. * libm2min/Makefile.in: Regenerate. * libm2pim/Makefile.in: Regenerate. gcc/testsuite/ChangeLog: PR modula2/109879 * gm2/isolib/run/pass/testreadint.mod: New test. (cherry picked from commit 509eef9314b24eff20a5dbdd92f6ab52e2c0c786) Signed-off-by: Gaius Mulley
[Bug modula2/109879] ReadCard and ReadInt from WholeIO have problems with leading space
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109879 Gaius Mulley changed: What|Removed |Added Resolution|--- |FIXED Status|ASSIGNED|RESOLVED --- Comment #4 from Gaius Mulley --- Closing now that the patch has been applied.
[Bug modula2/109879] ReadCard and ReadInt from WholeIO have problems with leading space
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109879 --- Comment #3 from CVS Commits --- The master branch has been updated by Gaius Mulley : https://gcc.gnu.org/g:509eef9314b24eff20a5dbdd92f6ab52e2c0c786 commit r14-920-g509eef9314b24eff20a5dbdd92f6ab52e2c0c786 Author: Gaius Mulley Date: Wed May 17 00:18:56 2023 +0100 PR modula2/109879 WholeIO.ReadCard and ReadInt should consume leading space The Read{TYPE} procedures in LongIO, LongWholeIO, RealIO, ShortWholeIO and WholeIO all require skip space functionality. A new module TextUtil is supplied with this functionality and the previous modules have been changed to call SkipSpaces. gcc/m2/ChangeLog: PR modula2/109879 * gm2-libs-iso/LongIO.mod (ReadReal): Call SkipSpaces. * gm2-libs-iso/LongWholeIO.mod (ReadInt): Call SkipSpaces. (ReadCard): Call SkipSpaces. * gm2-libs-iso/RealIO.mod (ReadReal): Call SkipSpaces. * gm2-libs-iso/ShortWholeIO.mod: (ReadInt): Call SkipSpaces. (ReadCard): Call SkipSpaces. * gm2-libs-iso/TextIO.mod: Import SkipSpaces. * gm2-libs-iso/WholeIO.mod (ReadInt): Call SkipSpaces. (ReadCard): Call SkipSpaces. * gm2-libs-iso/TextUtil.def: New file. * gm2-libs-iso/TextUtil.mod: New file. libgm2/ChangeLog: PR modula2/109879 * Makefile.in: Regenerate. * aclocal.m4: Regenerate. * libm2cor/Makefile.in: Regenerate. * libm2iso/Makefile.am (M2DEFS): Add TextUtil.def. (M2MODS): Add TextUtil.mod. * libm2iso/Makefile.in: Regenerate. * libm2log/Makefile.in: Regenerate. * libm2min/Makefile.in: Regenerate. * libm2pim/Makefile.in: Regenerate. gcc/testsuite/ChangeLog: PR modula2/109879 * gm2/isolib/run/pass/testreadint.mod: New test. Signed-off-by: Gaius Mulley
[Bug modula2/109879] ReadCard and ReadInt from WholeIO have problems with leading space
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109879 Gaius Mulley changed: What|Removed |Added Last reconfirmed||2023-05-16 Status|UNCONFIRMED |ASSIGNED Ever confirmed|0 |1 --- Comment #2 from Gaius Mulley --- Confirmed as a bug.
[Bug modula2/109879] ReadCard and ReadInt from WholeIO have problems with leading space
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109879 Gaius Mulley changed: What|Removed |Added CC||gaius at gcc dot gnu.org --- Comment #1 from Gaius Mulley --- Created attachment 55095 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=55095=edit Proposed fix Here is a proposed patch and testcase.