https://gcc.gnu.org/bugzilla/show_bug.cgi?id=121164

--- Comment #9 from GCC Commits <cvs-commit at gcc dot gnu.org> ---
The releases/gcc-15 branch has been updated by Gaius Mulley
<ga...@gcc.gnu.org>:

https://gcc.gnu.org/g:f9773b1c21188e0aaf60bea1a90808aee57fa16d

commit r15-10069-gf9773b1c21188e0aaf60bea1a90808aee57fa16d
Author: Gaius Mulley <gaiusm...@gmail.com>
Date:   Sat Jul 26 13:19:29 2025 +0100

    [PATCH] PR modula2/121164: Modula 2 build failure followup

    This is a followup patch for PR modula2/121164 to
    fix the location for the error message attributed to cc1gm2.
    The Patch has been cherry picked, but without the forced -Wall option
    in libgm2.

    gcc/m2/ChangeLog:

            PR modula2/121164
            * gm2-compiler/P1SymBuild.mod: Remove PutProcTypeParam.
            Remove PutProcTypeParam.
            (CheckFileName): Remove.
            (P1EndBuildDefinitionModule): Correct spelling.
            (P1EndBuildImplementationModule): Ditto.
            (P1EndBuildProgramModule): Ditto.
            (EndBuildInnerModule): Ditto.
            * gm2-compiler/P2SymBuild.mod (P2EndBuildDefModule): Correct
            spelling.
            (P2EndBuildImplementationModule): Ditto.
            (P2EndBuildProgramModule): Ditto.
            (EndBuildInnerModule): Ditto.
            (CheckFormalParameterSection): Ditto.
            * gm2-compiler/P3SymBuild.mod (P3EndBuildDefModule): Ditto.
            * gm2-compiler/PCSymBuild.mod (PCEndBuildDefModule): Ditto.
            (fixupProcedureType): Pass tok to PutProcTypeVarParam.
            Pass tok to PutProcTypeParam.
            * gm2-compiler/SymbolTable.def (PutProcTypeParam): Add tok
            parameter.
            (PutProcTypeVarParam): Ditto.
            * gm2-compiler/SymbolTable.mod (SymParam): At change type to
            CARDINAL.
            New field FullTok.
            New field Scope.
            (SymVarParam): At change type to CARDINAL.
            New field FullTok.
            New field Scope.
            (GetVarDeclTok): Check ShadowVar for NulSym and return At.
            (PutParam): Initialize FullTok.
            Initialize At.
            Initialize Scope.
            (PutVarParam): Initialize FullTok.
            Assign At.
            Initialize Scope.
            (AddProcedureProcTypeParam): Add tok parameter.
            (GetScope): Add ParamSym and VarParamSym clause.
            (PutProcTypeVarParam): Add tok parameter.
            Initialize At.
            Initialize FullTok.
            (GetDeclaredDefinition): Clause ParamSym return At.
            Clause VarParamSym return At.
            (GetDeclaredModule): Ditto.
            (PutDeclaredDefinition): Remove clause ParamSym.
            Remove clause VarParamSym.
            (PutDeclaredModule): Remove clause ParamSym.
            Remove clause VarParamSym.

    gcc/testsuite/ChangeLog:

            PR modula2/121164
            * gm2/switches/pedantic-params/fail/arrayofchar.def: New test.
            * gm2/switches/pedantic-params/fail/arrayofchar.mod: New test.

    (cherry picked from commit ab5a89c0b4f1ead202dee072e16690607b810111)

    Signed-off-by: Gaius Mulley <gaiusm...@gmail.com>

Reply via email to