ptrmem.C: Lowest bit is significant on SH5.

* g++.old-deja/g++.abi/ptrmem.C: Lowest bit is significant on SH5.
* g++.old-deja/g++.jason/thunk3.C: XFAIL on sh64-*-*.

From-SVN: r49629
This commit is contained in:
Alexandre Oliva 2002-02-09 03:06:47 +00:00 committed by Alexandre Oliva
parent 40fe0ec3ce
commit 7aa00daf45
3 changed files with 7 additions and 2 deletions

View File

@ -1,3 +1,8 @@
2002-02-09 Alexandre Oliva <aoliva@redhat.com>
* g++.old-deja/g++.abi/ptrmem.C: Lowest bit is significant on SH5.
* g++.old-deja/g++.jason/thunk3.C: XFAIL on sh64-*-*.
2002-02-08 Richard Henderson <rth@redhat.com>
* gcc.c-torture/compile/labels-3.c: New.

View File

@ -6,7 +6,7 @@
function. However, some platforms use all bits to encode a
function pointer. Such platforms use the lowest bit of the delta,
that is shifted left by one bit. */
#if defined __MN10300__ || defined __arm__ || defined __thumb__
#if defined __MN10300__ || defined __SH5__ || defined __arm__ || defined __thumb__
#define ADJUST_PTRFN(func, virt) ((void (*)())(func))
#define ADJUST_DELTA(delta, virt) (((delta) << 1) + !!(virt))
#else

View File

@ -2,7 +2,7 @@
// Note that this will break on any target that uses the generic thunk
// support, because it doesn't support variadic functions.
// excess errors test - XFAIL mips*-*-* rs6000-*-* powerpc-*-eabi m68k-*-coff m68k-motorola-sysv m88k-motorola-sysv3 mn10300-*-* mn10200-*-* v850-*-* sh-*-* h8*-*-*
// excess errors test - XFAIL mips*-*-* rs6000-*-* powerpc-*-eabi m68k-*-coff m68k-motorola-sysv m88k-motorola-sysv3 mn10300-*-* mn10200-*-* v850-*-* sh-*-* sh64-*-* h8*-*-*
#include <stdarg.h>