aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMartin Jambor <mjambor@suse.cz>2019-09-25 16:24:33 +0200
committerMartin Jambor <jamborm@gcc.gnu.org>2019-09-25 16:24:33 +0200
commitb867051636ee21523b993484a0fa2fe915c25b21 (patch)
tree2f128da156bf6d1142cc07010750719f355cf80c
parentb134cab0cfb4283b3b5581d81ae777d684af82a9 (diff)
downloadgcc-b867051636ee21523b993484a0fa2fe915c25b21.zip
gcc-b867051636ee21523b993484a0fa2fe915c25b21.tar.gz
gcc-b867051636ee21523b993484a0fa2fe915c25b21.tar.bz2
Remove newly unused function and variable in tree-sra
Hi, Martin and his clang warnings discovered that I forgot to remove a static inline function and a variable when ripping out the old IPA-SRA from tree-sra.c and both are now unused. Thus I am doing that now with the patch below which I will commit as obvious (after including it in a round of a bootstrap and testing on an x86_64-linux). Thanks, Martin 2019-09-25 Martin Jambor <mjambor@suse.cz> * tree-sra.c (no_accesses_p): Remove. (no_accesses_representant): Likewise. From-SVN: r276128
-rw-r--r--gcc/ChangeLog5
-rw-r--r--gcc/tree-sra.c11
2 files changed, 5 insertions, 11 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index fa43ab1..6786524 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,8 @@
+2019-09-25 Martin Jambor <mjambor@suse.cz>
+
+ * tree-sra.c (no_accesses_p): Remove.
+ (no_accesses_representant): Likewise.
+
2019-09-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
* config/aarch64/arm_neon.h (vaba_s8): Use __ in identifiers
diff --git a/gcc/tree-sra.c b/gcc/tree-sra.c
index 4858932..ba6d540 100644
--- a/gcc/tree-sra.c
+++ b/gcc/tree-sra.c
@@ -327,17 +327,6 @@ static struct obstack name_obstack;
propagated to their assignment counterparts. */
static struct access *work_queue_head;
-/* Representative of no accesses at all. */
-static struct access no_accesses_representant;
-
-/* Predicate to test the special value. */
-
-static inline bool
-no_accesses_p (struct access *access)
-{
- return access == &no_accesses_representant;
-}
-
/* Dump contents of ACCESS to file F in a human friendly way. If GRP is true,
representative fields are dumped, otherwise those which only describe the
individual access are. */