aboutsummaryrefslogtreecommitdiff
path: root/gcc/tree-ssa-phiopt.cc
diff options
context:
space:
mode:
authorGaius Mulley <gaiusmod2@gmail.com>2023-07-20 22:32:22 +0100
committerGaius Mulley <gaiusmod2@gmail.com>2023-07-20 22:32:22 +0100
commit083e7857a9ebf187b9116c74f6acf161f593bad9 (patch)
tree6bd6d183416ced1dbe6302829286bfa26dfbd1d3 /gcc/tree-ssa-phiopt.cc
parent4e9ed68ee7ef2c80dcfd038c54e937646cc0ece2 (diff)
downloadgcc-083e7857a9ebf187b9116c74f6acf161f593bad9.zip
gcc-083e7857a9ebf187b9116c74f6acf161f593bad9.tar.gz
gcc-083e7857a9ebf187b9116c74f6acf161f593bad9.tar.bz2
[modula2] Implement limited VAR parameter static analysis
This patch implements limited VAR parameter static analysis for pointer parameters. gcc/m2/ChangeLog: * gm2-compiler/M2SymInit.mod (IsExempt): Remove parameter exemption. (CheckIndrX): Call SetupLAlias between lhs and content. (trashParam): Re-write. (SetVarLRInitialized): Indicate shadow and heap are initialized. Call SetupIndr between shadow and heap. * gm2-compiler/P2SymBuild.mod: Import PutProcedureParameterHeapVars. (EndBuildProcedure): Call PutProcedureParameterHeapVars. * gm2-compiler/SymbolTable.def (GetParameterHeapVar): New procedure function. (PutProcedureParameterHeapVars): New procedure function. * gm2-compiler/SymbolTable.mod (MakeParameterHeapVar): New procedure function. (GetParameterHeapVar): New procedure function. (PuttParameterHeapVar): New procedure function. (PutProcedureParameterHeapVars): New procedure. (VarParam): HeapVar new record field. (PutVarParam): HeapVar assigned to NulSym. gcc/testsuite/ChangeLog: * gm2/switches/uninit-variable-checking/procedures/fail/testdispose3.mod: New test. * gm2/switches/uninit-variable-checking/procedures/fail/testdispose4.mod: New test. * gm2/switches/uninit-variable-checking/procedures/pass/testdispose3.mod: New test. * gm2/switches/uninit-variable-checking/procedures/pass/testdispose4.mod: New test. Signed-off-by: Gaius Mulley <gaiusmod2@gmail.com>
Diffstat (limited to 'gcc/tree-ssa-phiopt.cc')
0 files changed, 0 insertions, 0 deletions