diff options
author | Xi Ruoyao <xry111@xry111.site> | 2024-11-02 20:20:32 +0800 |
---|---|---|
committer | Xi Ruoyao <xry111@xry111.site> | 2024-11-25 10:52:22 +0800 |
commit | e1ac811d5a724e6714465ad951703d334248bc83 (patch) | |
tree | c9194ef12ec9e2261968368fc53fd1bc0b74cfa0 /gcc | |
parent | 1d8de1e93ea00f7797f61cf8e05c47ca86f21f8c (diff) | |
download | gcc-e1ac811d5a724e6714465ad951703d334248bc83.zip gcc-e1ac811d5a724e6714465ad951703d334248bc83.tar.gz gcc-e1ac811d5a724e6714465ad951703d334248bc83.tar.bz2 |
pa: Remove pa_section_type_flags
It's no longer needed since r15-4842 (when the target-independent code
started to handle the case).
gcc/ChangeLog:
* config/pa/pa.cc (pa_section_type_flags): Remove.
(TARGET_SECTION_TYPE_FLAGS): Remove.
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/config/pa/pa.cc | 22 |
1 files changed, 0 insertions, 22 deletions
diff --git a/gcc/config/pa/pa.cc b/gcc/config/pa/pa.cc index 941ef3a..776cb1f 100644 --- a/gcc/config/pa/pa.cc +++ b/gcc/config/pa/pa.cc @@ -198,7 +198,6 @@ static machine_mode pa_c_mode_for_floating_type (enum tree_index); static section *pa_function_section (tree, enum node_frequency, bool, bool); static bool pa_cannot_force_const_mem (machine_mode, rtx); static bool pa_legitimate_constant_p (machine_mode, rtx); -static unsigned int pa_section_type_flags (tree, const char *, int); static bool pa_legitimate_address_p (machine_mode, rtx, bool, code_helper = ERROR_MARK); static bool pa_callee_copies (cumulative_args_t, const function_arg_info &); @@ -407,8 +406,6 @@ static size_t n_deferred_plabels = 0; #undef TARGET_LEGITIMATE_CONSTANT_P #define TARGET_LEGITIMATE_CONSTANT_P pa_legitimate_constant_p -#undef TARGET_SECTION_TYPE_FLAGS -#define TARGET_SECTION_TYPE_FLAGS pa_section_type_flags #undef TARGET_LEGITIMATE_ADDRESS_P #define TARGET_LEGITIMATE_ADDRESS_P pa_legitimate_address_p @@ -10900,25 +10897,6 @@ pa_legitimate_constant_p (machine_mode mode, rtx x) return true; } -/* Implement TARGET_SECTION_TYPE_FLAGS. */ - -static unsigned int -pa_section_type_flags (tree decl, const char *name, int reloc) -{ - unsigned int flags; - - flags = default_section_type_flags (decl, name, reloc); - - /* Function labels are placed in the constant pool. This can - cause a section conflict if decls are put in ".data.rel.ro" - or ".data.rel.ro.local" using the __attribute__ construct. */ - if (strcmp (name, ".data.rel.ro") == 0 - || strcmp (name, ".data.rel.ro.local") == 0) - flags |= SECTION_WRITE | SECTION_RELRO; - - return flags; -} - /* pa_legitimate_address_p recognizes an RTL expression that is a valid memory address for an instruction. The MODE argument is the machine mode for the MEM expression that wants to use this address. |