This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[PATCH] S/390: Handle NULLPTR_TYPE as function argument


Currently on s390 the g++.dg/debug/nullptr01.C fails with an ICE in the
function arg handling. We need to handle the new NULLPTR_TYPE as well.

Bootstrapped and tested on s390x-ibm-linux-gnu:

 === libstdc++ Summary ===

-# of expected passes 8080
-# of unexpected failures 48
+# of expected passes 8164
+# of unexpected failures 1
 # of expected failures 86
-# of unresolved testcases 37
 # of unsupported tests 100
=== g++ Summary ===

-# of expected passes 25766
-# of unexpected failures 65
+# of expected passes 25852
+# of unexpected failures 7
 # of expected failures 156
-# of unresolved testcases 31
 # of unsupported tests 380


Christian

2010-11-19  Christian Borntraeger  <borntraeger@de.ibm.com>>

	* config/s390/s390.c (s390_function_arg_integer): Handle NULLPTR_TYPE.

Index: gcc/config/s390/s390.c
===================================================================
*** gcc/config/s390/s390.c.orig
--- gcc/config/s390/s390.c
*************** s390_function_arg_integer (enum machine_
*** 8433,8438 ****
--- 8433,8439 ----
    /* We accept small integral (and similar) types.  */
    if (INTEGRAL_TYPE_P (type)
        || POINTER_TYPE_P (type)
+       || TREE_CODE (type) == NULLPTR_TYPE
        || TREE_CODE (type) == OFFSET_TYPE
        || (TARGET_SOFT_FLOAT && TREE_CODE (type) == REAL_TYPE))
      return true;


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]