mirror of git://gcc.gnu.org/git/gcc.git
tree.c (get_file_function_name): Avoid using random seed on GLOBAL_sub_I and GLOBAL_sub_D.
* tree.c (get_file_function_name): Avoid using random seed on GLOBAL_sub_I and GLOBAL_sub_D. From-SVN: r167858
This commit is contained in:
parent
740a2a0237
commit
b121d18c5e
|
@ -1,3 +1,8 @@
|
||||||
|
2010-12-14 Jan Hubicka <jh@suse.cz>
|
||||||
|
|
||||||
|
* tree.c (get_file_function_name): Avoid using random seed on GLOBAL_sub_I
|
||||||
|
and GLOBAL_sub_D.
|
||||||
|
|
||||||
2010-12-15 Martin Jambor <mjambor@suse.cz>
|
2010-12-15 Martin Jambor <mjambor@suse.cz>
|
||||||
|
|
||||||
PR tree-optimization/46053
|
PR tree-optimization/46053
|
||||||
|
|
|
@ -8518,8 +8518,12 @@ get_file_function_name (const char *type)
|
||||||
p = q = ASTRDUP (first_global_object_name);
|
p = q = ASTRDUP (first_global_object_name);
|
||||||
/* If the target is handling the constructors/destructors, they
|
/* If the target is handling the constructors/destructors, they
|
||||||
will be local to this file and the name is only necessary for
|
will be local to this file and the name is only necessary for
|
||||||
debugging purposes. */
|
debugging purposes.
|
||||||
else if ((type[0] == 'I' || type[0] == 'D') && targetm.have_ctors_dtors)
|
We also assign sub_I and sub_D sufixes to constructors called from
|
||||||
|
the global static constructors. These are always local. */
|
||||||
|
else if (((type[0] == 'I' || type[0] == 'D') && targetm.have_ctors_dtors)
|
||||||
|
|| (strncmp (type, "sub_", 4) == 0
|
||||||
|
&& (type[4] == 'I' || type[4] == 'D')))
|
||||||
{
|
{
|
||||||
const char *file = main_input_filename;
|
const char *file = main_input_filename;
|
||||||
if (! file)
|
if (! file)
|
||||||
|
|
Loading…
Reference in New Issue