aboutsummaryrefslogtreecommitdiff
path: root/gdb/config
diff options
context:
space:
mode:
authorFred Fish <fnf@specifix.com>1996-03-27 00:21:02 +0000
committerFred Fish <fnf@specifix.com>1996-03-27 00:21:02 +0000
commit7e2ff10d97ded38c39058c7f51b8f14dcf9b343d (patch)
treee5bfeef7543bf39bf037ac4fd55d807e39e45ef7 /gdb/config
parent4f74c0421bc7426be3b3fc07c489be49c5ad4b83 (diff)
downloadgdb-7e2ff10d97ded38c39058c7f51b8f14dcf9b343d.zip
gdb-7e2ff10d97ded38c39058c7f51b8f14dcf9b343d.tar.gz
gdb-7e2ff10d97ded38c39058c7f51b8f14dcf9b343d.tar.bz2
* config/mips/tm-mips.h (COERCE_FLOAT_TO_DOUBLE): Only prefer
non-prototyped case over prototyped case for C. * config/pa/tm-hppa.h (COERCE_FLOAT_TO_DOUBLE): Ditto.
Diffstat (limited to 'gdb/config')
-rw-r--r--gdb/config/mips/tm-mips.h5
-rw-r--r--gdb/config/sparc/tm-sparc.h1
2 files changed, 4 insertions, 2 deletions
diff --git a/gdb/config/mips/tm-mips.h b/gdb/config/mips/tm-mips.h
index 39c6623..499750f 100644
--- a/gdb/config/mips/tm-mips.h
+++ b/gdb/config/mips/tm-mips.h
@@ -506,6 +506,7 @@ extern struct frame_info *setup_arbitrary_frame PARAMS ((int, CORE_ADDR *));
floats regardless of whether the function is prototyped, but the actual
values are passed as doubles for the non-prototyped case and floats for
the prototyped case. Thus we choose to make the non-prototyped case work
- and break the prototyped case. (FIXME). */
+ for C and break the prototyped case, since the non-prototyped case is
+ probably much more common. (FIXME). */
-#define COERCE_FLOAT_TO_DOUBLE 1
+#define COERCE_FLOAT_TO_DOUBLE (current_language -> la_language == language_c)
diff --git a/gdb/config/sparc/tm-sparc.h b/gdb/config/sparc/tm-sparc.h
index 5081064..b85602f 100644
--- a/gdb/config/sparc/tm-sparc.h
+++ b/gdb/config/sparc/tm-sparc.h
@@ -639,4 +639,5 @@ extern int deferred_stores;
information for float parameters, both prototyped and unprototyped, then
define this macro. This forces gdb to always assume that floats are
passed as doubles and then converted in the callee. */
+
#define COERCE_FLOAT_TO_DOUBLE 1