aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Pinski <andrew.pinski@oss.qualcomm.com>2025-08-19 16:14:57 -0700
committerAndrew Pinski <andrew.pinski@oss.qualcomm.com>2025-08-20 05:41:15 -0700
commit39acf3c9dd767626b422843adb8f5be06206af08 (patch)
tree54390e6977ab9340ebce2c3119d9dcd949220bf5
parent724d88900b7aa8f249b737a33e9b11eedf48ebae (diff)
downloadgcc-39acf3c9dd767626b422843adb8f5be06206af08.zip
gcc-39acf3c9dd767626b422843adb8f5be06206af08.tar.gz
gcc-39acf3c9dd767626b422843adb8f5be06206af08.tar.bz2
sra: Make build_ref_for_offset static [PR121568]
build_ref_for_offset was originally made external with r0-95095-g3f84bf08c48ea4. The call was extracted out into ipa_get_jf_ancestor_result by r0-110216-g310bc6334823b9. Then the call was removed by r10-7273-gf3280e4c0c98e1. So there is no use of build_ref_for_offset outside of SRA, so let's make it static again. Bootstrapped and tested on x86_64-linux-gnu. PR tree-optimization/121568 gcc/ChangeLog: * ipa-prop.h (build_ref_for_offset): Remove. * tree-sra.cc (build_ref_for_offset): Make static. Signed-off-by: Andrew Pinski <andrew.pinski@oss.qualcomm.com>
-rw-r--r--gcc/ipa-prop.h4
-rw-r--r--gcc/tree-sra.cc2
2 files changed, 1 insertions, 5 deletions
diff --git a/gcc/ipa-prop.h b/gcc/ipa-prop.h
index 3bd442f..74c9a63 100644
--- a/gcc/ipa-prop.h
+++ b/gcc/ipa-prop.h
@@ -1276,10 +1276,6 @@ bool unadjusted_ptr_and_unit_offset (tree op, tree *ret,
void ipa_get_range_from_ip_invariant (vrange &r, tree val, cgraph_node *node);
void ipa_prop_cc_finalize (void);
-/* From tree-sra.cc: */
-tree build_ref_for_offset (location_t, tree, poly_int64, bool, tree,
- gimple_stmt_iterator *, bool);
-
/* In ipa-cp.cc */
void ipa_cp_cc_finalize (void);
bool ipa_return_value_range (value_range &range, tree decl);
diff --git a/gcc/tree-sra.cc b/gcc/tree-sra.cc
index 24ed2b2..921664e 100644
--- a/gcc/tree-sra.cc
+++ b/gcc/tree-sra.cc
@@ -1882,7 +1882,7 @@ make_fancy_name (tree expr)
the current one as specified by INSERT_AFTER. This function is not capable
of handling bitfields. */
-tree
+static tree
build_ref_for_offset (location_t loc, tree base, poly_int64 offset,
bool reverse, tree exp_type, gimple_stmt_iterator *gsi,
bool insert_after)