]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
x86: Don't pad .tfloat directive output
authorH.J. Lu <hjl.tools@gmail.com>
Sun, 15 Aug 2021 20:17:41 +0000 (13:17 -0700)
committerH.J. Lu <hjl.tools@gmail.com>
Mon, 16 Aug 2021 21:40:30 +0000 (14:40 -0700)
commitff01bb6c2321680660979fb9a4ab027348ea94ed
tree41709f4023800706f61c5271a10b2bbf8569be08
parent892a1e530379eeea924e938c8a588fbf3845f4fa
x86: Don't pad .tfloat directive output

.tfloat output should always be 10 bytes without padding, independent
of psABIs.  In glibc, x86 assembly codes expect 10-byte .tfloat output.
This also reduces .ds.x output and .tfloat output with hex input from
12 bytes to 10 bytes to match .tfloat output.

PR gas/28230
* NEWS: Mention changes of .ds.x output and .tfloat output with
hex input.
* config/tc-i386.c (x86_tfloat_pad): Removed.
* config/tc-i386.h (X_PRECISION_PAD): Changed to 0.
(x86_tfloat_pad): Removed.
* testsuite/gas/i386/fp.s: If NO_TFLOAT_PADDING isn't defined,
add explicit paddings after .tfloat, .ds.x, .dc.x and .dcb.x
directives.
* testsuite/gas/i386/i386.exp (ASFLAGS): Append
"--defsym NO_TFLOAT_PADDING=1" when running the fp test.
gas/NEWS
gas/config/tc-i386.c
gas/config/tc-i386.h
gas/testsuite/gas/i386/fp.s
gas/testsuite/gas/i386/i386.exp