aboutsummaryrefslogtreecommitdiff
path: root/gas/doc
diff options
context:
space:
mode:
authorKaushik Phata <Kaushik.Phatak@kpit.com>2014-05-16 14:57:10 +0100
committerNick Clifton <nickc@redhat.com>2014-05-16 14:57:10 +0100
commit856ea05ccf051d4d86f422552f5cdfa83659dd6b (patch)
tree7fb8784ab04e753ddf24d2fc239b5986a4432a38 /gas/doc
parent73eb770959c8d8d927dbeafbf6038a651e0cb1ae (diff)
downloadgdb-856ea05ccf051d4d86f422552f5cdfa83659dd6b.zip
gdb-856ea05ccf051d4d86f422552f5cdfa83659dd6b.tar.gz
gdb-856ea05ccf051d4d86f422552f5cdfa83659dd6b.tar.bz2
This adds support for marking RL78 binaries as either supporting 32-bit
or 64-bit doubles. It also makes the linker complain if the user attempts to link together binaries with different sized doubles. * elf32-rl78.c (rl78_elf_merge_private_bfd_data): Complain if 64-bit doubles objects mix with 32-bit doubles objects. (rl78_elf_print_private_bfd_data): Describe 64-bit doubles flag. * readelf.c (get_machine_flags): Handle RL78 64-bit doubles flag. * config/tc-rl78.c (enum options): Add OPTION_32BIT_DOUBLES and OPTION_64BIT_DOUBLES. (md_longopts): Add -m32bit-doubles and -m64bit-doubles. (md_parse_option): Parse -m32bit-doubles and -m64bit-doubles. (md_show_usage): Show all of the RL78 options. (rl78_float_cons): New static functions. (md_pseudo_table): Update handler for "double".
Diffstat (limited to 'gas/doc')
-rw-r--r--gas/doc/as.texinfo6
-rw-r--r--gas/doc/c-rl78.texi14
2 files changed, 18 insertions, 2 deletions
diff --git a/gas/doc/as.texinfo b/gas/doc/as.texinfo
index 5759e9b..0f0956c 100644
--- a/gas/doc/as.texinfo
+++ b/gas/doc/as.texinfo
@@ -479,6 +479,12 @@ gcc(1), ld(1), and the Info entries for @file{binutils} and @file{ld}.
[@b{-msolaris}|@b{-mno-solaris}]
[@b{-nops=@var{count}}]
@end ifset
+@ifset RL78
+
+@emph{Target RL78 options:}
+ [@b{-mg10}]
+ [@b{-m32bit-doubles}|@b{-m64bit-doubles}]
+@end ifset
@ifset RX
@emph{Target RX options:}
diff --git a/gas/doc/c-rl78.texi b/gas/doc/c-rl78.texi
index dce833b..a714548 100644
--- a/gas/doc/c-rl78.texi
+++ b/gas/doc/c-rl78.texi
@@ -32,6 +32,14 @@ Enable support for link-time relaxation.
Mark the generated binary as targeting the G10 variant of the RL78
architecture.
+@item m32bit-doubles
+Mark the generated binary as one that uses 32-bits to hold the
+@code{double} floating point type. This is the default.
+
+@item m64bit-doubles
+Mark the generated binary as one that uses 64-bits to hold the
+@code{double} floating point type.
+
@end table
@node RL78-Modifiers
@@ -85,8 +93,10 @@ In addition to the common directives, the RL78 adds these:
@table @code
@item .double
-Output a constant in ``double'' format, which is a 32-bit floating
-point value on RL78.
+Output a constant in ``double'' format, which is either a 32-bit
+or a 64-bit floating point value, depending upon the setting of the
+@option{-m32bit-doubles}|@option{-m64bit-doubles} command line
+option.
@item .bss
Select the BSS section.