]> git.ipfire.org Git - thirdparty/gcc.git/commit
PR 107630 runtime libs should be self-contained
authorGaius Mulley <gaiusmod2@gmail.com>
Thu, 16 Mar 2023 20:34:32 +0000 (20:34 +0000)
committerGaius Mulley <gaiusmod2@gmail.com>
Thu, 16 Mar 2023 20:34:32 +0000 (20:34 +0000)
commit77924dff144cf934e7a73417d237a99f0d9d66ed
tree370f9c28221b8b47a07d2e744129e705373c6d9a
parentacff89c7d7b3af3553a4fb878b2fd767dd27d830
PR 107630 runtime libs should be self-contained

This is a patch to improve the layering of libgm2.
It removes the m2cor Debug.{def,mod} (the codebase will use
m2pim Debug instead).  It also layers SysStorage under
both m2pim Storage and m2iso Storage.  SysStorage is now
a dependant of m2pim Storage.mod.  Halt parameters for
Debug.mod and M2RTS.mod now have the same order.

gcc/m2/ChangeLog:

* gm2-compiler/SymbolKey.mod (PutSymKey): Halt parameters
reordered.
(DelSymKey): Ditto.
* gm2-compiler/ppg.mod (GetEpsilon): Ditto.
(GetReachEnd): Ditto.
(GetFollow): Ditto.
(CodeCondition): Ditto.
(CodeThenDo): Ditto.
(CodeEnd): Ditto.
(RecoverCondition): Ditto.
(ConditionIndent): Ditto.
* gm2-libs-ch/m2rts.h (M2RTS_Halt): Ditto.
* gm2-libs-coroutines/Executive.mod (Assert): Ditto.
(Resume): Remove redundant comments.
(Wait): Remove redundant comments.
* gm2-libs-coroutines/SYSTEM.mod (TRANSFER): Halt parameters
reordered.
(IOTransferHandler): Ditto.
(Finished): Ditto.
(localInit): Ditto.
* gm2-libs-coroutines/TimerHandler.mod (WaitOn): Halt parameters
reordered.
(Cancel): Ditto.
(ReArmEvent): Ditto.
(OnActiveQueue): Ditto.
* gm2-libs-iso/COROUTINES.mod (NEWCOROUTINE): Ditto.
(Transfer): Ditto.
(IOTRANSFER): Ditto.
* gm2-libs-iso/EXCEPTIONS.mod (RAISE): Correct Halt parameters.
* gm2-libs-iso/M2RTS.def (Halt): Halt parameters reordered.
(HaltC): Ditto.
* gm2-libs-iso/M2RTS.mod: Ditto.
* gm2-libs-iso/RTentity.mod (PutKey): Ditto.
(DelKey): Ditto.
(findChildAndParent): Ditto.
(assert): Ditto.
* gm2-libs-iso/Storage.mod (ALLOCATE): Add DebugTrace.
Add UseMallocFree test.
(DEALLOCATE): Add DebugTrace.  Add UseMallocFree test.
(assert): Halt parameters reordered.
* gm2-libs-log/Termbase.mod (Read): Ditto.
(KeyPressed): Ditto.
(Write): Ditto.
(Init): Ditto.
* gm2-libs/Debug.def (Halt): Halt parameters reordered.
* gm2-libs/Debug.mod (Halt): Ditto.
* gm2-libs/DynamicStrings.def (PopAllocation): Improve comment.
* gm2-libs/DynamicStrings.mod (PopAllocation): Improve comment.
Halt parameters reordered.
* gm2-libs/M2RTS.def (Halt): Ditto.
(HaltC): Ditto.
* gm2-libs/M2RTS.mod (Halt): Ditto.
(HaltC): Ditto.
* gm2-libs/PushBackInput.mod (PutStr): Ditto.
(PutString): Ditto.
(PutCh): Ditto.
* gm2-libs/RTExceptions.mod (GetBaseExceptionBlock): Ditto.
* gm2-libs/RTint.mod (ReArmTimeVector): Ditto.
(GetTimeVector): Ditto.
(AttachVector): Ditto.
(IncludeVector): Ditto.
(Listen): Ditto.
* gm2-libs/SysStorage.mod (ALLOCATE): Ditto.
(DEALLOCATE): Ditto.
(REALLOCATE): Ditto.
* gm2-libs-coroutines/Debug.def: Removed.
* gm2-libs-coroutines/Debug.mod: Removed.

