forked from OSchip/llvm-project
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:
parent
15a906cf37
commit
12ae9a8704
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue