aboutsummaryrefslogtreecommitdiff
path: root/gcc/tree.c
diff options
context:
space:
mode:
authorNathan Sidwell <nathan@codesourcery.com>2003-06-29 11:28:00 +0000
committerNathan Sidwell <nathan@gcc.gnu.org>2003-06-29 11:28:00 +0000
commit4714db5aef1205624a11f594c7bd45e87a4a0092 (patch)
treeacede1ca18b6f98fec18a1205ed048166fb0fe9e /gcc/tree.c
parent165f54e074b91a80005c7e776f1cceae089b9655 (diff)
downloadgcc-4714db5aef1205624a11f594c7bd45e87a4a0092.zip
gcc-4714db5aef1205624a11f594c7bd45e87a4a0092.tar.gz
gcc-4714db5aef1205624a11f594c7bd45e87a4a0092.tar.bz2
c-decl.c (c_init_decl_processing): Use a location_t.
* c-decl.c (c_init_decl_processing): Use a location_t. Set input filename to <internal>. * tree.c (make_node): Just copy the current location. From-SVN: r68667
Diffstat (limited to 'gcc/tree.c')
-rw-r--r--gcc/tree.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/gcc/tree.c b/gcc/tree.c
index 9b434d8..0861cb2 100644
--- a/gcc/tree.c
+++ b/gcc/tree.c
@@ -308,9 +308,7 @@ make_node (code)
DECL_ALIGN (t) = 1;
DECL_USER_ALIGN (t) = 0;
DECL_IN_SYSTEM_HEADER (t) = in_system_header;
- DECL_SOURCE_LINE (t) = input_line;
- DECL_SOURCE_FILE (t) =
- (input_filename) ? input_filename : "<built-in>";
+ DECL_SOURCE_LOCATION (t) = input_location;
DECL_UID (t) = next_decl_uid++;
/* We have not yet computed the alias set for this declaration. */