https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105409

--- Comment #3 from ro at CeBiTec dot Uni-Bielefeld.DE <ro at CeBiTec dot 
Uni-Bielefeld.DE> ---
> It seems gm2 omits CC1_SPEC from the cc1/cc1plus invocation in
> gcc/m2/m2-link-support.h.

Indeed: the following trivial patch works wonders indeed:

diff --git a/gcc/m2/m2-link-support.h b/gcc/m2/m2-link-support.h
--- a/gcc/m2/m2-link-support.h
+++ b/gcc/m2/m2-link-support.h
@@ -52,7 +52,7 @@ along with GCC; see the file COPYING3.  
    compiler.  */

 #define GM2CC(INPUT,OUTPUT) \
-  "%{!fno-exceptions:cc1plus;:cc1} " GM2CC_OPTIONS " " INPUT " \
+  "%{!fno-exceptions:cc1plus;:cc1} %1 " GM2CC_OPTIONS " " INPUT " \
      -o %d" SCAFFOLDNAME ".s \n\
   " AS(SCAFFOLDNAME ".s",OUTPUT) " "

With it, I get the following test results on sparcv9-sun-solaris2.11:

                === gm2 Summary for unix ===

# of expected passes            11721
# of unexpected failures        7
# of unresolved testcases       1

                === gm2 Summary for unix/-m32 ===

# of expected passes            11706
# of unexpected failures        22
# of unresolved testcases       1

                === gm2 Summary ===

# of expected passes            23427
# of unexpected failures        29
# of unresolved testcases       2

Reply via email to