aboutsummaryrefslogtreecommitdiff
path: root/libgomp/testsuite/libgomp.oacc-c-c++-common/kernels-loop-2.c
diff options
context:
space:
mode:
authorGaius Mulley <gaiusmod2@gmail.com>2025-04-24 02:39:36 +0100
committerGaius Mulley <gaiusmod2@gmail.com>2025-04-24 02:39:36 +0100
commite9a81addd5b7d018e173fa8d59aafc2f84e41d8b (patch)
treebc684adedad6fc521e074602a164464b6176ad77 /libgomp/testsuite/libgomp.oacc-c-c++-common/kernels-loop-2.c
parentdb1e171882e5abbdaf1ad9a763456a03bb6d55b3 (diff)
downloadgcc-e9a81addd5b7d018e173fa8d59aafc2f84e41d8b.zip
gcc-e9a81addd5b7d018e173fa8d59aafc2f84e41d8b.tar.gz
gcc-e9a81addd5b7d018e173fa8d59aafc2f84e41d8b.tar.bz2
PR modula2/119914 No error message generated when passing a Ztype to an unbounded array
This patch detects constants ZType, RType, CType being passed to unbounded arrays and generates an error message highlighting the formal and actual parameters in error. gcc/m2/ChangeLog: PR modula2/119914 * gm2-compiler/M2Check.mod (checkConstMeta): Add check for Ztype, Rtype and Ctype and unbounded arrays. (IsZRCType): New procedure function. (isZRC): Add comment. * gm2-compiler/M2Quads.mod: * gm2-compiler/M2Range.mod (gdbinit): New procedure. (BreakWhenRangeCreated): Ditto. (CheckBreak): Ditto. (InitRange): Call CheckBreak. (Init): Add gdbhook and initialize interactive watch point. * gm2-compiler/SymbolTable.def (GetNthParamAnyClosest): New procedure function. * gm2-compiler/SymbolTable.mod (BreakSym): Remove constant. (BreakSym): Add Variable. (stop): Remove. (gdbhook): New procedure. (BreakWhenSymCreated): Ditto. (CheckBreak): Ditto. (NewSym): Call CheckBreak. (Init): Add gdbhook and initialize interactive watch point. (MakeProcedure): Replace guarded call to stop with CheckBreak. (GetNthParamChoice): New procedure function. (GetNthParamOrdered): Ditto. (GetNthParamAnyClosest): Ditto. (GetOuterModuleScope): Ditto. gcc/testsuite/ChangeLog: PR modula2/119914 * gm2/pim/fail/constintarraybyte.mod: New test. Signed-off-by: Gaius Mulley <gaiusmod2@gmail.com>
Diffstat (limited to 'libgomp/testsuite/libgomp.oacc-c-c++-common/kernels-loop-2.c')
0 files changed, 0 insertions, 0 deletions