aboutsummaryrefslogtreecommitdiff
path: root/libgcc
diff options
context:
space:
mode:
authorGaius Mulley <gaiusmod2@gmail.com>2023-06-03 15:27:58 +0100
committerGaius Mulley <gaiusmod2@gmail.com>2023-06-03 15:27:58 +0100
commit7c0e2159afb3235950d3d8f61ef085cd1ccf0dfc (patch)
tree486a13a5ead731d662346d662f236e3635ad3ae0 /libgcc
parent38af81df6aac11d49f9378d1c628ccc3c815c3ff (diff)
downloadgcc-7c0e2159afb3235950d3d8f61ef085cd1ccf0dfc.zip
gcc-7c0e2159afb3235950d3d8f61ef085cd1ccf0dfc.tar.gz
gcc-7c0e2159afb3235950d3d8f61ef085cd1ccf0dfc.tar.bz2
PR modula2/110003 Wrong source line listed for unused parameters
Ensure that the parameter token position is recorded for both definition and implementation modules. The shadow variable is created inside BuildFormalParameterSection. The shadow variable needs to have the other definition or implementation module token position set when CheckFormalParameterSection is called. This allows the MetaError family of procedures to request the implementation module token position when reporting unused parameters. gcc/m2/ChangeLog: PR modula2/110003 * gm2-compiler/P2SymBuild.mod (GetParameterShadowVar): Import. (CheckFormalParameterSection): Call PutDeclared for the shadow variable associated with the parameter. Signed-off-by: Gaius Mulley <gaiusmod2@gmail.com>
Diffstat (limited to 'libgcc')
0 files changed, 0 insertions, 0 deletions