summaryrefslogtreecommitdiff
path: root/gcc/ada
diff options
context:
space:
mode:
authornathan <nathan@138bc75d-0d04-0410-961f-82ee72b054a4>2003-05-03 16:43:17 +0000
committernathan <nathan@138bc75d-0d04-0410-961f-82ee72b054a4>2003-05-03 16:43:17 +0000
commit0d32ca97ddd3e3ae7cf48ad5b102bbdcfac3ad71 (patch)
tree9abc9de1f1b6b0136c4e077b95cc8d3d4278504a /gcc/ada
parent1a975cb784cc0cc15a6080bc138f1c5faf1b27ee (diff)
downloadgcc-0d32ca97ddd3e3ae7cf48ad5b102bbdcfac3ad71.tar.gz
* trans.c (tree_transform): Use location_t and input_location
directly. (build_unit_elab): Likewise. * utils.c (create_label_decl): Likewise. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@66433 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/ada')
-rw-r--r--gcc/ada/ChangeLog7
-rw-r--r--gcc/ada/trans.c6
-rw-r--r--gcc/ada/utils.c3
3 files changed, 10 insertions, 6 deletions
diff --git a/gcc/ada/ChangeLog b/gcc/ada/ChangeLog
index a4afa629421..cadce12ca85 100644
--- a/gcc/ada/ChangeLog
+++ b/gcc/ada/ChangeLog
@@ -1,3 +1,10 @@
+2003-05-03 Nathan Sidwell <nathan@codesourcery.com>
+
+ * trans.c (tree_transform): Use location_t and input_location
+ directly.
+ (build_unit_elab): Likewise.
+ * utils.c (create_label_decl): Likewise.
+
2003-05-01 Nathan Sidwell <nathan@codesourcery.com>
* trans.c (tree_transform, build_unit_elab,
diff --git a/gcc/ada/trans.c b/gcc/ada/trans.c
index 064e543481e..d14d2372360 100644
--- a/gcc/ada/trans.c
+++ b/gcc/ada/trans.c
@@ -2619,8 +2619,7 @@ tree_transform (gnat_node)
the body so that the line number notes are written
correctly. */
set_lineno (gnat_node, 0);
- DECL_SOURCE_FILE (gnu_subprog_decl) = input_filename;
- DECL_SOURCE_LINE (gnu_subprog_decl) = input_line;
+ DECL_SOURCE_LOCATION (gnu_subprog_decl) = input_location;
begin_subprog_body (gnu_subprog_decl);
set_lineno (gnat_node, 1);
@@ -5342,8 +5341,7 @@ build_unit_elab (gnat_unit, body_p, gnu_elab_list)
{
tree lhs = TREE_PURPOSE (gnu_elab_list);
- input_filename = DECL_SOURCE_FILE (lhs);
- input_line = DECL_SOURCE_LINE (lhs);
+ input_location = DECL_SOURCE_LOCATION (lhs);
/* If LHS has a padded type, convert it to the unpadded type
so the assignment is done properly. */
diff --git a/gcc/ada/utils.c b/gcc/ada/utils.c
index e74d5a20439..d57994368e3 100644
--- a/gcc/ada/utils.c
+++ b/gcc/ada/utils.c
@@ -1663,8 +1663,7 @@ create_label_decl (label_name)
DECL_CONTEXT (label_decl) = current_function_decl;
DECL_MODE (label_decl) = VOIDmode;
- DECL_SOURCE_LINE (label_decl) = input_line;
- DECL_SOURCE_FILE (label_decl) = input_filename;
+ DECL_SOURCE_LOCATION (label_decl) = input_location;
return label_decl;
}