From: Jason Merrill Date: Wed, 16 Nov 1994 00:45:41 +0000 (+0000) Subject: (FUNCTION_VALUE): Use POINTER_TYPE_P rather than checking the type against POINTER_TY... X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=b92f3978523b33cf78f114c7d08c3071b06d80de;p=gcc.git (FUNCTION_VALUE): Use POINTER_TYPE_P rather than checking the type against POINTER_TYPE (to include references). (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 --- diff --git a/gcc/config/m68k/mot3300.h b/gcc/config/m68k/mot3300.h index 341333ad64a..3144b96aa3e 100644 --- a/gcc/config/m68k/mot3300.h +++ b/gcc/config/m68k/mot3300.h @@ -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)))