libgm2/ChangeLog:

* libm2cor/Makefile.am: Remove
* libm2cor/Makefile.in: Rebuild.
* libm2iso/RTco.cc (newSem): Halt parameters reordered.
(currentThread): Ditto.
(never): Ditto.
(defined): Ditto.
(initThread): Ditto.
* libm2iso/m2rts.h (m2iso_M2RTS_HaltC): Ditto.

gcc/testsuite/ChangeLog:

* gm2/complex/pass/arith3.mod: Halt parameters reordered.
* gm2/complex/run/pass/arith3.mod: Ditto.
* gm2/complex/run/pass/arith4.mod: Ditto.
* gm2/complex/run/pass/arith5.mod: Ditto.
* gm2/isolib/run/pass/real2.mod: Ditto.
* gm2/isolib/run/pass/real3.mod: Ditto.
* gm2/isolib/run/pass/realconv.mod: Ditto.
* gm2/isolib/run/pass/realconv2.mod: Ditto.
* gm2/pim/pass/testshort.mod: Ditto.
* gm2/projects/pim/run/pass/tower/AdvSystem.mod: Ditto.
* gm2/projects/pim/run/pass/tower/DrawL.mod: Ditto.
* gm2/warnings/returntype/pass/Termbase.mod: Ditto.
* gm2/warnings/returntype/pass/keypressedsimple.mod: Ditto.

Signed-off-by: Gaius Mulley <gaiusmod2@gmail.com>
42 files changed:
gcc/m2/gm2-compiler/SymbolKey.mod
gcc/m2/gm2-compiler/ppg.mod
gcc/m2/gm2-libs-ch/m2rts.h
gcc/m2/gm2-libs-coroutines/Debug.def [deleted file]
gcc/m2/gm2-libs-coroutines/Debug.mod [deleted file]
gcc/m2/gm2-libs-coroutines/Executive.mod
gcc/m2/gm2-libs-coroutines/SYSTEM.mod
gcc/m2/gm2-libs-coroutines/TimerHandler.mod
gcc/m2/gm2-libs-iso/COROUTINES.mod
gcc/m2/gm2-libs-iso/EXCEPTIONS.mod
gcc/m2/gm2-libs-iso/M2RTS.def
gcc/m2/gm2-libs-iso/M2RTS.mod
gcc/m2/gm2-libs-iso/RTentity.mod
gcc/m2/gm2-libs-iso/Storage.mod
gcc/m2/gm2-libs-log/Termbase.mod
gcc/m2/gm2-libs/Debug.def
gcc/m2/gm2-libs/Debug.mod
gcc/m2/gm2-libs/DynamicStrings.def
gcc/m2/gm2-libs/DynamicStrings.mod
gcc/m2/gm2-libs/M2RTS.def
gcc/m2/gm2-libs/M2RTS.mod
gcc/m2/gm2-libs/PushBackInput.mod
gcc/m2/gm2-libs/RTExceptions.mod
gcc/m2/gm2-libs/RTint.mod
gcc/m2/gm2-libs/SysStorage.mod
gcc/testsuite/gm2/complex/pass/arith3.mod
gcc/testsuite/gm2/complex/run/pass/arith3.mod
gcc/testsuite/gm2/complex/run/pass/arith4.mod
gcc/testsuite/gm2/complex/run/pass/arith5.mod
gcc/testsuite/gm2/isolib/run/pass/real2.mod
gcc/testsuite/gm2/isolib/run/pass/real3.mod
gcc/testsuite/gm2/isolib/run/pass/realconv.mod
gcc/testsuite/gm2/isolib/run/pass/realconv2.mod
gcc/testsuite/gm2/pim/pass/testshort.mod
gcc/testsuite/gm2/projects/pim/run/pass/tower/AdvSystem.mod
gcc/testsuite/gm2/projects/pim/run/pass/tower/DrawL.mod
gcc/testsuite/gm2/warnings/returntype/pass/Termbase.mod
gcc/testsuite/gm2/warnings/returntype/pass/keypressedsimple.mod
libgm2/libm2cor/Makefile.am
libgm2/libm2cor/Makefile.in
libgm2/libm2iso/RTco.cc
libgm2/libm2iso/m2rts.h