trans.c (tree_transform): Use location_t and input_location directly.
authorNathan Sidwell <nathan@codesourcery.com>
Sat, 3 May 2003 16:43:17 +0000 (16:43 +0000)
committerNathan Sidwell <nathan@gcc.gnu.org>
Sat, 3 May 2003 16:43:17 +0000 (16:43 +0000)
* trans.c (tree_transform): Use location_t and input_location
directly.
(build_unit_elab): Likewise.
* utils.c (create_label_decl): Likewise.

From-SVN: r66433

gcc/ada/ChangeLog
gcc/ada/trans.c
gcc/ada/utils.c

index a4afa6294214bef386553535fb4a33e47bb2332c..cadce12ca8515a2eacfaab01aae89e75beb2b40c 100644 (file)
@@ -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,
index 064e543481ea66ece947183e1f901cb010907807..d14d2372360b15c4ba1339e4b3c775dccfb851ba 100644 (file)
@@ -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.  */
index e74d5a20439279104538c380405a41569d359b97..d57994368e39b902f4750a2bd0ff50e0735a404c 100644 (file)
@@ -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;
 }