c-opts.c (finish_options): Make the line-number of the <built-in> location 0...
authorPer Bothner <per@bothner.com>
Sun, 24 Apr 2005 23:27:37 +0000 (16:27 -0700)
committerPer Bothner <bothner@gcc.gnu.org>
Sun, 24 Apr 2005 23:27:37 +0000 (16:27 -0700)
* c-opts.c (finish_options):  Make the line-number of the <built-in>
location 0, as assumed elsewhere, rather than 1.

From-SVN: r98685

gcc/ChangeLog
gcc/c-opts.c

index 2b52cb379c7018e8a0e0303c24bf6cb1055d335d..c183d6fe8c4344fbcf203891281b75412b7e68a9 100644 (file)
@@ -1,3 +1,8 @@
+2005-04-24  Per Bothner  <per@bothner.com>
+
+       * c-opts.c (finish_options):  Make the line-number of the <built-in>
+       location 0, as assumed elsewhere, rather than 1.
+
 2005-04-24  Kazu Hirata  <kazu@cs.umass.edu>
 
        * tree-ssa-uncprop.c (equiv_stack): Change the type o
index 506543a108ca9786958eae938e62af2c06feecc4..4ac8e9d439540fbf100d5019db61e3595ef9ab4e 100644 (file)
@@ -1302,7 +1302,10 @@ finish_options (void)
     {
       size_t i;
 
-      cpp_change_file (parse_in, LC_RENAME, _("<built-in>"));
+      cb_file_change (parse_in,
+                     linemap_add (&line_table, LC_RENAME, 0,
+                                  _("<built-in>"), 0));
+
       cpp_init_builtins (parse_in, flag_hosted);
       c_cpp_builtins (parse_in);