Commit 52e04e56 by Eric Botcazou Committed by Eric Botcazou

* gcc-interface/trans.c (gigi): Initialize the linemap earlier.

From-SVN: r182199
parent e7bb3661
2011-12-11 Eric Botcazou <ebotcazou@adacore.com>
* gcc-interface/trans.c (gigi): Initialize the linemap earlier.
2011-12-06 Dave Korn <dave.korn.cygwin@gmail.com> 2011-12-06 Dave Korn <dave.korn.cygwin@gmail.com>
* gcc-interface/Makefile.in (LIBGNAT_TARGET_PAIRS [windows targets]): * gcc-interface/Makefile.in (LIBGNAT_TARGET_PAIRS [windows targets]):
......
...@@ -297,13 +297,6 @@ gigi (Node_Id gnat_root, int max_gnat_node, int number_name ATTRIBUTE_UNUSED, ...@@ -297,13 +297,6 @@ gigi (Node_Id gnat_root, int max_gnat_node, int number_name ATTRIBUTE_UNUSED,
type_annotate_only = (gigi_operating_mode == 1); type_annotate_only = (gigi_operating_mode == 1);
gcc_assert (Nkind (gnat_root) == N_Compilation_Unit);
/* Declare the name of the compilation unit as the first global
name in order to make the middle-end fully deterministic. */
t = create_concat_name (Defining_Entity (Unit (gnat_root)), NULL);
first_global_object_name = ggc_strdup (IDENTIFIER_POINTER (t));
for (i = 0; i < number_file; i++) for (i = 0; i < number_file; i++)
{ {
/* Use the identifier table to make a permanent copy of the filename as /* Use the identifier table to make a permanent copy of the filename as
...@@ -328,6 +321,13 @@ gigi (Node_Id gnat_root, int max_gnat_node, int number_name ATTRIBUTE_UNUSED, ...@@ -328,6 +321,13 @@ gigi (Node_Id gnat_root, int max_gnat_node, int number_name ATTRIBUTE_UNUSED,
linemap_add (line_table, LC_LEAVE, 0, NULL, 0); linemap_add (line_table, LC_LEAVE, 0, NULL, 0);
} }
gcc_assert (Nkind (gnat_root) == N_Compilation_Unit);
/* Declare the name of the compilation unit as the first global
name in order to make the middle-end fully deterministic. */
t = create_concat_name (Defining_Entity (Unit (gnat_root)), NULL);
first_global_object_name = ggc_strdup (IDENTIFIER_POINTER (t));
/* Initialize ourselves. */ /* Initialize ourselves. */
init_code_table (); init_code_table ();
init_gnat_to_gnu (); init_gnat_to_gnu ();
......
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