This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
PATCH: Remove remaining DEFAULT_VTABLE_THUNKS
- To: <gcc-patches at gcc dot gnu dot org>
- Subject: PATCH: Remove remaining DEFAULT_VTABLE_THUNKS
- From: Krister Walfridsson <cato at df dot lth dot se>
- Date: Sun, 23 Sep 2001 22:19:47 +0200 (MEST)
All definitions of DEFAULT_VTABLE_THUNKS were removed some weeks ago.
The patches below removes two occurrences that has crept back since
then.
Bootstrapped and tested on i386-unknown-netbsdelf1.5X.
/Krister
2001-09-23 Krister Walfridsson <cato@df.lth.se>
* config/i386/netbsd-elf.h: Remove DEFAULT_VTABLE_THUNKS.
* config/stormy16/stormy16.h: Remove DEFAULT_VTABLE_THUNKS.
Index: i386/netbsd-elf.h
===================================================================
RCS file: /cvs/gcc/gcc/gcc/config/i386/netbsd-elf.h,v
retrieving revision 1.1
diff -c -3 -p -r1.1 netbsd-elf.h
*** netbsd-elf.h 2001/07/31 22:53:43 1.1
--- netbsd-elf.h 2001/09/22 16:52:28
*************** the Free Software Foundation, 675 Mass A
*** 142,150 ****
#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) \
--- 142,147 ----
Index: stormy16/stormy16.h
===================================================================
RCS file: /cvs/gcc/gcc/gcc/config/stormy16/stormy16.h,v
retrieving revision 1.9
diff -c -3 -p -r1.9 stormy16.h
*** stormy16.h 2001/09/21 20:26:44 1.9
--- stormy16.h 2001/09/22 16:55:08
*************** do { \
*** 808,825 ****
`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 */
--- 808,813 ----