Commit e21d6c60 by John David Anglin Committed by John David Anglin

re PR target/25168 (FAIL: g++.old-deja/g++.abi/cxa_vec.C execution test)

	PR target/25168
	* tree.c (get_file_function_name_long): Concatenate the first global
	object name with a string derived from the input filename of the object
	for type "F".

From-SVN: r109740
parent ebda5160
2006-01-15 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
PR target/25168
* tree.c (get_file_function_name_long): Concatenate the first global
object name with a string derived from the input filename of the object
for type "F".
2006-01-16 Ben Elliston <bje@au.ibm.com>
* config/i386/winnt-stubs.c: Update FSF address.
......
......@@ -5867,7 +5867,26 @@ get_file_function_name_long (const char *type)
char *q;
if (first_global_object_name)
p = first_global_object_name;
{
p = first_global_object_name;
/* For type 'F', the generated name must be unique not only to this
translation unit but also to any given link. Since global names
can be overloaded, we concatenate the first global object name
with a string derived from the file name of this object. */
if (!strcmp (type, "F"))
{
const char *file = main_input_filename;
if (! file)
file = input_filename;
q = alloca (strlen (p) + 10);
sprintf (q, "%s_%08X", p, crc32_string (0, file));
p = q;
}
}
else
{
/* We don't have anything that we know to be unique to this translation
......
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