aboutsummaryrefslogtreecommitdiff
path: root/gdb
diff options
context:
space:
mode:
authorJim Kingdon <jkingdon@engr.sgi.com>1991-04-19 22:04:24 +0000
committerJim Kingdon <jkingdon@engr.sgi.com>1991-04-19 22:04:24 +0000
commitde6060deb14d3fff5fbe4fab39dfc4748dd5431c (patch)
tree2b44ba4e6b52726727f2a8ff7cdc1caaef95283e /gdb
parentd566d62a5a05727a3d22397efcbd7c8d412f071e (diff)
downloadgdb-de6060deb14d3fff5fbe4fab39dfc4748dd5431c.zip
gdb-de6060deb14d3fff5fbe4fab39dfc4748dd5431c.tar.gz
gdb-de6060deb14d3fff5fbe4fab39dfc4748dd5431c.tar.bz2
* tm-68k.h: Put declaration of ext_format_68881 outside the macros.
Diffstat (limited to 'gdb')
-rw-r--r--gdb/ChangeLog2
-rw-r--r--gdb/tm-68k.h8
2 files changed, 6 insertions, 4 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index ae47ef7..63ce786 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,5 +1,7 @@
Fri Apr 19 09:36:50 1991 Jim Kingdon (kingdon at cygint.cygnus.com)
+ * tm-68k.h: Put declaration of ext_format_68881 outside the macros.
+
* main.c: New HAVE_SIGSETMASK #ifdefs.
* coffread.c (read_coff_symtab): Check for "LF%" with all the
diff --git a/gdb/tm-68k.h b/gdb/tm-68k.h
index 120ea08..f8b9d49 100644
--- a/gdb/tm-68k.h
+++ b/gdb/tm-68k.h
@@ -147,13 +147,15 @@ read_memory_integer (read_register (SP_REGNUM), 4)
#define REGISTER_CONVERTIBLE(N) (((unsigned)(N) - FP0_REGNUM) < 8)
+/* Put the declaration out here because if it's in the macros, PCC
+ will complain. */
+extern struct ext_format ext_format_68881 [];
+
/* Convert data from raw format for register REGNUM
to virtual format for register REGNUM. */
#define REGISTER_CONVERT_TO_VIRTUAL(REGNUM,FROM,TO) \
{ \
- extern struct ext_format ext_format_68881 []; \
- \
if ((REGNUM) >= FP0_REGNUM && (REGNUM) < FPC_REGNUM) \
ieee_extended_to_double (ext_format_68881, (FROM), (TO)); \
else \
@@ -165,8 +167,6 @@ read_memory_integer (read_register (SP_REGNUM), 4)
#define REGISTER_CONVERT_TO_RAW(REGNUM,FROM,TO) \
{ \
- extern struct ext_format ext_format_68881 []; \
- \
if ((REGNUM) >= FP0_REGNUM && (REGNUM) < FPC_REGNUM) \
double_to_ieee_extended (ext_format_68881, (FROM), (TO)); \
else \