From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 8C1043858415; Thu, 21 Mar 2024 18:31:05 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 8C1043858415 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1711045865; bh=ia8tjhODGFTBODPM4pDP/n88Ce3pyCSB719acv3Q5UE=; h=From:To:Subject:Date:In-Reply-To:References:From; b=XaHcp7oSjd8bAfNkQu0TKy1eW0nWnD9+Vd5J6+UlKBjeqZfeuLxy9a7yXFFPONpsZ WWZUGeIQXQ8OrAhAhhXcCy6orlhOLUNTSfETcvDdJKOyvLP+IFOogLDhJN54KSYAwO 1MbAZDALg4gmagyHMdII33lHSUfvuA2XF4aNsGuY= From: "cvs-commit at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug modula2/114418] Missing import of TSIZE from system causes ICE Date: Thu, 21 Mar 2024 18:31:05 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: modula2 X-Bugzilla-Version: 14.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: cvs-commit at gcc dot gnu.org X-Bugzilla-Status: ASSIGNED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: gaius at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 List-Id: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D114418 --- Comment #2 from GCC Commits --- The master branch has been updated by Gaius Mulley : https://gcc.gnu.org/g:ba744d50ac0360f7992a42494db766f6548913e3 commit r14-9598-gba744d50ac0360f7992a42494db766f6548913e3 Author: Gaius Mulley Date: Thu Mar 21 18:30:23 2024 +0000 PR modula2/114418 missing import of TSIZE from system causes ICE This patch detects whether the symbol func is NulSym before generating an error and if so just uses the token location and fixed string to generate an error message. gcc/m2/ChangeLog: PR modula2/114418 * gm2-compiler/PCSymBuild.mod (PushConstFunctionType): Check func against NulSym and issue an error. gcc/testsuite/ChangeLog: PR modula2/114418 * gm2/pim/fail/missingtsize.mod: New test. * gm2/pim/fail/missingtsize2.mod: New test. Signed-off-by: Gaius Mulley =