diff options
author | hjl <hjl@138bc75d-0d04-0410-961f-82ee72b054a4> | 2010-01-01 16:49:15 +0000 |
---|---|---|
committer | hjl <hjl@138bc75d-0d04-0410-961f-82ee72b054a4> | 2010-01-01 16:49:15 +0000 |
commit | 151a56e7e557f270ff580c84e4315d7e1e86de06 (patch) | |
tree | 92ee68d775ae0bf315eeaf54533fbbbacd66323d /gcc/lto-streamer.c | |
parent | e064ace631e668b611f853d0d933c3b46d749799 (diff) | |
download | gcc-151a56e7e557f270ff580c84e4315d7e1e86de06.tar.gz |
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.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@155555 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/lto-streamer.c')
-rw-r--r-- | gcc/lto-streamer.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/gcc/lto-streamer.c b/gcc/lto-streamer.c index 01664f7bce5..0b44845bceb 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: |