diff options
author | Jason Merrill <merrill@gnu.org> | 1994-11-16 00:45:41 +0000 |
---|---|---|
committer | Jason Merrill <merrill@gnu.org> | 1994-11-16 00:45:41 +0000 |
commit | b92f3978523b33cf78f114c7d08c3071b06d80de (patch) | |
tree | 751db4a32b9e060c188e00d262a0e9144603b001 | |
parent | 9e8b2461bd1f8b308ca1d0fe406e46a97822316c (diff) | |
download | gcc-b92f3978523b33cf78f114c7d08c3071b06d80de.zip gcc-b92f3978523b33cf78f114c7d08c3071b06d80de.tar.gz gcc-b92f3978523b33cf78f114c7d08c3071b06d80de.tar.bz2 |
(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
-rw-r--r-- | gcc/config/m68k/mot3300.h | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/gcc/config/m68k/mot3300.h b/gcc/config/m68k/mot3300.h index 341333a..3144b96 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))) |