gcc/gcc/config/m68k
Richard Henderson 3961e8fe9e target.h (gcc_target.asm_out): Merge output_mi_thunk and output_mi_vcall_thunk into a single hook.
gcc/
	* target.h (gcc_target.asm_out): Merge output_mi_thunk and
	output_mi_vcall_thunk into a single hook.  Add can_output_mi_thunk.
	* target-def.h (TARGET_ASM_OUTPUT_MI_THUNK): Don't conditionalize.
	(TARGET_ASM_OUTPUT_MI_VCALL_THUNK): Remove.
	(TARGET_ASM_CAN_OUTPUT_MI_THUNK): New.
	(TARGET_ASM_OUT): Update.
	* hooks.c (hook_bool_tree_hwi_hwi_tree_false): New.
	(hook_bool_tree_hwi_hwi_tree_true): New.
	(default_can_output_mi_thunk_no_vcall): New.
	* hooks.h: Declare them.
	* system.h (ASM_OUTPUT_MI_THUNK): Poison.

	* config/alpha/alpha.c (TARGET_ASM_CAN_OUTPUT_MI_THUNK): New.
	(alpha_output_mi_thunk_osf): Add VCALL_OFFSET parameter.
	* config/arm/arm.c, config/cris/cris.c, config/frv/frv.c,
	config/i960/i960.c, config/ia64/ia64.c, config/m68k/m68k.c,
	config/mmix/mmix.c, config/pa/pa.c, config/sparc/sparc.c,
	config/stormy16/stormy16.c: Similarly.

	* config/i386/i386.c (x86_output_mi_thunk): Merge vcall_offset code.
	Handle 64-bit properly.  Streamline.
	(x86_output_mi_vcall_thunk): Remove.
	(x86_this_parameter): Rename from ia32_this_parameter; handle 64-bit.
	(x86_can_output_mi_thunk): New.
	(TARGET_ASM_OUTPUT_MI_VCALL_THUNK): Remove.
	(TARGET_ASM_CAN_OUTPUT_MI_THUNK): New.
	(override_options): Don't zap targetm.asm_out.output_mi_vcall_thunk.

	* config/rs6000/rs6000.c (rs6000_output_mi_thunk): Rename from
	output_mi_thunk; make static; always use function_section.
	(TARGET_ASM_OUTPUT_MI_THUNK): New.
	(TARGET_ASM_CAN_OUTPUT_MI_THUNK): New.
	(rs6000_ra_ever_killed): Test no_new_pseudos not
	targetm.asm_out.output_mi_thunk in conjunction with thunks.
	* config/rs6000/rs6000-protos.h: Update.
	* config/rs6000/sysv4.h (TARGET_ASM_OUTPUT_MI_THUNK): Remove.
	* config/rs6000/xcoff.h (ASM_DECLARE_FUNCTION_NAME): Don't call
	xcoffout_declare_function when using rs6000_output_mi_thunk.

	* config/s390/s390.c (s390_output_mi_thunk): Rename from
	s390_output_mi_vcall_thunk.
	(TARGET_ASM_OUTPUT_MI_THUNK): Remove.
	(TARGET_ASM_CAN_OUTPUT_MI_THUNK): New.

	* config/vax/vax.c (vax_output_mi_thunk): Static; add vcall_offset.
	(TARGET_ASM_OUTPUT_MI_THUNK, TARGET_ASM_CAN_OUTPUT_MI_THUNK): New.
	* config/vax/vax-protos.h: Update.
	* config/vax/vax.h (ASM_OUTPUT_MI_THUNK): Remove.

gcc/cp/
        * method.c (use_thunk): Always compute vcall_value; assert that
        it is not zero.  Use can_output_mi_thunk; use output_mi_thunk
        for vcall thunks as well.

