From: Gaius Mulley Date: Thu, 5 May 2022 16:23:03 +0000 (+0100) Subject: PR-105409 Bugfix add CC1_SPEC to the cc1/cc1plus invocation. X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ae56a3ce252147379dbfd13e250f728e6504ae2b;p=thirdparty%2Fgcc.git 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 --git a/gcc/m2/m2-link-support.h b/gcc/m2/m2-link-support.h index 66a444edbe76..22325968e253 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) " "