PATCH: Remove DEFAULT_VTABLE_THUNKS (again)
Loren James Rittle
rittle@latour.rsch.comm.mot.com
Mon Nov 26 11:25:00 GMT 2001
In article < 20011120145331.E16566@redhat.com >,
Richard Henderson <rth@redhat.com> writes:
> On Mon, Nov 19, 2001 at 11:49:47PM -0600, Loren James Rittle wrote:
>> * config/freebsd.h: Remove DEFAULT_VTABLE_THUNKS (again).
> Ok everywhere. Nothing looks at this macro anymore.
> So kill the netbsd references (and whereever else) too.
OK (actually, I had done the above patch as obvious and tested), I
have installed this patch on mainline (3.0 branch never had Nathan's
original cleanup in this area):
* config/stormy16/stormy16.h: Remove DEFAULT_VTABLE_THUNKS.
* config/i386/netbsd-elf.h: Likewise.
Index: ./stormy16/stormy16.h
===================================================================
RCS file: /cvs/gcc/egcs/gcc/config/stormy16/stormy16.h,v
retrieving revision 1.23
diff -c -r1.23 stormy16.h
*** stormy16.h 2001/11/22 02:19:57 1.23
--- stormy16.h 2001/11/26 19:18:53
***************
*** 809,826 ****
`HOST_FLOAT_WORDS_BIG_ENDIAN' for the host. */
#define TARGET_FLOAT_FORMAT IEEE_FLOAT_FORMAT
- /* GNU CC supports two ways of implementing C++ vtables: traditional or with
- so-called "thunks". The flag `-fvtable-thunk' chooses between them. Define
- this macro to be a C expression for the default value of that flag. If
- `DEFAULT_VTABLE_THUNKS' is 0, GNU CC uses the traditional implementation by
- default. The "thunk" implementation is more efficient (especially if you
- have provided an implementation of `ASM_OUTPUT_MI_THUNK', but is not binary
- compatible with code compiled using the traditional implementation. If you
- are writing a new ports, define `DEFAULT_VTABLE_THUNKS' to 1.
-
- If you do not define this macro, the default for `-fvtable-thunk' is 0. */
- #define DEFAULT_VTABLE_THUNKS 1
-
/* Layout of Source Language Data Types */
--- 809,814 ----
Index: ./i386/netbsd-elf.h
===================================================================
RCS file: /cvs/gcc/egcs/gcc/config/i386/netbsd-elf.h,v
retrieving revision 1.5
diff -c -r1.5 netbsd-elf.h
*** netbsd-elf.h 2001/10/31 14:32:29 1.5
--- netbsd-elf.h 2001/11/26 19:18:53
***************
*** 143,151 ****
#undef HAS_INIT_SECTION
- #undef DEFAULT_VTABLE_THUNKS
- #define DEFAULT_VTABLE_THUNKS 1
-
/* This is how we tell the assembler that two symbols have the same value. */
#define ASM_OUTPUT_DEF(FILE,NAME1,NAME2) \
--- 143,148 ----
More information about the Gcc-patches
mailing list