From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 4CC1F3858CDA; Thu, 10 Nov 2022 13:01:23 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 4CC1F3858CDA DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1668085283; bh=RNf+Q+UFs2KthSwfG1tD3eDg4pEjQwISLqK+5YejP9Q=; h=From:To:Subject:Date:In-Reply-To:References:From; b=XudQnlWaVIZ/9u7sbETpZud7FzJ7gCtZjG73keCjbpNSrn8+E29LicWqyZhs5wzbG 5dQurH+Uu7uT8s3PH3Ap1pZ4EKjo/LKY6Atsmz3b3adtu8Nb9V6H8RkyhWk1oI1Ldz wW/L8/dh3Z3pezToJd/koMe9j1q2b2zXZbEG6f9w= From: "ro at CeBiTec dot Uni-Bielefeld.DE" To: gcc-bugs@gcc.gnu.org Subject: [Bug modula2/101392] cc1gm2 -fdump-system-exports SEGV on Solaris/SPARC Date: Thu, 10 Nov 2022 13:01:21 +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: 12.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: ro at CeBiTec dot Uni-Bielefeld.DE X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned 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=3D101392 --- Comment #6 from ro at CeBiTec dot Uni-Bielefeld.DE --- > --- Comment #5 from Gaius Mulley --- > thanks for this excellent analysis. Here is a patch which will fix the p= assing > of binop.proc in M2GenGCC.c. I'd tried looking into this at least once before, but didn't get anywhere then. > diff --git a/gcc/m2/gm2-gcc/m2expr.def b/gcc/m2/gm2-gcc/m2expr.def > index 8988c78d575..e622d31d09b 100644 > --- a/gcc/m2/gm2-gcc/m2expr.def > +++ b/gcc/m2/gm2-gcc/m2expr.def > @@ -19,7 +19,7 @@ You should have received a copy of the GNU General Publ= ic > License > along with GNU Modula-2; see the file COPYING3. If not see > . *) > > -DEFINITION MODULE m2expr ; > +DEFINITION MODULE FOR "C" m2expr ; > > FROM SYSTEM IMPORT ADDRESS ; > FROM m2tree IMPORT Tree ; That worked like a charm and got the build way beyond the current failure point. I later ran into PR modula2/105392 again, but that proved to be a similar issue. Thanks a lot.=