aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorMartin Liska <mliska@suse.cz>2018-07-20 13:00:56 +0200
committerMartin Liska <marxin@gcc.gnu.org>2018-07-20 11:00:56 +0000
commit4e51aacb1c5b97b07438a62e7654507c6c7a9986 (patch)
treea1f73d8edbf4ac03c5ed8822b527b088af19c65a /gcc
parentb89ffb9811a7b3d442ae144ff6f4ab23362f0314 (diff)
downloadgcc-4e51aacb1c5b97b07438a62e7654507c6c7a9986.zip
gcc-4e51aacb1c5b97b07438a62e7654507c6c7a9986.tar.gz
gcc-4e51aacb1c5b97b07438a62e7654507c6c7a9986.tar.bz2
Remove unused code.
2018-07-20 Martin Liska <mliska@suse.cz> * tree.h (DECL_LOCATION_RANGE): Remove unused macro. (get_decl_source_range): Remove unused function. From-SVN: r262900
Diffstat (limited to 'gcc')
-rw-r--r--gcc/ChangeLog5
-rw-r--r--gcc/tree.h10
2 files changed, 5 insertions, 10 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 8733357..eed62bd 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,8 @@
+2018-07-20 Martin Liska <mliska@suse.cz>
+
+ * tree.h (DECL_LOCATION_RANGE): Remove unused macro.
+ (get_decl_source_range): Remove unused function.
+
2018-07-20 Richard Biener <rguenther@suse.de>
* tree-ssa-sccvn.h (struct vn_nary_op_s): Add next member.
diff --git a/gcc/tree.h b/gcc/tree.h
index d15f117..70ac781 100644
--- a/gcc/tree.h
+++ b/gcc/tree.h
@@ -2311,9 +2311,6 @@ extern machine_mode vector_type_mode (const_tree);
#define DECL_IS_BUILTIN(DECL) \
(LOCATION_LOCUS (DECL_SOURCE_LOCATION (DECL)) <= BUILTINS_LOCATION)
-#define DECL_LOCATION_RANGE(NODE) \
- (get_decl_source_range (DECL_MINIMAL_CHECK (NODE)))
-
/* For FIELD_DECLs, this is the RECORD_TYPE, UNION_TYPE, or
QUAL_UNION_TYPE node that the field is a member of. For VAR_DECL,
PARM_DECL, FUNCTION_DECL, LABEL_DECL, RESULT_DECL, and CONST_DECL
@@ -5810,13 +5807,6 @@ set_source_range (tree expr, location_t start, location_t finish);
extern location_t
set_source_range (tree expr, source_range src_range);
-static inline source_range
-get_decl_source_range (tree decl)
-{
- location_t loc = DECL_SOURCE_LOCATION (decl);
- return get_range_from_loc (line_table, loc);
-}
-
/* Return true if it makes sense to promote/demote from_type to to_type. */
inline bool
desired_pro_or_demotion_p (const_tree to_type, const_tree from_type)