diff options
author | Ilya Verbin <ilya.verbin@intel.com> | 2014-10-19 19:40:59 +0000 |
---|---|---|
committer | Ilya Verbin <iverbin@gcc.gnu.org> | 2014-10-19 19:40:59 +0000 |
commit | d856054bc7b4d494010234816bcb25e837eea3b1 (patch) | |
tree | b1a71a512384885501a7bb4ae73a119c424e9965 /gcc/varasm.c | |
parent | e80f9fef341bdd66fff59e18df3044f5fe2e5166 (diff) | |
download | gcc-d856054bc7b4d494010234816bcb25e837eea3b1.zip gcc-d856054bc7b4d494010234816bcb25e837eea3b1.tar.gz gcc-d856054bc7b4d494010234816bcb25e837eea3b1.tar.bz2 |
Set SECTION_EXCLUDE flag for LTO sections.
gcc/
* configure: Regenerate.
* configure.ac: Move the test for section attribute specifier "e" in GAS
out to all i[34567]86-*-* | x86_64-*-* targets and add --fatal-warnings.
* langhooks.c (lhd_begin_section): Set SECTION_EXCLUDE flag.
* varasm.c (default_elf_asm_named_section): Guard SECTION_EXCLUDE with
ifdef HAVE_GAS_SECTION_EXCLUDE.
From-SVN: r216442
Diffstat (limited to 'gcc/varasm.c')
-rw-r--r-- | gcc/varasm.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/gcc/varasm.c b/gcc/varasm.c index 899265c..1aad9d5 100644 --- a/gcc/varasm.c +++ b/gcc/varasm.c @@ -6144,8 +6144,10 @@ default_elf_asm_named_section (const char *name, unsigned int flags, if (!(flags & SECTION_DEBUG)) *f++ = 'a'; +#if defined (HAVE_GAS_SECTION_EXCLUDE) && HAVE_GAS_SECTION_EXCLUDE == 1 if (flags & SECTION_EXCLUDE) *f++ = 'e'; +#endif if (flags & SECTION_WRITE) *f++ = 'w'; if (flags & SECTION_CODE) |