builtins: move the readonly constants into rodata

Place the floating point constants into the read-only data section.  This was
already being done for x86_64, this simply mirrors the behaviour for i686.

llvm-svn: 214034
This commit is contained in:
Saleem Abdulrasool 2014-07-26 21:08:41 +00:00
parent 15a906cf37
commit 12ae9a8704
4 changed files with 27 additions and 8 deletions

View File

@ -7,8 +7,12 @@
#ifdef __i386__
#ifndef __ELF__
.const
#if defined(__APPLE__)
.const
#elif defined(__ELF__)
.section .rodata
#else
.section .rdata,"rd"
#endif
.balign 16

View File

@ -17,9 +17,14 @@
#ifdef __i386__
#ifndef __ELF__
.const
#if defined(__APPLE__)
.const
#elif defined(__ELF__)
.rodata
#else
.section .rdata,"rd"
#endif
.balign 16
twop52:
.quad 0x4330000000000000

View File

@ -52,9 +52,14 @@ END_COMPILERRT_FUNCTION(__floatundisf)
#ifdef __i386__
#ifndef __ELF__
.const
#if defined(__APPLE__)
.const
#elif defined(__ELF__)
.section .rodata
#else
.section .rdata,"rd"
#endif
.balign 16
twop52:
.quad 0x4330000000000000

View File

@ -7,9 +7,14 @@
#ifdef __i386__
#ifndef __ELF__
.const
#if defined(__APPLE__)
.const
#elif defined(__ELF__)
.section .rodata
#else
.section .rdata,"rd"
#endif
.balign 16
twop52:
.quad 0x4330000000000000