From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 1499) id 3DC0B3858D3C; Thu, 5 May 2022 16:25:40 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 3DC0B3858D3C Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: Gaius Mulley To: gcc-cvs@gcc.gnu.org Subject: [gcc/devel/modula-2] PR-105409 Bugfix add CC1_SPEC to the cc1/cc1plus invocation. X-Act-Checkin: gcc X-Git-Author: Gaius Mulley X-Git-Refname: refs/heads/devel/modula-2 X-Git-Oldrev: b94876d89da4b36e67982d0a402ea021b280c27a X-Git-Newrev: ae56a3ce252147379dbfd13e250f728e6504ae2b Message-Id: <20220505162540.3DC0B3858D3C@sourceware.org> Date: Thu, 5 May 2022 16:25:40 +0000 (GMT) X-BeenThere: gcc-cvs@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-cvs mailing list List-Unsubscribe: , List-Archive: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 05 May 2022 16:25:40 -0000 https://gcc.gnu.org/g:ae56a3ce252147379dbfd13e250f728e6504ae2b commit ae56a3ce252147379dbfd13e250f728e6504ae2b Author: Gaius Mulley Date: Thu May 5 17:23:03 2022 +0100 PR-105409 Bugfix add CC1_SPEC to the cc1/cc1plus invocation. Introducing patch devised by Rainer Orth . The lack of CC1_SPEC options to cc1plus can cause an ICE. gcc/m2/ChangeLog: * m2-link-support.h (GM2CC): Add CC1_SPEC to the cc1/cc1plus invocation. Signed-off-by: Gaius Mulley Diff: --- gcc/m2/m2-link-support.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gcc/m2/m2-link-support.h b/gcc/m2/m2-link-support.h index 66a444edbe7..22325968e25 100644 --- a/gcc/m2/m2-link-support.h +++ b/gcc/m2/m2-link-support.h @@ -56,7 +56,7 @@ along with GCC; see the file COPYING3. If not see compiler. */ #define GM2CC(INPUT,OUTPUT) \ - "%{!fno-exceptions:cc1plus;:cc1} " GM2CC_OPTIONS " " INPUT " \ + "%{!fno-exceptions:cc1plus;:cc1} %1" GM2CC_OPTIONS " " INPUT " \ -o " RM_IF_NOSAVETEMP SCAFFOLDNAME ".s \n\ " AS(SCAFFOLDNAME ".s",OUTPUT) " "