From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 2AC243858D20; Wed, 9 Nov 2022 16:30:39 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 2AC243858D20 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1668011439; bh=PH2sm/C19Vcj0gFUyuR5ZL5kUFYyV4NmD/fR6gXp4rQ=; h=From:To:Subject:Date:In-Reply-To:References:From; b=lPUM1+gqXDNH5Vfm2QbxnW2ltoGk4gSC26ywa62uZC1Ea36D1LZepc1BACvDCK8GM ssrGalpZZakVU0K2dIZ+Hilm6fFYtDeYxQrJmAIcyOF4/WC8GU2jY+muOeqfdb818c KoDP9mTOcrBhaY9i6gRu2hQ8fNdmuQEDvgA4Kiv8= From: "gaius at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug modula2/101392] cc1gm2 -fdump-system-exports SEGV on Solaris/SPARC Date: Wed, 09 Nov 2022 16:30:37 +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: gaius at gcc dot gnu.org 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 #5 from Gaius Mulley --- thanks for this excellent analysis. Here is a patch which will fix the pas= sing of binop.proc in M2GenGCC.c. 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 Public 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 ;=