]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
PR-105409 Bugfix add CC1_SPEC to the cc1/cc1plus invocation.
authorGaius Mulley <gaius.mulley@southwales.ac.uk>
Thu, 5 May 2022 16:23:03 +0000 (17:23 +0100)
committerGaius Mulley <gaius.mulley@southwales.ac.uk>
Thu, 5 May 2022 16:23:03 +0000 (17:23 +0100)
Introducing patch devised by Rainer Orth <ro@CeBiTec.Uni-Bielefeld.de>.
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 <gaius.mulley@southwales.ac.uk>
gcc/m2/m2-link-support.h

index 66a444edbe763f1edfac9b965649961a624fe419..22325968e253d9458695d2d6457ce1341d0c7df6 100644 (file)
@@ -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) " "