mirror of git://gcc.gnu.org/git/gcc.git
Remove asterisk in LTO section name.
2010-01-01 H.J. Lu <hongjiu.lu@intel.com> PR lto/42531 * lto-streamer-out.c (produce_asm): Revert the last change. (copy_function): Likewise. * lto-streamer.c (lto_get_section_name): Skip any leading asterisk in name. From-SVN: r155555
This commit is contained in:
parent
a28ff68b14
commit
915394757f
34881
gcc/ChangeLog
34881
gcc/ChangeLog
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
|
@ -1,6 +1,6 @@
|
||||||
/* Write the GIMPLE representation to a file stream.
|
/* Write the GIMPLE representation to a file stream.
|
||||||
|
|
||||||
Copyright 2009 Free Software Foundation, Inc.
|
Copyright 2009, 2010 Free Software Foundation, Inc.
|
||||||
Contributed by Kenneth Zadeck <zadeck@naturalbridge.com>
|
Contributed by Kenneth Zadeck <zadeck@naturalbridge.com>
|
||||||
Re-implemented by Diego Novillo <dnovillo@google.com>
|
Re-implemented by Diego Novillo <dnovillo@google.com>
|
||||||
|
|
||||||
|
@ -1784,8 +1784,6 @@ produce_asm (struct output_block *ob, tree fn)
|
||||||
if (section_type == LTO_section_function_body)
|
if (section_type == LTO_section_function_body)
|
||||||
{
|
{
|
||||||
const char *name = IDENTIFIER_POINTER (DECL_ASSEMBLER_NAME (fn));
|
const char *name = IDENTIFIER_POINTER (DECL_ASSEMBLER_NAME (fn));
|
||||||
if (name[0] == '*')
|
|
||||||
name++;
|
|
||||||
section_name = lto_get_section_name (section_type, name);
|
section_name = lto_get_section_name (section_type, name);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
@ -2009,16 +2007,11 @@ copy_function (struct cgraph_node *node)
|
||||||
const char *data;
|
const char *data;
|
||||||
size_t len;
|
size_t len;
|
||||||
const char *name = IDENTIFIER_POINTER (DECL_ASSEMBLER_NAME (function));
|
const char *name = IDENTIFIER_POINTER (DECL_ASSEMBLER_NAME (function));
|
||||||
char *section_name;
|
char *section_name =
|
||||||
|
lto_get_section_name (LTO_section_function_body, name);
|
||||||
size_t i, j;
|
size_t i, j;
|
||||||
struct lto_in_decl_state *in_state;
|
struct lto_in_decl_state *in_state;
|
||||||
struct lto_out_decl_state *out_state;
|
struct lto_out_decl_state *out_state = lto_get_out_decl_state ();
|
||||||
|
|
||||||
if (name[0] == '*')
|
|
||||||
name++;
|
|
||||||
section_name =
|
|
||||||
lto_get_section_name (LTO_section_function_body, name);
|
|
||||||
out_state = lto_get_out_decl_state ();
|
|
||||||
|
|
||||||
lto_begin_section (section_name, !flag_wpa);
|
lto_begin_section (section_name, !flag_wpa);
|
||||||
free (section_name);
|
free (section_name);
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
/* Miscellaneous utilities for GIMPLE streaming. Things that are used
|
/* Miscellaneous utilities for GIMPLE streaming. Things that are used
|
||||||
in both input and output are here.
|
in both input and output are here.
|
||||||
|
|
||||||
Copyright 2009 Free Software Foundation, Inc.
|
Copyright 2009, 2010 Free Software Foundation, Inc.
|
||||||
Contributed by Doug Kwan <dougkwan@google.com>
|
Contributed by Doug Kwan <dougkwan@google.com>
|
||||||
|
|
||||||
This file is part of GCC.
|
This file is part of GCC.
|
||||||
|
@ -143,6 +143,9 @@ lto_get_section_name (int section_type, const char *name)
|
||||||
switch (section_type)
|
switch (section_type)
|
||||||
{
|
{
|
||||||
case LTO_section_function_body:
|
case LTO_section_function_body:
|
||||||
|
gcc_assert (name != NULL);
|
||||||
|
if (name[0] == '*')
|
||||||
|
name++;
|
||||||
return concat (LTO_SECTION_NAME_PREFIX, name, NULL);
|
return concat (LTO_SECTION_NAME_PREFIX, name, NULL);
|
||||||
|
|
||||||
case LTO_section_static_initializer:
|
case LTO_section_static_initializer:
|
||||||
|
|
Loading…
Reference in New Issue