From-SVN: r58424
2002-10-22 16:05:28 -07:00
..
3b1.h chorus.h: Consistently define *_DEBUGGING_INFO with the value 1. 2002-08-29 21:40:18 +00:00
3b1g.h chorus.h: Consistently define *_DEBUGGING_INFO with the value 1. 2002-08-29 21:40:18 +00:00
amix.h arc.c (output_shift): Use stdio instead of asm_fprintf. 2002-08-20 23:27:03 +00:00
atari.h arc.c (output_shift): Use stdio instead of asm_fprintf. 2002-08-20 23:27:03 +00:00
ccur-GAS.h chorus.h: Consistently define *_DEBUGGING_INFO with the value 1. 2002-08-29 21:40:18 +00:00
coff.h chorus.h: Consistently define *_DEBUGGING_INFO with the value 1. 2002-08-29 21:40:18 +00:00
crds.h cpplib.c (do_sccs): Handle #sccs on all systems. 2002-07-17 21:31:42 +00:00
crti.s
crtn.s
fpgnulib.c
hp2bsd.h chorus.h: Consistently define *_DEBUGGING_INFO with the value 1. 2002-08-29 21:40:18 +00:00
hp3bsd.h chorus.h: Consistently define *_DEBUGGING_INFO with the value 1. 2002-08-29 21:40:18 +00:00
hp3bsd44.h chorus.h: Consistently define *_DEBUGGING_INFO with the value 1. 2002-08-29 21:40:18 +00:00
hp310.h c-common.c, [...]: Delete code implementing -traditional mode. 2002-02-27 18:48:07 +00:00
hp310g.h chorus.h: Consistently define *_DEBUGGING_INFO with the value 1. 2002-08-29 21:40:18 +00:00
hp320.h real.c (real_to_decimal): Accept BUF_SIZE and CROP_TRAILING_ZEROS as arguments. 2002-10-15 17:40:39 -07:00
hp320g.h chorus.h: Consistently define *_DEBUGGING_INFO with the value 1. 2002-08-29 21:40:18 +00:00
hpux7.h
lb1sf68.asm
linux-aout.h chorus.h: Consistently define *_DEBUGGING_INFO with the value 1. 2002-08-29 21:40:18 +00:00
linux.h target.h (struct gcc_target): Line wrap. 2002-10-20 15:37:14 -07:00
m68k-aout.h chorus.h: Consistently define *_DEBUGGING_INFO with the value 1. 2002-08-29 21:40:18 +00:00
m68k-coff.h
m68k-none.h
m68k-protos.h target.h (struct gcc_target): Line wrap. 2002-10-20 15:37:14 -07:00
m68k-psos.h
m68k.c target.h (gcc_target.asm_out): Merge output_mi_thunk and output_mi_vcall_thunk into a single hook. 2002-10-22 16:05:28 -07:00
m68k.h real.c (real_to_decimal): Accept BUF_SIZE and CROP_TRAILING_ZEROS as arguments. 2002-10-15 17:40:39 -07:00
m68k.md Fix thinko last change. 2002-06-20 16:50:13 -07:00
m68kelf.h m68k.h (OVERRIDE_OPTIONS): Move additional code ... 2002-10-03 19:19:40 -07:00
m68kemb.h
m68kv4.h m68k.h (OVERRIDE_OPTIONS): Move additional code ... 2002-10-03 19:19:40 -07:00
m68020-elf.h
math-68881.h configure.in: Prepend ${srcdir}/config/${cpu_type}/ instead of ${srcdir}/ginclude/ to every... 2002-01-01 23:21:01 +00:00
mot3300-crt0.S
mot3300.h chorus.h: Consistently define *_DEBUGGING_INFO with the value 1. 2002-08-29 21:40:18 +00:00
mot3300Mcrt0.S
netbsd-elf.h target.h (struct gcc_target): Line wrap. 2002-10-20 15:37:14 -07:00
netbsd.h chorus.h: Consistently define *_DEBUGGING_INFO with the value 1. 2002-08-29 21:40:18 +00:00
openbsd.h target.h (struct gcc_target): Line wrap. 2002-10-20 15:37:14 -07:00
pbb.h chorus.h: Consistently define *_DEBUGGING_INFO with the value 1. 2002-08-29 21:40:18 +00:00
plexus.h chorus.h: Consistently define *_DEBUGGING_INFO with the value 1. 2002-08-29 21:40:18 +00:00
rtemself.h rtems.h, [...] (*-rtems*): Cleanup pass to move common definitions to config/rtems.h and make the targets... 2002-04-12 13:35:03 +00:00
sgs.h
sun2.h chorus.h: Consistently define *_DEBUGGING_INFO with the value 1. 2002-08-29 21:40:18 +00:00
sun2o4.h real.c (real_to_decimal): Accept BUF_SIZE and CROP_TRAILING_ZEROS as arguments. 2002-10-15 17:40:39 -07:00
sun3.h real.c (real_to_decimal): Accept BUF_SIZE and CROP_TRAILING_ZEROS as arguments. 2002-10-15 17:40:39 -07:00
sun3mach.h
sun3n.h
sun3n3.h
sun3o3.h
t-crtstuff
t-hp320
t-linux
t-linux-aout
t-m68kbare config.gcc (a29k-*-rtems): General cleanup across all RTEMS targets... 2002-02-13 22:49:03 +00:00
t-m68kelf t-m68kbare (MULTILIB_OPTIONS): Add 68040 and 68060. 2002-01-23 17:21:48 -08:00
t-mot3300
t-mot3300-gald
t-mot3300-gas
t-mot3300-gld
t-openbsd
t-vxworks68
tower-as.h chorus.h: Consistently define *_DEBUGGING_INFO with the value 1. 2002-08-29 21:40:18 +00:00
tower.h
vxm68k.h chorus.h: Consistently define *_DEBUGGING_INFO with the value 1. 2002-08-29 21:40:18 +00:00