From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 452C23858D28; Tue, 17 Jan 2023 16:52:21 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 452C23858D28 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1673974341; bh=Bnh1j3JqFfQwKk/A4OcGJGG6hI0ndRwQeJFibY/6DVg=; h=From:To:Subject:Date:In-Reply-To:References:From; b=awUvdOD7oMvTc1k+msEG+yZfEX6ullJ2lsYBNdfxNPUlAo2kmAk8PF/hoRLaf95Z0 nN+ZFg5XCy5w2PbnMy6O/1ib44ylMmIuYm/92lGacrhGUQtIF0X6jAUhJdSEL4PJKZ gzYXRxzOi+UVetJlHyPH4sMHXEku+mWH9cvTeXT4= From: "iains at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug modula2/102343] gm2/cpp/pass/subaddr.mod FAILs for non-default multilib Date: Tue, 17 Jan 2023 16:52:20 +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: testsuite-fail X-Bugzilla-Severity: normal X-Bugzilla-Who: iains at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: iains at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: attachments.created 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=3D102343 --- Comment #2 from Iain Sandoe --- Created attachment 54289 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=3D54289&action=3Dedit Patch for discussion This applies on top of the patch for PR108182 (and will most likely not work without those changes). * -save-temps* should be fixed * we no longer try to write those files into the install directories * we should now support " gm2 -E .... " * renamed the pre-processed file extension to ".m2i" we cannot use ".i" or= GCC will try to process it with cc1. * We now have default handers for .mod and .m2i (maybe we should add .def = is that something used stand-alone?) So trying to use them with a compiler wit= hout modula-2 should give a more sensible diagnostic. * we should handle " gm2 foo.mod.m2i " * last, but most important, we now collect the command line options needed= to set the target state into the preprocessor command line. This then provides the correct pre-defines and the test case then does the right thing on a 32b multilib on a 64b host. If there are no comments in the next week or so I'll post this to the list.=