Commit b1d2d6b1 by Basile Starynkevitch Committed by Basile Starynkevitch

gengtype (main): Get here's position using POS_HERE macro for do*typedef calls.

2010-11-08  Basile Starynkevitch  <basile@starynkevitch.net>

	* gengtype (main): Get here's position using POS_HERE macro for
	do*typedef calls.

From-SVN: r166428
parent f3824a8b
2010-11-08 Basile Starynkevitch <basile@starynkevitch.net>
* gengtype (main): Get here's position using POS_HERE macro for
do*typedef calls.
2010-11-07 Ian Lance Taylor <iant@google.com> 2010-11-07 Ian Lance Taylor <iant@google.com>
PR target/46089 PR target/46089
...@@ -4531,28 +4531,21 @@ main (int argc, char **argv) ...@@ -4531,28 +4531,21 @@ main (int argc, char **argv)
/* These types are set up with #define or else outside of where /* These types are set up with #define or else outside of where
we can see them. We should initialize them before calling we can see them. We should initialize them before calling
read_input_list. */ read_input_list. */
pos.file = this_file; #define POS_HERE(Call) do { pos.file = this_file; pos.line = __LINE__; \
pos.line = __LINE__ + 1; Call;} while(0)
do_scalar_typedef ("CUMULATIVE_ARGS", &pos); POS_HERE (do_scalar_typedef ("CUMULATIVE_ARGS", &pos));
pos.line++; POS_HERE (do_scalar_typedef ("REAL_VALUE_TYPE", &pos));
do_scalar_typedef ("REAL_VALUE_TYPE", &pos); POS_HERE (do_scalar_typedef ("FIXED_VALUE_TYPE", &pos));
pos.line++; POS_HERE (do_scalar_typedef ("double_int", &pos));
do_scalar_typedef ("FIXED_VALUE_TYPE", &pos); POS_HERE (do_scalar_typedef ("uint64_t", &pos));
pos.line++; POS_HERE (do_scalar_typedef ("uint8", &pos));
do_scalar_typedef ("double_int", &pos); POS_HERE (do_scalar_typedef ("jword", &pos));
pos.line++; POS_HERE (do_scalar_typedef ("JCF_u2", &pos));
do_scalar_typedef ("uint64_t", &pos); POS_HERE (do_scalar_typedef ("void", &pos));
pos.line++; POS_HERE (do_typedef ("PTR",
do_scalar_typedef ("uint8", &pos); create_pointer (resolve_typedef ("void", &pos)),
pos.line++; &pos));
do_scalar_typedef ("jword", &pos); #undef POS_HERE
pos.line++;
do_scalar_typedef ("JCF_u2", &pos);
pos.line++;
do_scalar_typedef ("void", &pos);
pos.line++;
do_typedef ("PTR", create_pointer (resolve_typedef ("void", &pos)),
&pos);
read_input_list (inputlist); read_input_list (inputlist);
for (i = 0; i < num_gt_files; i++) for (i = 0; i < num_gt_files; i++)
{ {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment