Skip to content

Commit 075611b

Browse files
committed
x86: Move TARGET_SMALL_REGISTER_CLASSES_FOR_MODE_P to i386.cc
Move the TARGET_SMALL_REGISTER_CLASSES_FOR_MODE_P target hook from i386.h to i386.cc. * config/i386/i386.h (TARGET_SMALL_REGISTER_CLASSES_FOR_MODE_P): Moved to ... * config/i386/i386.cc (TARGET_SMALL_REGISTER_CLASSES_FOR_MODE_P): Here. Signed-off-by: H.J. Lu <[email protected]>
1 parent d880cb4 commit 075611b

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

gcc/config/i386/i386.cc

+6
Original file line numberDiff line numberDiff line change
@@ -27084,6 +27084,12 @@ ix86_libgcc_floating_mode_supported_p
2708427084
#define TARGET_PREFERRED_RELOAD_CLASS ix86_preferred_reload_class
2708527085
#undef TARGET_PREFERRED_OUTPUT_RELOAD_CLASS
2708627086
#define TARGET_PREFERRED_OUTPUT_RELOAD_CLASS ix86_preferred_output_reload_class
27087+
/* When this hook returns true for MODE, the compiler allows
27088+
registers explicitly used in the rtl to be used as spill registers
27089+
but prevents the compiler from extending the lifetime of these
27090+
registers. */
27091+
#undef TARGET_SMALL_REGISTER_CLASSES_FOR_MODE_P
27092+
#define TARGET_SMALL_REGISTER_CLASSES_FOR_MODE_P hook_bool_mode_true
2708727093
#undef TARGET_CLASS_LIKELY_SPILLED_P
2708827094
#define TARGET_CLASS_LIKELY_SPILLED_P ix86_class_likely_spilled_p
2708927095
#undef TARGET_IRA_CALLEE_SAVED_REGISTER_COST_SCALE

gcc/config/i386/i386.h

-6
Original file line numberDiff line numberDiff line change
@@ -1467,12 +1467,6 @@ enum reg_class
14671467

14681468
#define REGNO_REG_CLASS(REGNO) (regclass_map[(REGNO)])
14691469

1470-
/* When this hook returns true for MODE, the compiler allows
1471-
registers explicitly used in the rtl to be used as spill registers
1472-
but prevents the compiler from extending the lifetime of these
1473-
registers. */
1474-
#define TARGET_SMALL_REGISTER_CLASSES_FOR_MODE_P hook_bool_mode_true
1475-
14761470
#define QI_REG_P(X) (REG_P (X) && QI_REGNO_P (REGNO (X)))
14771471
#define QI_REGNO_P(N) IN_RANGE ((N), FIRST_QI_REG, LAST_QI_REG)
14781472

0 commit comments

Comments
 (0)