aboutsummaryrefslogtreecommitdiff
path: root/gcc/lto-streamer.c
diff options
context:
space:
mode:
authorH.J. Lu <hongjiu.lu@intel.com>2010-01-01 16:49:15 +0000
committerH.J. Lu <hjl@gcc.gnu.org>2010-01-01 08:49:15 -0800
commit915394757ff867465902a3fbb30ca2e070450e15 (patch)
tree92ee68d775ae0bf315eeaf54533fbbbacd66323d /gcc/lto-streamer.c
parenta28ff68b149819196a64a87f3e1b5bc3c4075632 (diff)
downloadgcc-915394757ff867465902a3fbb30ca2e070450e15.zip
gcc-915394757ff867465902a3fbb30ca2e070450e15.tar.gz
gcc-915394757ff867465902a3fbb30ca2e070450e15.tar.bz2
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
Diffstat (limited to 'gcc/lto-streamer.c')
-rw-r--r--gcc/lto-streamer.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/gcc/lto-streamer.c b/gcc/lto-streamer.c
index 01664f7..0b44845 100644
--- a/gcc/lto-streamer.c
+++ b/gcc/lto-streamer.c
@@ -1,7 +1,7 @@
/* Miscellaneous utilities for GIMPLE streaming. Things that are used
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>
This file is part of GCC.
@@ -143,6 +143,9 @@ lto_get_section_name (int section_type, const char *name)
switch (section_type)
{
case LTO_section_function_body:
+ gcc_assert (name != NULL);
+ if (name[0] == '*')
+ name++;
return concat (LTO_SECTION_NAME_PREFIX, name, NULL);
case LTO_section_static_initializer: