]> gcc.gnu.org Git - gcc.git/commit
M2GenGCC.mod huge tidyup and removal of unused parameters and variables.
authorGaius Mulley <gaius.mulley@southwales.ac.uk>
Fri, 8 Oct 2021 10:52:48 +0000 (11:52 +0100)
committerGaius Mulley <gaius.mulley@southwales.ac.uk>
Fri, 8 Oct 2021 14:00:36 +0000 (15:00 +0100)
commit5e2c046e06734e64c442924aea3ed197d0d68eb4
tree8fddd26e603b4202c3f35faf8c2db387897ec6d7
parent12ab545439382fb5f42dd36be97e62c295878872
M2GenGCC.mod huge tidyup and removal of unused parameters and variables.

2021-09-26  Gaius Mulley  <gaius.mulley@southwales.ac.uk>

ChangeLog:

* Makefile.in: Regenerated.

gcc/m2/ChangeLog:

* gm2-compiler/M2GenGCC.mod (m2statement): Import list inserted
identifier BuildFunctionCallTree.
(ConvertQuadsToTree): Delete variable Prev.  Reformatted.
(IsCompilingMainModule):  Reformatted.
(CodeStatement): Remove unused parameters for many of the Code
procedures.
(ResolveConstantExpressions): Remove unused parameters for many of
the Fold procedures.
(CodeSaveException): replace variables exceptionCall and functValue.
Use BuildFunctionCallTree to avoid an unused return result.
(CodeRestoreException): Replace variables exceptionCall and
functValue.  Use BuildFunctionCallTree to avoid an unused return result.
(PopScope): Check return result.
(CodeRange): Remove unused parameters.
(CodeError): Remove unused parameters.
(CodeStartModFile): Remove unused parameters.
(CodeStartDefFile): Remove unused parameters and renamed existing
parameters.
(CodeEndFile): Remove unused parameters.
(CodeInitStart): Remove unused parameters.
(CodeInitStart): Reformatted.
(CodeInitEnd): replace variables t and moduleTree.
(CodeInitEnd): Reformatted.
(CodeFinallyStart): Rewritten to remove unused parameters and
renamed remaining parameters.
(CodeFinallyEnd): replace variables t and moduleTree.
(CodeFinallyEnd): Rewritten to remove unused parameters and
renamed remaining parameters.
(GetHighFromUnbounded): Commented out unused variable remainingDim.
(MakeCopyUse): Insert variables Type and NewArray.  Reformatted.
(BuildCascadedIfThenElsif): Reformatted.
(CheckUnboundedNonVarParameter): Reformatted.
(IsParameterWritten): Removed usused variable i.
(AutoInitVariable): Removed usused variable i.
(CodeNewLocalVar): Reformatted.
(CodeKillLocalVar): Reformatted.
(CodeProcedureScope): Reformatted.
(CodeCall): Reformatted.
(FoldBuiltin): Renamed parameter.
(CodeFunctValue): Removed unused parameter.
(CodeAddr): Removed unused parameter.
(FoldBecomes): Delete variable t.  Removed unused parameter.
(CodeTry): Removed all parameters.
(CodeThrow): Removed unused parameters.
(CodeCatchBegin): Reformatted.
(checkDeclare): Reformatted and renamed parameters.  Removed
unused parameters.
(LValueToGenericPtr): Removed unused parameter and reformatted.
(CodeAddCheck): Renamed parameters.
(FoldSub): Renamed parameters.
(CodeAddCheck): Renamed parameters.
(CodeSubCheck): Renamed parameters.
(FoldMult): Renamed parameters.
(CodeSub): Renamed parameters.
(CodeMultCheck): Rewritten and reformatted.
(CodeDivM2Checked): Rewritten and reformatted.
(CodeDivM2Check): Rewritten and reformatted.
(CodeModM2Checked): Rewritten and reformatted.
(CodeModM2Check): Rewritten and reformatted.
(FoldDivM2): Rewritten and reformatted.
(CodeDivM2): Rewritten and reformatted.
(FoldModM2): Rewritten and reformatted.
(FoldDivTrunc): Rewritten and reformatted.
(FoldDivCeil): Rewritten and reformatted.
(FoldDivFloor): Rewritten and reformatted.
(FoldBuiltinConst): Rewritten and reformatted.
(FoldBuiltinTypeInfo): Rewritten and reformatted.
(CodeStandardFunction): Rewritten and reformatted.
(CodeSavePriority): Rewritten and reformatted.
(CodeRestorePriority): Rewritten and reformatted.
(CodeUnarySet): Rewritten and reformatted.
(FoldIfIn): Rewritten and reformatted.
(GetSetLimits): Rewritten and reformatted.
(CodeIncl): Rewritten and reformatted.
(CodeExcl): Rewritten and reformatted.
(FoldUnary): Rewritten and reformatted.
(FoldUnarySet): Rewritten and reformatted.
(CodeUnaryCheck): Rewritten and reformatted.
(CodeUnary): Rewritten and reformatted.
(CodeNegateChecked): Rewritten and reformatted.
(CodeSize): Rewritten and reformatted.
(FoldRecordField): Delete variables location and t.
(BuildHighFromArray): Rewritten and reformatted.
(BuildHighFromStaticArray): Rewritten and reformatted.
(ResolveHigh): Rewritten and reformatted.
(FoldHigh): Rewritten and reformatted.
(CodeArray): Rewritten and reformatted.
(FoldElementSizeForArray): Rewritten and reformatted.
(FoldElementSizeForUnbounded): Rewritten and reformatted.
(FoldConvert): Rewritten and reformatted.
(CodeIfNotEqu): Rewritten and reformatted.
(MixTypes3): Rewritten and reformatted.
(AddQuadInformation): Rewritten and reformatted.
(UndoReadWriteInfo): Rewritten and reformatted.
(WriteQuad): Rewritten and reformatted.
* gm2-gcc/m2statement.c (BuildFunctionCallTree): New function.
* gm2-gcc/m2statement.def (BuildFunctionCallTree): New function.
* gm2-gcc/m2statement.h (BuildFunctionCallTree): New function.

Signed-off-by: Gaius Mulley <gaius.mulley@southwales.ac.uk>
Makefile.in
gcc/m2/gm2-compiler/M2GenGCC.mod
gcc/m2/gm2-compiler/M2Quads.def
gcc/m2/gm2-compiler/M2Quads.mod
gcc/m2/gm2-gcc/m2statement.c
gcc/m2/gm2-gcc/m2statement.def
gcc/m2/gm2-gcc/m2statement.h
This page took 0.060976 seconds and 5 git commands to generate.