(FUNCTION_VALUE): Use POINTER_TYPE_P rather than checking the type against POINTER_TY...
authorJason Merrill <merrill@gnu.org>
Wed, 16 Nov 1994 00:45:41 +0000 (00:45 +0000)
committerJason Merrill <merrill@gnu.org>
Wed, 16 Nov 1994 00:45:41 +0000 (00:45 +0000)
(FUNCTION_VALUE): Use
        POINTER_TYPE_P rather than checking the type against POINTER_TYPE
        (to include references).
 Don't define __PTR_TO_INT and
        __INT_TO_PTR.

From-SVN: r8453

gcc/config/m68k/mot3300.h

index 341333ad64abf982b109259431e35f82db8e0459..3144b96aa3e080b50409914e202b0ecb5f42a945 100644 (file)
@@ -159,11 +159,6 @@ output_file_directive ((FILE), main_input_filename)
 #undef CPP_PREDEFINES
 #define CPP_PREDEFINES "-Dm68k -Dunix -DsysV68 -D__motorola__ -Asystem(unix) -Asystem(svr3) -Acpu(m68k) -Amachine(m68k)"
 
-/* Override part of the obstack macros.  */
-
-#define __PTR_TO_INT(P) ((int)(P))
-#define __INT_TO_PTR(P) ((char *)(P))
-
 #undef TARGET_VERSION
 #define TARGET_VERSION fprintf (stderr, " (68k, SGS/AT&T sysV68 syntax)");
 
@@ -184,7 +179,7 @@ output_file_directive ((FILE), main_input_filename)
 #define FUNCTION_VALUE(VALTYPE,FUNC) \
   (TREE_CODE (VALTYPE) == REAL_TYPE && TARGET_68881    \
    ? gen_rtx (REG, TYPE_MODE (VALTYPE), 16)            \
-   : (TREE_CODE (VALTYPE) == POINTER_TYPE              \
+   : (POINTER_TYPE_P (VALTYPE)                         \
       ? gen_rtx (REG, TYPE_MODE (VALTYPE), 8)          \
       : gen_rtx (REG, TYPE_MODE (VALTYPE), 0)))